Skip to main content
Expansions let you include related objects in a single API response. Instead of making multiple requests, get a post and its author, media, or referenced posts in one call.

How expansions work

When you request an expansion, the API includes the full object in the includes section of the response:
Response:
The author_id in data links to the user object in includes.

Post expansions


User expansions


Space expansions


DM expansions


List expansions


Combining with fields

Expansions return default fields for each object. To get additional fields, combine expansions with field parameters:
Response:

Multiple expansions

Request multiple expansions as a comma-separated list:

Common patterns

Get a post with author, media, and referenced posts:

Linking data and includes

The objects in includes don’t contain position information. Link them using IDs:

Next steps

Fields

Request specific fields for each object.

Data Dictionary

Complete object schemas.