Skip to content

Posts

GET /v2/instagram/user/posts

Returns a paginated feed of a user's public Instagram posts, including photos, videos, and carousels. Each item includes media type, shortcode, caption text, like count, comment count, play count, video URLs, image URLs, and tagged users. Play counts reflect Instagram-only views and exclude cross-posted Facebook views. Supports cursor-based pagination via next_max_id for scrolling through the full timeline.

Authentication

All requests require the x-api-key header. Get your key at scrapecreators.com.

Query Parameters

NameTypeRequiredDescriptionExample
handlestringyesInstagram handle
next_max_idstringnoCursor to get next page of results.
trimbooleannoSet to true to get a trimmed response

Example Request

curl

bash
curl 'https://api.scrapecreators.com/v2/instagram/user/posts?handle=<handle>' \
  -H 'x-api-key: $SCRAPECREATORS_API_KEY'

Node / TypeScript

js
const params = new URLSearchParams({ handle: '...' });
const res = await fetch(`https://api.scrapecreators.com/v2/instagram/user/posts?${params}`, {
  headers: { 'x-api-key': process.env.SCRAPECREATORS_API_KEY }
});
const data = await res.json();
console.log(data);

Python

python
import os, requests
r = requests.get(
    'https://api.scrapecreators.com/v2/instagram/user/posts',
    headers={'x-api-key': os.environ['SCRAPECREATORS_API_KEY']},
    params={'handle': '...'},
)
r.raise_for_status()
print(r.json())

CLI

bash
scrapecreators instagram user-posts --help

Example Response

json
{
  "items": [
    {
      "id": "3644028144127958689_59042353222",
      "code": "DKSMEpKRd6h",
      "media_type": 2,
      "taken_at": 1748622051,
      "caption": {
        "bit_flags": 0,
        "created_at": 1748622053,
        "created_at_utc": 1748622053,
        "did_report_as_spam": false,
        "is_ranked_comment": false,
        "pk": "17916912093071427",
        "share_enabled": false,
        "content_type": "comment",
        "media_id": "3644028144127958689",
        "status": "Active",
        "type": 1,
        "user_id": "59042353222",
        "strong_id__": "17916912093071427",
        "text": "5 best college baseball regional plays for day 1",
        "user": {
          "pk": "59042353222",
          "pk_id": "59042353222",
          "id": "59042353222",
          "full_name": "Carson Szeder",
          "is_private": false,
          "is_unpublished": false,
          "strong_id__": "59042353222",
          "fbid_v2": "17841459076660294",
          "username": "carsoncantcode",
          "is_verified": true,
          "profile_pic_id": "3318246086567523250_59042353222",
          "profile_pic_url": "https://scontent-lga3-3.cdninstagram.com/v/t51.2885-19/431903885_797859762202050_7017850157267325892_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_ht=scontent-lga3-3.cdninstagram.com&_nc_cat=106&_nc_oc=Q6cZ2QHiEom3hMdlCt1UvbqMoAi8AVMa_QCzMo8Z3JyyueN2RgZ46phuoYGRHEiGNrkRFOg&_nc_ohc=DtppWMlqRCcQ7kNvwEYrxi1&_nc_gid=Eb0J24h8KiM70eUrBpX9HQ&edm=ACWDqb8BAAAA&ccb=7-5&oh=00_AfP_ozLRxIquMfrVuFJ1MP_CwqFycc2hoq8Xc9x89Tyx_g&oe=685A4097&_nc_sid=ee9879"
        },
        "is_covered": false,
        "private_reply_status": 0
      },
      "play_count": 2647,
      "ig_play_count": 2643,
      "comment_count": 7,
      "like_count": 29,
      "display_uri": "https://scontent-lga3-2.cdninstagram.com/v/t51.2885-15/502710192_1957567931446141_1822523212661288021_n.jpg?stp=c0.248.640.640a_dst-jpg_e15_tt6&_nc_ht=scontent-lga3-2.cdninstagram.com&_nc_cat=101&_nc_oc=Q6cZ2QHiEom3hMdlCt1UvbqMoAi8AVMa_QCzMo8Z3JyyueN2RgZ46phuoYGRHEiGNrkRFOg&_nc_ohc=ng-epM2kdRMQ7kNvwHHDPMi&_nc_gid=Eb0J24h8KiM70eUrBpX9HQ&edm=ACWDqb8BAAAA&ccb=7-5&oh=00_AfOIfw4eK3gmQ8rB8XmU3AgCiDHwFyd4oi4o_VEuOBoWOg&oe=685A1A4E&_nc_sid=ee9879",
      "user": {
        "fbid_v2": "17841459076660294",
        "feed_post_reshare_disabled": false,
        "full_name": "Carson Szeder",
        "id": "59042353222",
        "is_private": false,
        "is_unpublished": false,
        "pk": "59042353222",
        "pk_id": "59042353222",
        "show_account_transparency_details": true,
        "strong_id__": "59042353222",
        "third_party_downloads_enabled": 1,
        "account_type": 3,
        "account_badges": [],
        "fan_club_info": {
          "autosave_to_exclusive_highlight": null,
          "connected_member_count": null,
          "fan_club_id": null,
          "fan_club_name": null,
          "has_created_ssc": null,
          "has_enough_subscribers_for_ssc": null,
          "is_fan_clu
... (truncated)

Credits

Most ScrapeCreators endpoints consume 1 credit per successful response. Some heavier endpoints (transcripts, AI-driven enrichment, ad detail lookups) may cost more. Check GET /v1/credit-balance for your remaining balance.

Errors

StatusMeaningAction
200Success.Use the JSON payload.
400Invalid or missing parameter.Verify required parameters and value format.
401Missing or invalid x-api-key.Pass a valid API key in the header.
402Out of credits.Top up at scrapecreators.com or wait for plan reset.
404Resource not found or private.Confirm the handle, URL, or id and that the resource is public.
429Rate limited.Backoff and retry with exponential delay.
500Server error or upstream platform failure.Retry with backoff; report persistent errors to support.