# TMDB API Reference

**Base URL:** `https://api.themoviedb.org/3/`
**Default Key:** `7e4d48e68abb9a4f2c86a1cc143cd8b5`

## Search
```
GET /search/movie?api_key={KEY}&query={Q}
GET /search/tv?api_key={KEY}&query={Q}
```

## Movie Detail
```
GET /movie/{ID}?api_key={KEY}&append_to_response=credits,release_dates,videos
```
Returns: title, release_date, runtime, genres, overview, poster_path, vote_average

## External IDs
```
GET /movie/{ID}/external_ids?api_key={KEY}
```
Returns: imdb_id, facebook_id, instagram_id, twitter_id

## Popular
```
GET /movie/popular?api_key={KEY}&language=en-US&page=1
```

## Image URLs
```
https://image.tmdb.org/t/p/w92{path}    # 92px wide
https://image.tmdb.org/t/p/w154{path}   # 154px
https://image.tmdb.org/t/p/w342{path}   # 342px (grid)
https://image.tmdb.org/t/p/w500{path}   # 500px (detail)
https://image.tmdb.org/t/p/original{path} # full res
```
