# HandleHaul API > The Instagram & TikTok data API. Give us a handle, we haul back everything. Cheapest per call, built for apps and AI agents. Instagram and TikTok data as JSON. Instagram: profiles (by username or id), followers and following in real newest-first order, posts, reels, stories, highlights, comments, likers, tagged posts, similar accounts, hashtags, places, audio and search. TikTok: profiles, videos and photo posts, followers and following, comments, transcripts, sounds, hashtags and search. One API key (X-Api-Key header), cursor pagination, 1 credit per successful call from $0.83 per 1,000. Public data only. Base URL: https://api.handlehaul.com/v1 OpenAPI 3.1: https://api.handlehaul.com/openapi.json All docs in one file: https://api.handlehaul.com/llms-full.txt AGENTS.md for your repository (rules for coding agents): https://api.handlehaul.com/AGENTS.md Building with Lovable, Bolt, Replit, v0, Cursor or Claude Code: https://api.handlehaul.com/docs/build-with-ai.md. Keep the API key in server-side code; never call the API with a live key from browser code. Website: https://handlehaul.com GitHub: https://github.com/handlehaul (MCP setup: https://github.com/handlehaul/handlehaul-mcp; JavaScript SDK: https://github.com/handlehaul/handlehaul-js; Python SDK: https://github.com/handlehaul/handlehaul-python) SDKs: npm install handlehaul (JavaScript/TypeScript, with a CLI: npx handlehaul), pip install handlehaul (Python) MCP server (for AI assistants): https://api.handlehaul.com/mcp (streamable HTTP; X-Api-Key or Authorization: Bearer). Setup: https://api.handlehaul.com/docs/mcp.md ## MCP server - Hosted at https://api.handlehaul.com/mcp for Claude Code, Claude Desktop, Cursor, VS Code Copilot, Codex, Windsurf, Gemini CLI and the OpenAI and Claude APIs. Server card: https://api.handlehaul.com/mcp/server-card - Claude Code: claude mcp add --transport http handlehaul https://api.handlehaul.com/mcp --header "X-Api-Key: $HANDLEHAUL_API_KEY" - Tools: get_profile, get_following, get_followers, get_posts, search_users, get_reels, get_tagged_posts, get_reposts, get_stories, get_highlights, get_account_details, get_similar_accounts, get_post_stats, get_post, get_comments, get_post_likers, get_comment_replies, get_comment_likers, get_story, get_highlight_stories, search_hashtags, search_places, search_audio, get_hashtag, get_hashtag_posts, get_place, get_place_posts, get_trending_audio, get_audio, get_audio_reels, tiktok_get_profile, tiktok_get_posts, tiktok_get_reposts, tiktok_get_liked, tiktok_get_followers, tiktok_get_following, tiktok_get_playlists, tiktok_get_stories, tiktok_get_suggested, tiktok_get_post, tiktok_get_comments, tiktok_get_transcript, tiktok_get_comment_replies, tiktok_get_music, tiktok_get_music_posts, tiktok_get_hashtag, tiktok_get_hashtag_posts, tiktok_search, resolve_instagram_url, get_balance. Each tool call is billed like the REST call behind it; kd_test_ keys return sample data at no cost. ## Prices - 1 credit = 1 successful call, a following page (up to about 200 accounts, newest first) included. Cached answers, failures and rate limits cost nothing; live data is cached only 60 seconds. On endpoints that take a user, a username we have to look up first adds 1 credit: send the numeric id to skip it. - Credit packs (never expire, $1.45 to $0.83 per 1,000 calls): 20,000 calls $29 (10 requests/second), 80,000 calls $99 (10 requests/second), 250,000 calls $249 (20 requests/second), 600,000 calls $499 (30 requests/second). Scale: from $0.75 per 1,000 (contact us). - Sandbox (kd_test_ keys): unlimited sample data, no cost. 100 live test calls after a verified business email. ## Start - [HandleHaul API documentation](https://api.handlehaul.com/docs.md): The HandleHaul API turns a handle into public Instagram and TikTok data as JSON - profiles, followers and following newest first, posts, reels, stories, comments, TikTok transcripts and more. One API key, cursor pagination, 1 credit per successful call. - [Authentication and API keys](https://api.handlehaul.com/docs/authentication.md): Authenticate HandleHaul API calls with an X-Api-Key header. Keys are 256-bit random secrets shown once, stored only as a keyed hash, with revoke, rotate, IP allowlists and per-key limits. - [Sandbox (test keys)](https://api.handlehaul.com/docs/sandbox.md): HandleHaul API test keys (kd_test_) return realistic sample data in the same schema, cost nothing and never call Instagram. Use them to build and test your integration. - [API reference](https://api.handlehaul.com/docs/reference.md): 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. - [Build with AI tools](https://api.handlehaul.com/docs/build-with-ai.md): Add the HandleHaul API to an app with Lovable, Bolt, Replit, v0, Cursor, Claude Code or Codex. A copy-paste prompt, a drop-in AGENTS.md, the OpenAPI spec, and how to keep your API key on the server. ## Endpoints - [Instagram User ID Lookup API](https://api.handlehaul.com/docs/instagram-user-id-api.md): Convert an Instagram username to its numeric user id with one API call. Returns the id plus the full public profile (name, bio, counts, picture) as JSON, for 1 credit. - [Instagram Profile API](https://api.handlehaul.com/docs/instagram-profile-api.md): Get a public Instagram profile as JSON with one call: bio, website, category, verified status, profile picture, and follower, following and post counts. 1 credit per successful call. - [Instagram Followers API](https://api.handlehaul.com/docs/instagram-followers-api.md): List a public Instagram account's followers newest first as JSON, 25 per page with cursor pagination. See who followed an account most recently. 1 credit per page. - [Instagram Following API](https://api.handlehaul.com/docs/instagram-following-api.md): List the accounts a public Instagram profile follows, newest first, as JSON: about 200 per page with cursor pagination. See who someone followed recently. 1 credit per page. - [Instagram Posts API](https://api.handlehaul.com/docs/instagram-posts-api.md): Get a public Instagram account's recent posts as JSON: shortcode, URL, date, type, caption, and like, comment and view counts, with cursor pagination. 1 credit per page. - [Instagram User Search API](https://api.handlehaul.com/docs/instagram-user-search-api.md): Search Instagram accounts by name or username and get matching users as JSON, up to about 40 results per search. 1 credit per page. - [Instagram Reels API](https://api.handlehaul.com/docs/instagram-reels-api.md): List a public Instagram account's reels as JSON, newest first or most viewed, with view, like and comment counts, video URL, duration and audio. 1 credit per page. - [Instagram Stories API](https://api.handlehaul.com/docs/instagram-stories-api.md): Get a public Instagram account's live stories (last 24 hours) as JSON: image or video URL, time posted and expiry. Look up one story by id. 1 credit per call. - [Instagram Highlights API](https://api.handlehaul.com/docs/instagram-highlights-api.md): List a public Instagram account's story highlights (title, cover, item count) and get every story inside a highlight as JSON. 1 credit per call. - [Instagram Post API](https://api.handlehaul.com/docs/instagram-post-api.md): Get one Instagram post or reel by shortcode, id or URL: caption, media, likes, comments, views, location and audio. Batch like, comment and view counts for 20 posts in one call. - [Instagram Comments API](https://api.handlehaul.com/docs/instagram-comments-api.md): Get the comments on a public Instagram post (top or newest), replies to a comment and who liked a comment, as JSON with authors and like counts. 1 credit per page. - [Instagram Post Likers API](https://api.handlehaul.com/docs/instagram-likers-api.md): Get the accounts that liked a public Instagram post, about 100 per call, as JSON with usernames, names and verified flags. 1 credit per call. - [Instagram Tagged Posts API](https://api.handlehaul.com/docs/instagram-tagged-posts-api.md): List the posts a public Instagram account is tagged in, and the posts it reposted, as JSON with media, captions and engagement. 1 credit per page. - [Instagram Hashtag API](https://api.handlehaul.com/docs/instagram-hashtag-api.md): Get an Instagram hashtag's post count and top posts, and search hashtags, as JSON. 1 credit per call. - [Instagram Location API](https://api.handlehaul.com/docs/instagram-location-api.md): Find Instagram places by name or near a point, get a place's details and its top or recent posts, as JSON. 1 credit per call. - [Instagram Audio API](https://api.handlehaul.com/docs/instagram-audio-api.md): Get an Instagram song or original audio, the reels that use it, trending audio, and search sounds, as JSON. 1 credit per call. - [Instagram Similar Accounts API](https://api.handlehaul.com/docs/instagram-similar-accounts-api.md): Get the accounts Instagram suggests as similar to a profile, up to about 80, as JSON. Find lookalike creators and competitors. 1 credit per call. - [Instagram Account Details API](https://api.handlehaul.com/docs/instagram-account-details-api.md): Get when an Instagram account joined, the country it is based in, verification, and how many times it changed username (Instagram's "About this account"), as JSON. 1 credit. - [Instagram URL Resolver](https://api.handlehaul.com/docs/instagram-url-resolver.md): Turn any Instagram link (profile, post, reel, story, highlight, hashtag, place or audio) into its type and ids with a free API call. Shortcode to media id included. - [TikTok Profile API](https://api.handlehaul.com/docs/tiktok-profile-api.md): Get a public TikTok profile by handle, numeric id or secUid: nickname, bio, verified and private flags, follower, following, like and video counts, avatar and ids. 1 credit per call. - [TikTok Posts API](https://api.handlehaul.com/docs/tiktok-posts-api.md): Get the videos and photo posts of a public TikTok account newest first, plus its reposts, liked videos, playlists and stories, as JSON with view, like, comment, share and save counts. 1 credit per page. - [TikTok Followers and Following API](https://api.handlehaul.com/docs/tiktok-followers-api.md): List the followers and the accounts followed by a public TikTok account, about 30 a page with their counts, plus the accounts TikTok suggests alongside it. 1 credit per page. - [TikTok Post API](https://api.handlehaul.com/docs/tiktok-post-api.md): Get one TikTok video or photo post by id or tiktok.com URL: caption, date, duration, cover, media URL, view, like, comment, share and save counts, author, music and hashtags. 1 credit per call. - [TikTok Comments API](https://api.handlehaul.com/docs/tiktok-comments-api.md): Get the comments on a TikTok post and the replies to any comment, as JSON with author, text, time, like count and reply count. 1 credit per page. - [TikTok Transcript API](https://api.handlehaul.com/docs/tiktok-transcript-api.md): Turn a TikTok video into text: the transcript from its captions, with timed segments and the languages available, by video id or link. 1 credit per call, cached 24 hours. - [TikTok Music API](https://api.handlehaul.com/docs/tiktok-music-api.md): Get a TikTok sound by id or link (title, artist, duration, cover, how many posts use it) and the posts that use it, as JSON. 1 credit per call. - [TikTok Hashtag API](https://api.handlehaul.com/docs/tiktok-hashtag-api.md): Get a TikTok hashtag with its post and view counts, and the posts under it, as JSON. 1 credit per call. - [TikTok Search API](https://api.handlehaul.com/docs/tiktok-search-api.md): Search TikTok by keyword for top videos, users, videos, photo posts, live streams or sounds, with an optional country, as JSON. 1 credit per page. ## Guides - [Instagram Graph API vs third-party data APIs](https://api.handlehaul.com/docs/instagram-graph-api-vs-data-api.md): The official Instagram Graph API works only for accounts you manage and cannot return another account's followers or following list. Third-party data APIs like the HandleHaul API read public data for any public account. Side-by-side table and when to use which. - [Who someone recently followed (API)](https://api.handlehaul.com/docs/who-someone-recently-followed-api.md): To get who an Instagram account followed most recently, call GET /v1/users/{user}/following. The first page holds the newest follows, position 1 first. Snapshot it daily to date new follows. Code in Python and Node.js. - [Build an Instagram follow tracker app (API)](https://api.handlehaul.com/docs/instagram-follower-tracker-api.md): To build an Instagram follow tracker, call GET /v1/users/{user}/following and /followers on a schedule. Both lists come back newest first, so the top rows are the new follows. Architecture, cost per tracked account and code. - [Detect new followers and follows with an API](https://api.handlehaul.com/docs/detect-new-instagram-followers-api.md): To detect new Instagram followers or new follows, read the first page of a newest-first list and keep the rows above the first account you saw last time. One page per check instead of the whole list. Python and Node.js code. - [Export an Instagram following list to CSV](https://api.handlehaul.com/docs/export-instagram-following-csv.md): To export who a public Instagram account follows to CSV, page through GET /v1/users/{user}/following until next_cursor is null and write one row per account. Rows are newest first, so the file is in follow order. Code and costs. - [Instagram data API in Python and JavaScript](https://api.handlehaul.com/docs/instagram-api-python-javascript.md): Call the HandleHaul Instagram data API from Python with requests or from JavaScript and TypeScript with fetch: one X-Api-Key header, JSON responses, cursor pagination. Copy-paste code for profiles, followers, following, paging and retries. - [MCP server (Claude, Cursor, VS Code, Codex)](https://api.handlehaul.com/docs/mcp.md): Connect Claude Code, Claude Desktop, Cursor, VS Code Copilot, Codex, Windsurf or Gemini CLI to Instagram and TikTok data with the hosted HandleHaul MCP server. Profiles, newest-first followers and following, posts, comments, TikTok transcripts and more. Same key and price as the REST API. - [Newest-first order](https://api.handlehaul.com/docs/newest-first-order.md): How the HandleHaul API returns Instagram followers and following in real reverse-chronological order, what meta.order means, why Instagram gives no follow dates, and why a missing row is not an unfollow. - [Pagination](https://api.handlehaul.com/docs/pagination.md): HandleHaul API list endpoints use opaque, sealed cursors. Pass pagination.next_cursor as ?cursor= until it is null. Page sizes, positions and billing explained. - [Caching](https://api.handlehaul.com/docs/caching.md): HandleHaul API cache hits are free. Live data (profiles and the first page of every list) is cached for 60 seconds, so polling once a minute always gets fresh answers; fresh=true forces a live call. - [Errors](https://api.handlehaul.com/docs/errors.md): Every HandleHaul API error has an HTTP status and a stable error.code. Failed calls and rate-limit answers are never charged. Full list of codes and how to retry. - [Rate limits](https://api.handlehaul.com/docs/rate-limits.md): HandleHaul API speed per account, shared by all its keys - 10 to 30 requests per second depending on the largest credit pack bought. Headers, 429 answers and how to go faster. ## Product - [Pricing](https://api.handlehaul.com/pricing.md): HandleHaul API pricing - credit packs that never expire, $29 for 20,000 calls up to $499 for 600,000. 1 credit = 1 call; failed calls and cache hits are free. Scale from $0.75 per 1,000. ## Legal - [Acceptable use](https://api.handlehaul.com/docs/acceptable-use.md): The HandleHaul API covers public data only. No stalking, harassment, spam, credential use or reselling personal-data databases. Accounts that break the rules are suspended. - [HandleHaul API terms](https://api.handlehaul.com/terms.md): Terms for using the HandleHaul API and dashboard - public data only, acceptable use, credit packs, your data, availability and liability. - [Privacy policy](https://api.handlehaul.com/privacy.md): What the HandleHaul API keeps about its customers and the public data it serves - account details, billing, request logs and short-lived caches. No private data.