Social Media
Instagram logo

Instagram API

instagram.com

Public Instagram data: profiles, posts, comments and search.

Actions
6
Category
Social Media
Login
Not required
Output
JSON

Call the Instagram API

Submit a task, then poll the job until it settles. This example runs instagram_followers.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "instagram_followers",
    "params": {
      "username": "natgeo"
    }
  }'

6 actions on instagram.com

Read

  • Followers

    instagram_followersread50 credits / call

    Get a sample of about 25 followers of a public Instagram account (the most available without a login): username, full name, verified and private flags, and avatar.

    username
    string · required
  • Hashtag Search

    instagram_hashtag_searchread50 credits / call

    Get recent Instagram posts for a hashtag (12 by default, up to 300) with caption, date, likes, comments, image and owner.

    hashtag
    string · required
    limit
    integer
  • Post Comments

    instagram_post_commentsread10 credits / call

    Get the comments on an Instagram post or reel, one full page (about 12-15) per call: text, likes, reply count, date and commenter username. Use cursor for more.

    post_url
    string · required
    cursor
    string
  • Post Details

    instagram_post_detailread10 credits / call

    Get one Instagram post or reel: type, caption, date, likes, comments, views, length, image and video links, and owner.

    post_url
    string · required
  • Profile

    instagram_profileread10 credits / call

    Get a public Instagram profile: username, full name, bio, follower, following and post counts, verified, private and business flags, category, website and avatar.

    username
    string · required
  • User Posts

    instagram_user_postsread10 credits / call

    Get an Instagram user's latest posts, one full page (about 12) per call: link, type, caption, date, likes, comments, views, image and video links. Use cursor for older posts.

    username
    string · required
    cursor
    string

Instagram API questions

Is there an API for Instagram?
Instagram does not offer a public data API for this, but Anakin Wire provides 6 maintained endpoints for instagram.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape Instagram data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when instagram.com changes its markup, Anakin updates the action.
Do I need a Instagram account?
No. Every Instagram action listed here runs anonymously — no account and no credentials required.
What does the Instagram API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Social Media APIs

All Social Media sites