# API reference

> Every HandleHaul API endpoint on one page: 54 GET routes for public Instagram and TikTok data, what each returns and what it costs. 1 credit per successful call; failed calls and cache hits are free.

Every endpoint of the HandleHaul API on one page: **54 routes**, all `GET`, all under `https://api.handlehaul.com/v1`. Send your key in the `X-Api-Key` header. A successful call costs the credits shown; failed calls, private or missing accounts and cache hits cost nothing.

- **Identifiers.** `{user}` is a numeric id or a handle. A handle we have not looked up in the last 7 days adds 1 credit to a list call; ids never do ([Pricing](/pricing#handles-and-ids)).
- **Lists** return `data`, `pagination.next_cursor` and `meta`; pass the cursor back to read the next page ([Pagination](/docs/pagination)).
- **Errors** use one JSON shape with a stable `code` ([Errors](/docs/errors)).
- **Machine-readable:** [OpenAPI 3.1](https://api.handlehaul.com/openapi.json) has every parameter and response schema.

## Instagram

### Users

| Endpoint | What it returns | Credits |
|---|---|---|
| `GET /v1/users/by-username/{username}` | Profile by username | 1 |
| `GET /v1/users/by-id/{id}` | Profile by user id | 1 |
| `GET /v1/users/{user}` | Profile by username or id | 1 |
| `GET /v1/users/{user}/followers` | Followers, newest first | 1 |
| `GET /v1/users/{user}/following` | Following, newest first | 1 |
| `GET /v1/users/{user}/posts` | Recent posts | 1 |
| `GET /v1/users/{user}/reels` | Reels of an account, newest first (or most viewed) | 1 |
| `GET /v1/users/{user}/tagged` | Posts the account is tagged in | 1 |
| `GET /v1/users/{user}/reposts` | Posts the account reposted | 1 |
| `GET /v1/users/{user}/stories` | Live stories (last 24 hours) | 1 |
| `GET /v1/users/{user}/highlights` | Story highlights of an account | 1 |
| `GET /v1/users/{user}/account-details` | When the account joined, its country and username changes | 1 |
| `GET /v1/users/{user}/related` | Accounts similar to this one | 1 |

### Search

| Endpoint | What it returns | Credits |
|---|---|---|
| `GET /v1/search/users` | Search accounts by name | 1 |
| `GET /v1/search/hashtags` | Find hashtags | 1 |
| `GET /v1/search/places` | Find places by name or near a point | 1 |
| `GET /v1/search/audio` | Find songs and original audio | 1 |

### Posts

| Endpoint | What it returns | Credits |
|---|---|---|
| `GET /v1/posts/stats` | Like, comment and view counts for up to 20 posts in one call | 1 |
| `GET /v1/posts/{post}` | One post or reel by shortcode, id or URL | 1 |
| `GET /v1/posts/{post}/comments` | Comments on a post | 1 |
| `GET /v1/posts/{post}/likers` | Accounts that liked a post | 1 |

### Comments

| Endpoint | What it returns | Credits |
|---|---|---|
| `GET /v1/comments/{comment}/replies` | Replies to a comment | 1 |
| `GET /v1/comments/{comment}/likers` | Accounts that liked a comment | 1 |

### Stories

| Endpoint | What it returns | Credits |
|---|---|---|
| `GET /v1/stories/{story}` | One story by id | 1 |

### Highlights

| Endpoint | What it returns | Credits |
|---|---|---|
| `GET /v1/highlights/{highlight}` | The stories inside a highlight | 1 |

### Hashtags

| Endpoint | What it returns | Credits |
|---|---|---|
| `GET /v1/hashtags/{tag}` | A hashtag and its post count | 1 |
| `GET /v1/hashtags/{tag}/posts` | Top posts for a hashtag | 1 |

### Places

| Endpoint | What it returns | Credits |
|---|---|---|
| `GET /v1/places/{place}` | A place: name, category, address, contact | 1 |
| `GET /v1/places/{place}/posts` | Top or recent posts tagged at a place | 1 |

### Audio

| Endpoint | What it returns | Credits |
|---|---|---|
| `GET /v1/audio/trending` | Trending audio on Reels | 1 |
| `GET /v1/audio/{audio}` | A song or original audio | 1 |
| `GET /v1/audio/{audio}/reels` | Reels that use an audio | 1 |

## TikTok

| Endpoint | What it returns | Credits |
|---|---|---|
| `GET /v1/tiktok/users/{user}` | TikTok profile: bio, verified and private flags, follower, following, like and video counts | 1 |
| `GET /v1/tiktok/users/{user}/posts` | Videos and photo posts of a TikTok account, newest first | 1 |
| `GET /v1/tiktok/users/{user}/reposts` | Videos a TikTok account reposted | 1 |
| `GET /v1/tiktok/users/{user}/liked` | Videos a TikTok account liked (when its liked list is public) | 1 |
| `GET /v1/tiktok/users/{user}/followers` | Followers of a TikTok account | 1 |
| `GET /v1/tiktok/users/{user}/following` | Accounts a TikTok account follows | 1 |
| `GET /v1/tiktok/users/{user}/playlists` | Playlists of a TikTok account | 1 |
| `GET /v1/tiktok/users/{user}/stories` | Live stories of a TikTok account | 1 |
| `GET /v1/tiktok/users/{user}/suggested` | Accounts TikTok suggests alongside this one (one page) | 1 |
| `GET /v1/tiktok/posts/{post}` | One TikTok video or photo post by id or URL | 1 |
| `GET /v1/tiktok/posts/{post}/comments` | Comments on a TikTok post | 1 |
| `GET /v1/tiktok/posts/{post}/transcript` | Transcript of a TikTok video from its auto-captions | 1 |
| `GET /v1/tiktok/comments/{comment}/replies` | Replies to a TikTok comment | 1 |
| `GET /v1/tiktok/music/{music}` | A TikTok sound: title, artist, duration and how many posts use it | 1 |
| `GET /v1/tiktok/music/{music}/posts` | Posts that use a TikTok sound | 1 |
| `GET /v1/tiktok/hashtags/{tag}` | A TikTok hashtag with its post and view counts | 1 |
| `GET /v1/tiktok/hashtags/{tag}/posts` | Posts under a TikTok hashtag | 1 |
| `GET /v1/tiktok/search` | Search TikTok: top videos, users, videos, photo posts, live streams or sounds | 1 |
| `GET /v1/tiktok/post/transcript` | Transcript of a TikTok video, by url or id in the query | 1 |

## Account and utilities

| Endpoint | What it returns | Credits |
|---|---|---|
| `GET /v1/resolve` | Instagram URL → type and ids (free) | 0 |
| `GET /v1/status` | Service status (no key) | 0 |
| `GET /v1/account` | Your balance and limits (free) | 0 |

These three need no credits. `/v1/status` needs no key.
