How expansions work
When you request an expansion, the API includes the full object in theincludes section of the response:
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:Multiple expansions
Request multiple expansions as a comma-separated list:Common patterns
- Full post context
- Conversation thread
- User with pinned post
Get a post with author, media, and referenced posts:
Linking data and includes
The objects inincludes don’t contain position information. Link them using IDs:
Next steps
Fields
Request specific fields for each object.
Data Dictionary
Complete object schemas.