Get community media — X API
Returns public posts from an X community's Media tab as visible to not logged in users.
GET
/v1/x/communities/{communityId}/media1 credit per requestExample response200OK
Make the request.
One authenticated GET to /v1/x/communities/{communityId}/media. Authentication and error conventions stay consistent across endpoints. This page shows the path, parameters, response shape, limits, and credit rule for this operation.
Built for
- Data Analytics
- Market Research
- Platform Integration
const response = await fetch("https://api.konbiniapi.com/v1/x/communities/{communityId}/media", {
headers: { "Authorization": "Bearer YOUR_API_KEY" }
});
const data = await response.json();
Parameters3
- communityIdrequiredIn · PathType · stringX community ID
- countIn · QueryType · integerMaximum number of media posts to return from the community media timeline (maximum: 100)1–100default 40
- cursorIn · QueryType · stringPagination cursor
What you will probably call next.
The X endpoints around this one — the same object at a different depth, or the same kind of read.
Try it on your own data.
Get a free API key and make this request in minutes. Failed and timed-out requests are automatically refunded.