Instagram Scraper
Get Instagram Post/Reel Info
Fetches detailed metadata for a single Instagram post or reel by shortcode or URL. Returns caption text, like count, comment count, video URL, video play count, video duration, display images, owner info, tagged users, carousel sidecar children when applicable, and the published time in `data.xdt_shortcode_media.created_at` as an ISO 8601 UTC date. The original Unix timestamp remains available in `data.xdt_shortcode_media.taken_at_timestamp`. Play counts are Instagram-only views and exclude cross-posted Facebook views. Set `include_play_count=false` to omit the play count and skip its additional fetch for a faster response.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| urlstring · required | string | required | Instagram post or reel URL |
| trimboolean · optional | boolean | optional | Set to true to get a trimmed response |
| regionstring · optional | string | optional | 2 letter country code to set the proxy in |
| cache_max_agestring · optional | string | optional | See the Caching page for details. One of: |
| download_mediaboolean · optional | boolean | optional | Set to true to download the video/images and get back permanent Supabase URLs. |
| include_play_countboolean · optional | boolean | optional | Set to false to omit `video_play_count` and skip its additional fetch for a faster response. Defaults to true. Default: |
Response schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"data": {
"type": "object",
"additionalProperties": {}
}
},
"additionalProperties": true
}