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

# Instagram

> Read public posts, profiles, profile previews and visible comments on a known post.

Use the same Vexqo API key to read a public Instagram post or reel by URL or shortcode, look up a profile by username, or collect visible comments.

## Endpoints and credits

| Request | What it returns | Standard credits |
| - | - | - |
| `GET /instagram/posts` | One post or reel, media and available engagement counts | 6 |
| `GET /instagram/profiles/{username}` | Public profile details and available counts | 6 |
| `GET /instagram/profiles/{username}/posts` | Up to 12 posts from a public profile preview | 6 |
| `GET /instagram/posts/comments` | Unique visible comments and their public commenter identities | 14 per 25 returned comments, rounded up; minimum 14 |

Prices apply to successful requests, including cache hits. Failed requests cost zero. Read `instagram_post`, `instagram_profile`, `instagram_profile_posts` and `instagram_comments` under `credit_costs` in `GET /account` for your account's rates.

## Read a post or profile

```bash theme={null}
curl --fail-with-body --get "https://api.vexqo.dev/instagram/posts" \
  --header "X-API-Key: $VEXQO_API_KEY" \
  --data-urlencode "target=https://www.instagram.com/p/DMpJKllMDN6/"

curl --fail-with-body "https://api.vexqo.dev/instagram/profiles/nike" \
  --header "X-API-Key: $VEXQO_API_KEY"
```

Post responses include `post`, `source` and `links`. Fields cover the caption, timestamp, author, media assets and available likes, comments and views. Profile responses contain `profile`, `source` and `links`, with public biography, verification status, website, avatar and available follower, following and post counts.

Use `/instagram/profiles/{username}/posts?limit=3` for recent public profile previews. This endpoint accepts `limit=1..12`, default 12, and may include pinned posts. Its `collection` metadata describes partial coverage; no next page is supported.

## Read comments

```bash theme={null}
curl --fail-with-body --get "https://api.vexqo.dev/instagram/posts/comments" \
  --header "X-API-Key: $VEXQO_API_KEY" \
  --data-urlencode "target=https://www.instagram.com/p/DMpJKllMDN6/" \
  --data-urlencode "limit=25"
```

| Parameter | Default | Meaning |
| - | - | - |
| `target` | Required | Public post or reel HTTPS URL, or shortcode. A profile URL is not accepted. |
| `limit` | `25` | Maximum unique comments to return, from 1 to 100. |
| `max_age` | `0` | Maximum acceptable cached age, from 0 to 300 seconds. Zero requests fresh collection. |
| `country` | Service default | Two-letter collection exit country, not the post's origin or audience. |

`max_age` and `country` also apply to the other Instagram endpoints.

The comments response includes:

| Field | Meaning |
| - | - |
| `shortcode`, `post_url` | The requested post's identity and canonical URL. |
| `comments[].id`, `.text`, `.created_at` | Stable comment ID, visible text and source timestamp. Missing text and timestamps remain `null`. |
| `comments[].user` | Public username, profile URL and verification status when supplied. |
| `comments[].like_count` | Source-provided likes on that comment. |
| `comments[].parent_id` | Source-supplied parent comment ID; `null` does not prove that the comment is top-level. |
| `comments_returned` | Number of unique comments in this response, used for billing. The post caption is excluded. |
| `comments_total` | Instagram's displayed total when supplied. It may include replies and unavailable comments. |
| `partial` | Always `true`; visible comments do not establish a complete discussion. |
| `has_more` | Whether the observed comment connection advertises more pages, or `null` when unknown. |
| `stopping_reason` | `limit_reached`, `source_exhausted`, `load_timeout` or `no_progress`. |
| `source` | Collection time, method, cache status, age and exit country. |
| `links` | Links to this request, the post lookup and the public source. `next` is `null`; client pagination is not supported. |

`limit_reached` means the requested number of comments was collected. `source_exhausted` or `has_more=false` describes only the observed connection; collapsed replies and unavailable comments can still be missing. Returned counts need not equal `comments_total`.

### Comment billing

| Unique comments returned | Standard credits |
| - | - |
| 0–25 | 14 |
| 26–50 | 28 |
| 51–75 | 42 |
| 76–100 | 56 |

The requested limit reserves the maximum charge before collection; unused credits are released afterward. For example, `limit=100` reserves 56 credits, and returning 26 unique comments charges 28. A successful empty read costs 14; failed requests cost zero.

## Coverage

These are public lookups by known post or username. They do not provide keyword search, private content, follower or liker lists, or a complete account history. Commenter profile links identify visible participants; they do not establish buying intent, positive sentiment or membership of the post author's followers.

Missing metrics remain `null`, not zero. Media URLs come from Instagram and may expire. See [credits and errors](https://docs.vexqo.dev/usage.md) and the [API reference](https://docs.vexqo.dev/api-overview.md) for response schemas and error handling. AI clients can use `get_instagram_comments` with the same target, limit and billing rules.


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