Instagram data fields: what the five operations actually return
A field-level reference for the public Instagram operations: inputs, bounded lists, optional post and comment fields, and what “missing” means.
Most integration surprises are field surprises. This reference lists what each Instagram operation accepts and can return, so a schema decision is made before the first request rather than discovered during a review.
Inputs and result shapes
All five operations use the same asynchronous request contract. Input rules are strict: unknown or additional input properties are rejected instead of ignored, so a typo fails loudly.
| Operation | Required input | Optional input | Result |
|---|---|---|---|
| social.instagram.profile.read | username 1–64 chars | None | profile object, flexible fields |
| social.instagram.post.read | canonical public URL | None | post object |
| social.instagram.posts.search | username 1–30 allowed chars | limit 1–100, default 20 | posts array |
| social.instagram.hashtag.posts.search | hashtag 1–100 chars, no # or space | limit 1–100, default 20 | posts array |
| social.instagram.comments.list | canonical public URL | limit 1–100, default 20 | comments array |
Post fields you can expect
Post fields are optional: a field appears only when the source exposed it at collection time. That is why a schema should make every field nullable and why a zero should never stand in for an absent value.
| Field | Type | Notes |
|---|---|---|
| id, shortcode, permalink | string | Stable within the response |
| author_id, author_username | string | Author identity as exposed |
| caption | string | Free text, may contain hashtags and mentions |
| published_at | date-time | Observation-relative, keep the timezone |
| format | enum | image, video, carousel, reel, unknown |
| likes_count, comments_count | integer ≥ 0 | Platform-reported counters |
| views_count | integer ≥ 0 | Video surfaces only |
| hashtags, mentions | string[] | Parsed from the caption |
Rules that hold across all five
- Missing fields are omitted. They are never fabricated as zero or an empty string.
- An empty array means no records were returned; it does not prove the content does not exist.
- Lists are bounded to at most 100 items, with no date-range or sort controls on these contracts.
- Availability is re-evaluated when work is accepted, so a listed operation can still return 503 source_unavailable.
- Make every post and comment field nullable in your schema.
- Treat list results as bounded samples, never as totals.
- Store observation time and coverage beside the fields you persist.
Related pages
Related reading
- Normalising social data without losing what was observedA normalised model should add consistency, not confidence. Keep the raw payload, map to a versioned contract, and never invent a missing value.
- The smallest social data pipeline that is still reliableFour stages: acquire with an idempotency key, validate against a schema, store with provenance, and expose a view that carries coverage.
- Coverage and freshness: the two fields that prevent bad decisionsCompleteness and age are different questions. A response needs both, or a dashboard will read a gap as a trend.
Frequently asked questions
The profile contract stays flexible for compatibility, so follower, demographic or analytics fields are not guaranteed by the schema. Do not build a required field on top of an optional one.
Not with these contracts. The posts operation returns a bounded sample and has no input cursor or date range; it is not a full archive export.
Comment fields and thread limits
Comment reads return a bounded sample. Reply and parent coverage is not guaranteed, so a thread reconstruction should record how many replies were actually observed rather than assuming a complete tree.