Instagram Search
2 creditsSearch Instagram by hashtag.
POST
/api/v1/tools/instagram/searchParameters
hashtagstringrequired
Instagram hashtag to search (without the # symbol).
maxResultsnumber
Maximum number of results to return. Must be a positive integer. Defaults to 100. Upper bound is determined by your plan.
fieldsstring[]
Fields to include per post. Omit for defaults: pk, code, takenAt, caption, mediaType, likeCount, commentCount, username, fullName, profilePicUrl, isVerified. Use ["*"] for all fields.
Response Schema
dataobject
Instagram search result
postsobject[]
Matching posts. Each object has the fields chosen with the fields parameter.
truncatedboolean
True when the result reached maxResults, so more posts can exist
metaobject
Request metadata
toolstring
Tool name (instagram-search)
creditsUsednumber
Credits consumed (2)
requestIdstring
Unique request ID
Request
curl -X POST https://scraper.run/api/v1/tools/instagram/search \-H "Authorization: Bearer sc_live_..." \-H "Content-Type: application/json" \-d '{"hashtag": "webdevelopment"}'
Response Example
{"data": {"posts": [{"pk": "3825139344680561234","code": "DUab_xYzKpR","takenAt": 1775656800,"caption": "Just deployed my first full-stack app with Next.js and Prisma. So satisfying to see it live. #webdevelopment #nextjs","mediaType": 1,"likeCount": 892,"commentCount": 37,"username": "dev_sarah","fullName": "Sarah Dev","profilePicUrl": "https://scontent.example/sarah.jpg","isVerified": false}],"truncated": false},"meta": {"tool": "instagram-search","creditsUsed": 2,"requestId": "req_abc123"}}