agentleFS
mike-scrapingbotmike-scrapingbot/scrapingbot/skills/instagram-data/SKILL.md

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

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    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.

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
  1. Very specific:

    Search: data.users[] / hashtags[] / places[].

    line 50

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

endpointUse forParams
/user/by_usernameProfileusername (with or without @, or a profile URL)
/user/by_idProfile by numeric iduser_id
/medias/by_user_idAn account's postsuser_id, count 1–50, end_cursor
/reels/by_user_idAn account's reelsuser_id, page_size 1–50, max_id
/medias/tagged_by_user_idPosts the account is tagged inuser_id, count max 12, end_cursor
/stories/by_usernameActive stories (live now only)username
/followers/by_user_id, /following/by_user_idFollowers / followinguser_id (numeric), query (search the list), max_id
/media/by_shortcode, /media/by_urlOne post or reelshortcode / url
/comments/media_comments_by_idComments on a postcode_or_id_or_url, pagination_token
/comments/repliesReplies to a commentcode_or_id_or_url, comment_id
/search/users_by_keyword, /search/hashtags_by_keyword, /search/places_by_keyword, /search/globalAccounts / hashtags / places / all threekeyword
/search/postsPosts and reels for a keyword (one page)query
/media/shortcode_to_id, /media/id_to_shortcodeConvert 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 via data.page_info.end_cursor while has_next_page.
  • Reels: data.items[].media (code, taken_at, like_count, comment_count, caption.text); next page via data.paging_info.max_id while more_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 via data.pagination_token. Replies: data.data.items[], parent in data.data.additional_data.
  • Followers/following: data.users[]; next page by sending next_max_id back as max_id while has_more. For very large accounts only ~50 recent followers are listed; use query to look for a specific account.
  • Stories: data.data.items[] (media_type 1 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. tagged count over 12, non-numeric user_id). Fix and resend.
  • 404: account or post wasn't found.
  • 500 Failed to process Instagram request: unsupported endpoint name; check the table.
  • 401 bad key; 402 not enough credits (tell the user); 429 concurrency limit (free plan: 1 at a time; wait and retry).
  • 408 / other 5xx: temporary; retry with backoff.

Docs: https://scrapingbot.io/docs/instagram

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.