MenuResponse conventions

Guides

Response conventions

The rules every response follows, on every platform.

01

Timestamps are ISO 8601 UTC

Every date is a string you can hand straight to Date or datetime.

"taken_at": 1762092191"published_at": "2026-11-02T14:03:11Z"
02

One canonical id

A single string id per resource. The pk / pk_id / strong_id__ family is gone.

"pk": 25025320, "strong_id__": "25025320""id": "25025320"
03

No status field

The HTTP status code carries success, so you never branch on two sources of truth.

200 OK { "status": "error" }404 { "error": "Not found" }
04

Cursor pagination, always in the same place

Every list endpoint paginates identically, so one loop works across all platforms.

"pagination": { "next_cursor": "QVFE…", "has_more": true }
05

Media is pre-selected

One chosen rendition per asset instead of a candidate array to sort by width.

"image_versions2": { "candidates": [ … ] }"media": [{ "url": "…", "width": 1080, "height": 1350 }]
06

Collections are named

The key tells you what is in it, rather than a generic items.

"items": [ … ]"posts" · "reels" · "stories" · "comments"
07

Absent means absent

A field the platform did not return is omitted entirely, so a present key usually holds a usable value. Exceptions today: X media items set alt_text to null when there is none, and X search also sets duration_seconds to null on images.

"external_url": null// key omitted
08

One error shape

Every 4xx and 5xx is the same object, declared once in the spec and referenced everywhere.

{ "error": "Missing required parameter: username" }
esc

Pages

Endpoints

↑↓ to move↵ to open