> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stophy.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Instagram profile

> Read an Instagram profile page as JSON with the instagram-profile parser. $1 per 1,000 calls. Send the page to scrape. Examples in cURL, TypeScript and Python.

Reads an Instagram profile page, like instagram.com/natgeo, and returns one profile as JSON.

## Make a request

Send the page's URL to [scrape](https://docs.stophy.dev/api-reference/endpoint/scrape.md) with a `json` format that names the parser. Get an API key in the [Quickstart](https://docs.stophy.dev/quickstart).

```bash cURL theme={null}
curl -X POST https://api.stophy.dev/v1/scrape \
  -H "Authorization: Bearer $STOPHY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.instagram.com/natgeo/","formats":[{"type":"json","parser":"instagram-profile"}]}'
```

```typescript TypeScript theme={null}
const response = await fetch("https://api.stophy.dev/v1/scrape", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.STOPHY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    url: "https://www.instagram.com/natgeo/",
    formats: [{ type: "json", parser: "instagram-profile" }],
  }),
});
console.log(await response.json());
```

```python Python theme={null}
import os

import requests

response = requests.post(
    "https://api.stophy.dev/v1/scrape",
    headers={"Authorization": f"Bearer {os.environ['STOPHY_API_KEY']}"},
    json={
        "url": "https://www.instagram.com/natgeo/",
        "formats": [{"type": "json", "parser": "instagram-profile"}],
    },
)
print(response.json())
```

## Read the response

The parser's data is in `data.json`. Its fields include `id`, `url`, `handle`, `name`, `bio`, `avatarUrl`, `isVerified`, `followers`, `following`, `posts`, `website`, `location` and `category`. This sample is cut to the first items.

```json theme={null}
{
  "success": true,
  "data": {
    "json": {
      "id": "787132",
      "url": "https://www.instagram.com/natgeo/",
      "handle": "natgeo",
      "name": "National Geographic",
      "bio": "Step into wonder and find your inner explorer with National Geographic 🌎",
      "avatarUrl": "https://scontent-ord5-1.cdninstagram.com/v/t51.82787-19/683576066_18653628823019133_9051036240972105113_n.jpg?stp=dst-j…",
      "isVerified": true,
      "followers": 268204142,
      "following": 195,
      "posts": 32145,
      "website": "http://visitstore.bio/natgeo",
      "location": null,
      "category": null,
      "bioLinkUrls": [
        "http://visitstore.bio/natgeo",
        "https://ngmdomsubs.nationalgeographic.com/servlet/OrdersGateway?cds_mag_code=NGM&cds_page_id=283562&cds_response_key=I5…"
      ],
      "isPrivate": false,
      "postsAnalyzed": 12,
      "averageLikes": 96925,
      "engagementRate": 0.036,
      "recentPosts": [
        {
          "title": null,
          "text": "Even a moment’s rest on Everest can come with a reminder of just how unpredictable the mountain can be.\n\nFrom…",
          "author": {
            "id": "787132",
            "name": null,
            "handle": "natgeo",
            "url": null,
            "avatarUrl": null,
            "isVerified": null
          },
          "community": null,
          "publishedAt": null,
          "likes": 43820,
          "comments": null,
          "shares": null,
          "views": 1603019,
          "media": [
            {
              "type": "image",
              "url": "https://scontent-ord5-1.cdninstagram.com/v/t51.82787-15/865525088_18712762651019133_8954025122327073428_n.jpg?stp=dst-j…"
            }
          ],
          "hashtags": [],
          "id": "4017311023166285121",
          "url": "https://www.instagram.com/reel/DfAWxdIFmVB/",
          "postCode": "DfAWxdIFmVB",
          "type": "reel",
          "mentions": [
            "chaivasarhelyi",
            "jimmychin"
          ],
          "imageDescription": "Video by National Geographic on October 27, 2026. May be an image of ski, glasses, ski slope and text."
        }
      ],
      "cursor": "AQHTTOsiw50N3nKKxR7N1fBjuEgnYZtTvRckOd9DaURJrqMPxNIgNrqqH91cbjGodC4KrMz-buKnudn41Gu_K_5fsA",
      "similarAccounts": [
        {
          "id": "0",
          "handle": "example_user",
          "name": "Example user",
          "bio": null,
          "avatarUrl": null,
          "isVerified": true,
          "followers": null,
          "following": null,
          "posts": null,
          "website": null,
          "location": null,
          "category": null,
          "url": "https://example.com/example_user",
          "isPrivate": false
        }
      ]
    }
  }
}
```

## Options

Send options in the `options` object of the `json` format.

| Option | What it does |
| - | - |
| `view` | Picks one of the answers this parser can give: `reels`. |
| `cursor` | The cursor from the previous response. Send it as is. |

## Price

\$1 per 1,000 calls. See [Pricing](https://docs.stophy.dev/account/pricing.md).

## Limits and errors

* The URL must be an Instagram profile page, like instagram.com/natgeo. Its reels tab, like instagram.com/natgeo/reels, or options view reels on the profile page, returns the reels. Any other URL fails with `invalidRequest`.
* To read the next page, send the `cursor` from the response as the `cursor` option. Paging needs an API key.
* The answer comes back in `data.json`. If the page cannot be read, the call fails with an error code from [Errors](https://docs.stophy.dev/api-reference/errors.md).

## Related

* [Pre-built parsers](https://docs.stophy.dev/scrape/prebuilt-parsers) lists every parser.
* [Scrape](https://docs.stophy.dev/scrape/overview) has the options every scrape takes.
* [Instagram transcript](https://docs.stophy.dev/scrape/prebuilt-parsers/video/instagram-transcript.md)
* [Instagram post](https://docs.stophy.dev/scrape/prebuilt-parsers/social/instagram-post.md)
* [Instagram comments](https://docs.stophy.dev/scrape/prebuilt-parsers/social/instagram-comments.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.