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

> Read an Instagram reel or video post as JSON with the instagram-transcript parser. $2 per 1,000 videos plus $0.24 per hour of audio, up to 5 minutes.

Reads an Instagram reel or video post and returns its data 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/reel/DfS8Xbng4MD/","formats":[{"type":"json","parser":"instagram-transcript"}]}'
```

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

## Read the response

The parser's data is in `data.json`. Its fields include `startSeconds`, `endSeconds` and `text`. This sample is cut to the first items.

```json theme={null}
{
  "success": true,
  "data": {
    "json": {
      "videoId": "DfS8Xbng4MD",
      "videoUrl": "https://www.instagram.com/reel/DfS8Xbng4MD/",
      "language": "en",
      "isAutoGenerated": true,
      "durationSeconds": 10.9879375,
      "transcribedSeconds": 11,
      "text": "For more information visit www.fema.gov"
    }
  }
}
```

## Options

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

| Option | What it does |
| - | - |
| `language` | BCP 47 language tag, e.g. en or pt-BR. Any case is accepted. |

It also takes `includeTimestamps`.

## Price

$2 per 1,000 videos plus $0.24 per hour of audio, up to 5 minutes. See [Pricing](https://docs.stophy.dev/account/pricing.md).

## Limits and errors

* The URL must be an Instagram reel or video post. 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 post](https://docs.stophy.dev/scrape/prebuilt-parsers/social/instagram-post.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.