> ## 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 post

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

Reads an Instagram post, reel or share link, and returns one post 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/p/DeuOR-CjKE9/","formats":[{"type":"json","parser":"instagram-post"}]}'
```

```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/p/DeuOR-CjKE9/",
    formats: [{ type: "json", parser: "instagram-post" }],
  }),
});
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/p/DeuOR-CjKE9/",
        "formats": [{"type": "json", "parser": "instagram-post"}],
    },
)
print(response.json())
```

## Read the response

The parser's data is in `data.json`. Its fields include `id`, `url`, `title`, `text`, `author`, `community`, `publishedAt`, `likes`, `comments`, `shares`, `views`, `media` and `hashtags`. This sample is cut to the first items.

```json theme={null}
{
  "success": true,
  "data": {
    "json": {
      "id": "4012207125530714429",
      "url": "https://www.instagram.com/p/DeuOR-CjKE9/",
      "title": null,
      "text": "Some of the best reasons to travel in 2027 are far from the usual destinations. 🌎\n\nNational Geographic’s picks for…",
      "author": {
        "id": "787132",
        "name": "National Geographic",
        "handle": "natgeo",
        "url": "https://www.instagram.com/natgeo/",
        "avatarUrl": "https://scontent-dfw6-2.cdninstagram.com/v/t51.82787-19/683576066_18653628823019133_9051036240972105113_n.jpg?stp=dst-j…",
        "isVerified": true
      },
      "community": null,
      "publishedAt": "2026-10-20T16:06:30.000Z",
      "likes": 16397,
      "comments": 261,
      "shares": null,
      "views": null,
      "media": [
        {
          "type": "image",
          "url": "https://scontent-dfw6-2.cdninstagram.com/v/t51.82787-15/858921974_18710195065019133_277441153414192961_n.jpg?stp=dst-jp…"
        }
      ],
      "hashtags": [
        "BestOfTheWorld"
      ],
      "postCode": "DeuOR-CjKE9",
      "type": "photo",
      "mentions": [],
      "thumbnailUrl": "https://scontent-dfw6-2.cdninstagram.com/v/t51.82787-15/858921974_18710195065019133_277441153414192961_n.jpg?stp=dst-jp…",
      "imageDescription": "Photo by National Geographic on October 20, 2026. May be an image of outdoors and text.",
      "isPinned": false,
      "taggedUsers": [
        "natgeotravel"
      ],
      "coauthors": [
        "natgeotravel"
      ],
      "audioTitle": null,
      "audioArtist": null,
      "audioIsOriginal": null,
      "isPaidPartnership": false,
      "sponsors": [],
      "commentList": [
        {
          "url": "https://www.instagram.com/p/DeuOR-CjKE9/c/18181102558431616/",
          "author": {
            "id": "0",
            "name": null,
            "handle": "example_user",
            "url": "https://example.com/example_user",
            "avatarUrl": null,
            "isVerified": false
          },
          "text": "#protejamnossospovosindigenas\n#PovosIndígenas #GuaraniKaiowá #protejaospovosindigenas #JustiçaNoCampo #exercitodolula",
          "publishedAt": "2026-11-04T21:09:54.000Z",
          "likes": 0,
          "replies": null,
          "parentId": null,
          "id": "18181102558431616"
        }
      ]
    }
  }
}
```

## Options

This parser takes no options.

## Price

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

## Limits and errors

* The URL must be an Instagram post, reel or share link. Any other URL fails with `invalidRequest`.
* 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 profile](https://docs.stophy.dev/scrape/prebuilt-parsers/social/instagram-profile.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.