Instagram Post
POST /api/v1/instagram/post
Get the details of a public Instagram post or reel: caption, hashtags, tagged users, media and engagement.
Overview
Get the details of a public Instagram post or reel: caption, hashtags, tagged users, media and engagement.
POST /api/v1/instagram/post
Method: POST Path: /api/v1/instagram/post Category: Social Media
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| post_url | string | Required | Public post or reel URL, e.g. https://www.instagram.com/p/SHORTCODE/ |
Request Example
Instagram Post Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/instagram/post" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"post_url": "example"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "post": { "url": "https://example.com/...", "shortcode": "string", "image": "string", "title": "string", "caption": "string", "description": "string", "mediaId": "1234567890", "taken_at": 0, "taken_at_iso": "string", "like_count": 0, "comment_count": 0 }, "account": { "username": "string", "userId": "1234567890", "profileUrl": "https://example.com/...", "profilePic": "string" }, "comments": [ { "id": "1234567890", "text": "string", "created_at": 0, "created_at_iso": "string", "like_count": 0, "parent_comment_id": "1234567890", "user": { "id": "1234567890", "username": "string", "full_name": "string", "profile_pic_url": "https://example.com/...", "is_verified": false } } ], "comments_page_info": { "end_cursor": "string", "has_next_page": false, "has_previous_page": false, "start_cursor": "string" }, "relatedPosts": [ { "shortcode": "string", "mediaId": "1234567890", "media_type": 0, "url": "https://example.com/...", "thumbnail_url": "https://example.com/...", "caption": "string", "like_count": 0, "comment_count": 0, "view_count": 0, "taken_at": 0, "taken_at_iso": "string", "owner": { "id": "1234567890", "username": "string", "is_verified": false, "profile_pic_url": "https://example.com/..." } } ], "alternateUrls": [ { "lang": "string", "url": "https://example.com/..." } ], "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "Instagram Post", "mode": "live", "format": "json", "timestamp": "2026-01-01T12:00:00+00:00" } }
Response Schema
Fields returned in a successful response. Nested fields use dot notation and `[]` marks items of a list. Fields that are not required can be missing or `null` when the source does not provide them. Every response also includes a `_metadata` block.
Response Fields
| Field | Type | Required | Description |
|---|---|---|---|
| post | object | Yes | Post details including metrics, timestamps, and media content. |
| post.url | string | Yes | Canonical post or reel URL. |
| post.shortcode | string | Yes | Instagram shortcode identifier. |
| post.image | string | null | Yes | Main post image or video poster URL. |
| post.title | string | null | Yes | Extracted post title if available. |
| post.caption | string | null | Yes | Full post caption text. |
| post.description | string | null | Yes | Meta description content from post header. |
| post.mediaId | string | Yes | Numeric or alphanumeric Instagram media ID. |
| post.taken_at | integer | null | Yes | Unix timestamp when post was published. |
| post.taken_at_iso | string | null | Yes | ISO-8601 UTC formatted publication timestamp. |
| post.like_count | integer | null | Yes | Total number of likes. |
| post.comment_count | integer | null | Yes | Total number of comments. |
| account | object | Yes | Author account information for the post. |
| account.username | string | Yes | Author username handle. |
| account.userId | string | Yes | Author numeric user ID. |
| account.profileUrl | string | Yes | Link to the author's Instagram profile. |
| account.profilePic | string | Yes | Author profile picture image URL. |
| comments | array<object> | Yes | List of top/initial comments extracted from the post. |
| comments[].id | string | Yes | Unique comment identifier. |
| comments[].text | string | Yes | Comment text content. |
| comments[].created_at | integer | null | Yes | Unix timestamp of comment creation. |
| comments[].created_at_iso | string | null | Yes | ISO-8601 UTC formatted comment creation timestamp. |
| comments[].like_count | integer | Yes | Number of likes on the comment. |
| comments[].parent_comment_id | string | null | Yes | Parent comment ID if this comment is a reply. |
| comments[].user | object | Yes | |
| comments[].user.id | string | null | Yes | Commenter user ID. |
| comments[].user.username | string | null | Yes | Commenter username handle. |
| comments[].user.full_name | string | null | Yes | Commenter full name. |
| comments[].user.profile_pic_url | string | null | Yes | Commenter profile avatar URL. |
| comments[].user.is_verified | boolean | Yes | Whether commenter has a verified badge. |
| comments_page_info | object | Yes | Pagination metadata for comments. |
| comments_page_info.end_cursor | string | null | Yes | Cursor pointing to the end of the current comment page. |
| comments_page_info.has_next_page | boolean | Yes | True if more comments exist after this page. |
| comments_page_info.has_previous_page | boolean | Yes | True if earlier comments exist before this page. |
| comments_page_info.start_cursor | string | null | Yes | Cursor pointing to the start of the current comment page. |
| relatedPosts | array<object> | Yes | Related posts or child carousel cards associated with this post. |
| relatedPosts[].shortcode | string | Yes | Shortcode identifier. |
| relatedPosts[].mediaId | string | Yes | Unique media ID. |
| relatedPosts[].media_type | integer | Yes | Media type number (e.g. 1 for image, 2 for video/reel, 8 for carousel). |
| relatedPosts[].url | string | Yes | Post URL link. |
| relatedPosts[].thumbnail_url | string | Yes | Thumbnail image URL. |
| relatedPosts[].caption | string | null | Yes | Caption text if present. |
| relatedPosts[].like_count | integer | null | Yes | Likes count. |
| relatedPosts[].comment_count | integer | null | Yes | Comment count. |
| relatedPosts[].view_count | integer | null | Yes | Video view count if video. |
| relatedPosts[].taken_at | integer | null | Yes | Unix publication timestamp. |
| relatedPosts[].taken_at_iso | string | null | Yes | ISO-8601 formatted datetime string. |
| relatedPosts[].owner | object | Yes | |
| relatedPosts[].owner.id | string | null | Yes | Owner ID. |
| relatedPosts[].owner.username | string | null | Yes | Owner username handle. |
| relatedPosts[].owner.is_verified | boolean | Yes | Owner verified status. |
| relatedPosts[].owner.profile_pic_url | string | null | Yes | Owner profile picture URL. |
| alternateUrls | array<object> | Yes | List of alternate language / canonical URLs discovered on the page. |
| alternateUrls[].lang | string | Yes | Language code from the page's hreflang (e.g. 'en', 'x-default'). |
| alternateUrls[].url | string | Yes | Post URL for that language. |
Asynchronous Requests
Long-running requests can be processed in the background. Add `?async=true` (or the `Prefer: respond-async` header) to receive a `job_id` immediately, then poll the job until its status is `COMPLETED`.
Async Workflow
curl -X POST "https://api.dataguru.cc/api/v1/instagram/post?async=true" \ -H "Authorization: Api-Key YOUR_API_KEY" # 202 Accepted { "success": true, "status": "SUBMITTED", "job_id": "0ca215ce-244f-4b28-b481-dc1b551983c8", "status_url": "/api/v1/jobs/0ca215ce-244f-4b28-b481-dc1b551983c8/" }
Batch Processing
To run many requests at half price, upload them as a CSV file: one row per request, with the parameter names above as the header row. Rows run in the background within 24 hours (up to 7 days for large files) and each successful row costs 50% of the price below. Poll /api/v1/batches/{batch_id}/ for progress and download results.json when it has finished. See the Batch Processing guide for details.
Batch Workflow
post_url example
Pricing & Rate Limits
Endpoint Pricing
$0.0008 / per successful request (USD)
Consumed per successful call: 1 request unit(s), 1 credit(s).
Endpoint Rate Limits
Common Errors
Common HTTP Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | A required parameter is missing or malformed. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 402 | INSUFFICIENT_BALANCE | Your balance cannot cover this request. |
| 403 | ENDPOINT_DISABLED | This endpoint is currently unavailable. |
| 405 | METHOD_NOT_ALLOWED | The endpoint was called with the wrong HTTP method. |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests. See the Retry-After header. |
| 502 | PROVIDER_ERROR | The upstream data source failed. Retry with exponential backoff. |