Instagram Search API
Search Instagram accounts and hashtags. 1 credit per successful call; errors and not-found answers are free. Answers are cached for 1 hour, and a cached repeat costs nothing. The response uses the same field names as every other platform.
Request
GET /v1/instagram/search
curl "https://scrapeio.com/v1/instagram/search?query=coffee" \
-H "x-api-key: YOUR_KEY"Python
import requests
r = requests.get(
"https://scrapeio.com/v1/instagram/search",
params={"query": "coffee"},
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])JavaScript
const url = new URL("https://scrapeio.com/v1/instagram/search");
url.searchParams.set("query", "coffee");
const res = await fetch(url, { headers: { "x-api-key": "YOUR_KEY" } });
const { data } = await res.json();
console.log(data);Parameters
| Name | Type | Description |
|---|---|---|
query (required) | string | Search text. |
Response
Every answer has the same envelope: success, cached, credits_used, credits_remaining and data. Lists put rows in data.items and page with data.cursor and data.has_more; send the cursor back to get the next page. Shared fields such as handle, followers, plays, likes and created_at are named the same on every platform. Full reference in the Instagram docs.
| Status | Meaning | Charged |
|---|---|---|
200 | Success | Yes, unless cached |
400 | A parameter is missing or wrong | No |
401 | The key is missing or invalid | No |
402 | Not enough credits | No |
403 | The account or post is private | No |
404 | Not found on the platform | No |
429 | More than 300 requests a minute | No |
502 | Every source is down; retry shortly | No |
Use it from an AI agent
Connect the ScrapeIO MCP server to Claude Code, Cursor, Codex or any MCP client and ask in plain English. The agent calls the instagram_search tool and pays the same credits.
Questions
How much does the Instagram Search API cost?
1 credit per successful call, so $0.99 to $1.88 per 1,000 calls depending on the pack. Credits never expire and there is no subscription. New accounts get 100 free credits.
Do I need an official Instagram API key or app approval?
No. Sign in, copy your ScrapeIO key and call the endpoint. It returns public Instagram data only.
Are failed or empty calls charged?
No. Errors, private accounts, not-found answers and cached repeats cost nothing.
Is there a rate limit?
300 requests a minute per key. Answers that come back with 429 are not charged.
Can an AI agent call it?
Yes. Through the ScrapeIO MCP server the tool is named instagram_search. It works in Claude Code, Cursor, Codex and any MCP client.
100 free credits, no card. Credits never expire.
Get API keyMore Instagram endpoints
- Instagram Profile API: Instagram profile: bio, avatar, followers, following, post count, category.
- Instagram User Posts API: A profile's posts of every type (reels, photos, carousels), newest first, with real play counts.
- Instagram User Reels API: A profile's reels with real play counts.
- Instagram Post API: One post or reel by URL: plays, likes, comments, caption, media URLs.
- Instagram Comments API: Comments on a post or reel.
- Instagram Comment Replies API: Replies to one Instagram comment.
- Instagram Transcript API: Transcript of a reel (videos under 2 minutes).
- Instagram Search Posts API: Search Instagram posts and reels by keyword.
- Instagram Hashtag API: Recent posts under a hashtag.
- Instagram Similar Accounts API: Accounts Instagram suggests as similar to a profile.
- Instagram Reels Search API: Search Instagram reels by keyword, with plays, likes and comments.
- Instagram Audio Reels API: Reels that use one audio track, with plays, likes and comments.
- Instagram Basic Profile API: An Instagram profile by its numeric user id: handle, bio, followers, post count.
- Instagram Highlights API: A profile's story highlights: id, title, cover.
- Instagram Highlight Detail API: The stories inside one highlight, with image and video links.
- Instagram Post Count API: How many posts a profile has.
- Instagram Search Profiles API: Search Instagram accounts by keyword.
- Instagram Tagged Posts API: Posts other accounts tagged a profile in.
- Instagram Search Hashtag API: Recent posts under an Instagram hashtag.
- Instagram Reels Trending API: Trending Reels
- Instagram Search Popular API: Popular Search
- Instagram User Embed API: Embed HTML