Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APIInstagram

    instagram.profile

    A public Instagram account's profile: names, bio, links, verified badge, follower, following and post counts, and its most recent posts.

    Id
    instagram.profile
    Version
    1
    Billed per
    request — 1 unit for a charged run
    Runs
    within one request

    Start it with POST /v1/scrapers/instagram.profile/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.

    Inputs

    The fields of input. A field that is not listed here is refused.

    Inputs of instagram.profile
    FieldTypeDescription
    usernamerequiredstringThe account's handle, e.g. nasa or @nasa, or its profile address (https://www.instagram.com/nasa/).Limit: at most 200 characters.

    Record fields

    Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.

    Record fields of instagram.profile
    FieldTypeNotes
    usernamestringThe account's handle, as Instagram writes it.
    urlstringThe profile's address.
    user_idstring or nullInstagram's numeric id of the account.
    full_namestring or nullThe name shown on the profile.
    biographystring or nullThe profile's bio text; null when the account wrote none.
    bio_linksarray of objectThe links shown in the bio, in order.
    url (in bio_links[])stringThe link's address, as the profile gives it.
    title (in bio_links[])string or nullThe label the account gave the link; null when it gave none.
    verifiedboolean or nullTrue when the profile carries the verified badge.
    privateboolean or nullTrue when the account is private: its posts are shown only to followers it approved.
    follower_countinteger or nullNumber of followers.
    following_countinteger or nullNumber of accounts this one follows.
    post_countinteger or nullNumber of posts the account has published.
    profile_pic_urlstring or nullThe profile picture. Instagram signs this address and it stops working after some days.
    recent_postsarray of objectThe most recent posts the profile page carries (up to twelve; pinned posts come first). Like and comment counts and the publication time are given for the newest of them. Empty for a private account.
    shortcode (in recent_posts[])stringThe post's short code: the part of its address after /p/ or /reel/.
    url (in recent_posts[])stringThe post's address.
    type (in recent_posts[])"photo" | "video" | "carousel" or nullphoto, video (a reel or a video post) or carousel (several photos or videos).
    caption (in recent_posts[])string or nullThe caption, as written; null when the post has none.
    image_url (in recent_posts[])string or nullThe post's image (a video's cover). Instagram signs this address and it stops working after some days.
    carousel_media_count (in recent_posts[])integer or nullNumber of photos and videos in a carousel; null for a single photo or video.
    like_count (in recent_posts[])integer or nullNumber of likes; null when the page does not state it for this post or the account hides it.
    comment_count (in recent_posts[])integer or nullNumber of comments; null when the page does not state it for this post.
    taken_at (in recent_posts[])string (date-time) or nullWhen the post was published, in UTC; null when the page does not state it for this post.
    alt_text (in recent_posts[])string or nullInstagram's own description of the image for screen readers, when it gives one.
    fetched_atstring (date-time)When the profile page was read, in UTC.

    Example request

    # Start a run and wait up to 60 seconds for it to finish
    curl -X POST "https://api.enrichednow.com/v1/scrapers/instagram.profile/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"input":{"username":"natgeo"}}'
    
    # Read its records, with the id the first call answered
    curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    from enrichednow import EnrichedNow
    
    client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY
    
    # Start a run, wait for it to end, and get its records
    result = client.scrape("instagram.profile", {"username": "natgeo"})
    print(result.run.id, result.run.status, result.run.record_count)
    
    # Read its records: pages are fetched as you go
    for record in result.records:
        print(record)

    Install it with pip install enrichednow, then save as run.py and run python3 run.py

    import EnrichedNow from "enrichednow";
    
    const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
    
    // Start a run, wait for it to end, and get its records
    const { run, records } = await client.scrape("instagram.profile", { username: "natgeo" });
    console.log(run.id, run.status, run.record_count);
    
    // Read its records: pages are fetched as you go
    for await (const record of records) console.log(record);

    Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

    package main
    
    import (
    	"context"
    	"fmt"
    	"log"
    	"time"
    
    	enrichednow "github.com/enrichednow/enrichednow-go"
    )
    
    func main() {
    	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
    	if err != nil {
    		log.Fatal(err)
    	}
    	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
    	defer cancel()
    
    	// Start a run, wait for it to end, and get its records
    	run, records, err := client.Scrape(ctx, "instagram.profile", map[string]any{"username": "natgeo"})
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(run.ID, run.Status, run.RecordCount)
    
    	// Read its records: pages are fetched as you go
    	for records.Next() {
    		fmt.Println(string(records.Current()))
    	}
    	if err := records.Err(); err != nil {
    		log.Fatal(err)
    	}
    }

    Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

    import com.enrichednow.EnrichedNowClient;
    import com.enrichednow.ScrapeResult;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start a run, wait for it to end, and get its records
            ScrapeResult result = client.scrape("instagram.profile", Map.of("username", "natgeo"));
            System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
    
            // Read its records: pages are fetched as you go
            for (Map<String, Object> record : result.records()) {
                System.out.println(record);
            }
        }
    }

    Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

    enrichednow run instagram.profile --input username=natgeo

    Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

    It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.

    The body on its own:

    JSON
    {
      "input": {
        "username": "natgeo"
      }
    }

    Example response

    The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.

    JSON
    {
      "id": "run_841742f37553189ff9c27ba1",
      "scraper_id": "instagram.profile",
      "scraper_version": 1,
      "status": "ok",
      "reason": null,
      "input": {
        "username": "natgeo"
      },
      "record_count": 1,
      "units": 1,
      "units_per_request": 1,
      "units_per_record": null,
      "units_per_page": null,
      "diagnostics": {
        "requests": 1,
        "bytes": 259214,
        "wall_ms": 885,
        "facts": {}
      },
      "created_at": "2026-11-16T22:37:50.170950Z",
      "started_at": "2026-11-16T22:37:50.178331Z",
      "finished_at": "2026-11-16T22:37:51.066313Z"
    }

    Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.

    JSON
    {
      "records": [
        {
          "username": "natgeo",
          "url": "https://www.instagram.com/natgeo/",
          "user_id": "787132",
          "full_name": "National Geographic",
          "biography": "Step into wonder and find your inner explorer with National Geographic 🌎",
          "bio_links": [
            {
              "url": "http://visitstore.bio/natgeo",
              "title": null
            },
            {
              "url": "https://ngmdomsubs.nationalgeographic.com/servlet/OrdersGateway?cds_mag_code=NGM&cds_page_id=283562&cds_response_key=I5FX10002",
              "title": "Subscribe Here!"
            }
          ],
          "verified": true,
          "private": false,
          "follower_count": 268067731,
          "following_count": 195,
          "post_count": 32185,
          "profile_pic_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-19/683576066_18653628823019133_9051036240972105113_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ig_cache_key=GAKLvih9nsRnYEVCAJlFVLiBvZt9bmNDAQAB1501500j-ccb7-5&ccb=7-5&_nc_sid=669407&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy40MDAuQzMifQ%3D%3D&_nc_ohc=UcE57SiiDgcQ7kNvwH5Refu&_nc_oc=Adq6fHAgWqXPliouVTZLACWYkqtARr6uYp9M2v0RlF4pmGifFd-Waa0wktPXhs3ZPwY&_nc_zt=24&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_gid=7f2NB2xfWTQ7KaLbXWi0IQ&_nc_ss=79689&_nc_ct=RQosPBUCFQIAAAA&oh=00_AQTJln4eoCCMb4gg3QDQM8WIO75YgfFEXeHGniXudpYC-g&oe=6B03AFEB",
          "recent_posts": [
            {
              "shortcode": "Df147tCiAyB",
              "url": "https://www.instagram.com/p/Df147tCiAyB/",
              "type": "carousel",
              "caption": "National Geographic photographers ventured to places far and wide to capture the year’s most fascinating images. Out of millions of photos, just 25 were selected as our Pictures of the Year. \n\nWe thought these photos of a juvenile Greenland … [truncated]",
              "image_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/912032737_18720223195019133_3854183847552490578_n.jpg?stp=dst-jpg_e35_s640x640_tt6&_nc_cat=109&_nc_map=urlgen_bucketless&ccb=7-5&_nc_sid=18de74&efg=eyJlZmdfdGFnIjoiQ0FST1VTRUxfSVRFTS5iZXN0X2ltYWdlX3VybGdlbi5DMyJ9&_nc_ohc=0Jd4ljDuRhkQ7kNvwEHRiOz&_nc_oc=AdqLdW3I-R1crI2bjlXtH3_fXRlO2Rd7nFNhoCp71Ea0rvRw6IaBwzT3OD00ibUMzzA&_nc_zt=23&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_gid=mAe-_Tpn3MjetiQaOlQ7WQ&_nc_ss=79689&_nc_ct=RQosPBUKFQIAAAA&oh=00_AQTgQvwf1Hilc3K1QK3YB8S5vRaTwqHWo_DvEvoobuOZyQ&oe=6B03C374",
              "carousel_media_count": 3,
              "like_count": null,
              "comment_count": null,
              "taken_at": null,
              "alt_text": "Photo by National Geographic on November 17, 2026. May be an image of text."
            },
            {
              "shortcode": "DfAWxdIFmVB",
              "url": "https://www.instagram.com/p/DfAWxdIFmVB/",
              "type": "video",
              "caption": "Even a moment’s rest on Everest can come with a reminder of just how unpredictable the mountain can be.\n\nFrom Oscar®-winning filmmakers @chaivasarhelyi and @jimmychin, EVEREST: THE OTHER SIDE, only in theaters and IMAX worldwide on October … [truncated]",
              "image_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/865525088_18712762651019133_8954025122327073428_n.jpg?stp=dst-jpg_e35_s640x640_tt6&_nc_cat=109&_nc_map=urlgen_bucketless&ccb=7-5&_nc_sid=18de74&efg=eyJlZmdfdGFnIjoiQ0xJUFMuYmVzdF9pbWFnZV91cmxnZW4uQzMifQ%3D%3D&_nc_ohc=xt3gY7urqEsQ7kNvwEu57HX&_nc_oc=Adq62ZlXjSBQVWQxKunr3nVfMedqXmWf0eKXvnGDwm-Nd13_Wxlfdr-z7qENXHVZMy0&_nc_zt=23&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_gid=mAe-_Tpn3MjetiQaOlQ7WQ&_nc_ss=79689&_nc_ct=RQosPBUKFQQAAAA&oh=00_AQT6DIFaOoIbe4njiyNw5wp6aWblb4DUrlAI92BRREfU-g&oe=6B03E1F8",
              "carousel_media_count": null,
              "like_count": null,
              "comment_count": null,
              "taken_at": null,
              "alt_text": "Video by National Geographic on October 27, 2026. May be an image of ski, glasses, ski slope and text."
            }
          ],
          "fetched_at": "2026-11-19T18:07:40.839562Z"
        }
      ],
      "next_cursor": null
    }

    What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].

    • Shortened: recent_posts: 12 items, the first 2 shown.
    • Shortened: recent_posts[0].caption: 811 characters, the first 240 shown.
    • Shortened: recent_posts[1].caption: 243 characters, the first 239 shown.

    A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the Instagram scrapers are in their own section there.