instagram-data
Skill0 starsChanged 39 days agoMITView on GitHub
Get public Instagram data as JSON through the ScrapingBot API - profiles, an account's posts, reels and tagged posts, active stories, single posts, comments and replies, follower/following lists, and search for accounts, hashtags, places and posts. Use when the user asks about Instagram accounts, posts, reels or comments. Requires SCRAPINGBOT_API_KEY.
- Reads credentials
- Sends data out
1 other project uses a version of this.
Adopted by
Most recently taken up by
- superagnt/leveragetheir own version, first seen Sep 11, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- superagnt/leverage★ 6same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- amazon-productsSkill
- google-searchSkill
- tiktok-dataSkill
- web-scrapingSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 50
Search: data.users[] / hashtags[] / places[].
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Instagram public data with ScrapingBot
POST https://scrapingbot.io/api/v1/instagram, headers x-api-key: $SCRAPINGBOT_API_KEY and Content-Type: application/json.
Body: {"endpoint": "<endpoint>", "params": {...}}. 5 credits per call (each page is a call), charged only on success. Timeout 45 s.
Endpoints
| endpoint | Use for | Params |
/user/by_username | Profile | username (with or without @, or a profile URL) |
/user/by_id | Profile by numeric id | user_id |
/medias/by_user_id | An account's posts | user_id, count 1–50, end_cursor |
/reels/by_user_id | An account's reels | user_id, page_size 1–50, max_id |
/medias/tagged_by_user_id | Posts the account is tagged in | user_id, count max 12, end_cursor |
/stories/by_username | Active stories (live now only) | username |
/followers/by_user_id, /following/by_user_id | Followers / following | user_id (numeric), query (search the list), max_id |
/media/by_shortcode, /media/by_url | One post or reel | shortcode / url |
/comments/media_comments_by_id | Comments on a post | code_or_id_or_url, pagination_token |
/comments/replies | Replies to a comment | code_or_id_or_url, comment_id |
/search/users_by_keyword, /search/hashtags_by_keyword, /search/places_by_keyword, /search/global | Accounts / hashtags / places / all three | keyword |
/search/posts | Posts and reels for a keyword (one page) | query |
/media/shortcode_to_id, /media/id_to_shortcode | Convert ids (still 5 credits) | shortcode / id |
Most list endpoints need the numeric user_id: call /user/by_username first and use data.id.
Example
curl -X POST "https://scrapingbot.io/api/v1/instagram" \
-H "x-api-key: $SCRAPINGBOT_API_KEY" -H "Content-Type: application/json" \
-d '{"endpoint": "/user/by_username", "params": {"username": "instagram"}}'Fields worth reading
Envelope: success, data, duration, creditsUsed.
- Profile:
data.id,username,full_name,biography,follower_count,following_count,is_verified,is_private,external_url,profile_pic_url. - Posts:
data.edges[].node(code,taken_at,like_count,comment_count,caption.text,display_url,is_video); next page viadata.page_info.end_cursorwhilehas_next_page. - Reels:
data.items[].media(code,taken_at,like_count,comment_count,caption.text); next page viadata.paging_info.max_idwhilemore_available. Do not rely on reel play/view counts: they are often empty. - One post:
data.code,like_count,comment_count,caption.text,owner.username,video_versions/image_versions. - Comments:
data.data.items[](id,text,created_at,comment_like_count,child_comment_count),data.data.total; next page viadata.pagination_token. Replies:data.data.items[], parent indata.data.additional_data. - Followers/following:
data.users[]; next page by sendingnext_max_idback asmax_idwhilehas_more. For very large accounts only ~50 recent followers are listed; usequeryto look for a specific account. - Stories:
data.data.items[](media_type1 photo / 2 video,taken_at,expiring_at,image_versions,video_versions). No active story = empty list, still charged. Media URLs expire; download soon. - Search:
data.users[]/hashtags[]/places[];/search/posts→data.data.items[].
Errors
Errors look like {"success": false, "error": "Missing required parameter: username"} and are never charged.
400: missing/invalid param (e.g. taggedcountover 12, non-numericuser_id). Fix and resend.404: account or post wasn't found.500Failed to process Instagram request: unsupported endpoint name; check the table.401bad key;402not enough credits (tell the user);429concurrency limit (free plan: 1 at a time; wait and retry).408/ other5xx: temporary; retry with backoff.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

