Instagram

A public profile's follower count and ~12 most recent posts, and any public post or reel's exact likes, comments and posting account, as typed JSON. No login.

Embed
Preview of the card
<a href="https://scrapelyserp.com/docs/instagram"><img src="https://scrapelyserp.com/docs/_api/public/orgs/affc5b0f-d3c2-423a-8143-9d10db5736ae/spaces/981e6275-da3f-446c-82de-889f59c83b6f/pages/02b0a2c6-3cee-431a-a89d-02f26548982b/social-card.svg?v=3e7ae33eec8b" alt="Instagram" width="600" height="315"></a>

A public profile's follower count and ~12 most recent posts, and any public post or reel's exact likes, comments and posting account, as typed JSON. No login.

At a glance

Two GET endpoints under /v1/structured/instagram/. Each answers { endpoint, url, credits, duration_ms, data }; data is described below and in the reference. Each call is charged for the data it moves; a profile or post that does not exist is a free 404 NOT_FOUND, and a page we could not read is 502 TARGET_FAILED and costs nothing.

Endpoint

What

Typical

GET /v1/structured/instagram/profile

A public profile: counts and the ~12 most recent posts

about 25,000 profiles per credit, one per call

GET /v1/structured/instagram/post

Any public post or reel by shortcode or URL

about 38,000 posts per credit, one per call

Profile

Parameter

Type

Default

Description

username (required)

string

—

The Instagram username, e.g. nasa (also @nasa or its profile URL).

include

string

—

Set to engagement to add exact likes, comments, time and owner to each post. Costs one extra request per post (~9× the bytes), so it is off by default.

curl -G "https://api.scrapelyserp.com/v1/structured/instagram/profile" \
  -H "Authorization: Bearer $SCRAPELY_API_KEY" \
  -d username=nasa

The profile carries username, full_name, biography, is_verified, is_private, followers, following, posts_count, profile_pic_url, id, url and recent_posts (about 12). Each post has id, shortcode, url, type (image, video or carousel), caption, thumbnail, is_pinned and product_type. A private account returns its counts with an empty recent_posts. Add include=engagement to fetch each post’s page and fill in its exact likes, comments, taken_at and owner — one extra request per post, so it is off by default.

Full reference → GET /v1/structured/instagram/profile

Post

Parameter

Type

Default

Description

post (required)

string

—

A post shortcode (e.g. C8xY1zAbCdE) or its URL (/p/…, /reel/…).

Pass a shortcode (DgIPAzWPHHh) or any post, reel or TV URL. data carries shortcode, url, type, owner, owner_full_name, caption, likes, comments, taken_at, thumbnail and media_count. The posting account can differ from the profile you found the post on — a reshare or collab names its real owner.

Full reference → GET /v1/structured/instagram/post

Updated