X

X Spaces API

Endpoints related to retrieving, managing Spaces — 6 operation(s) in the X-published contract.

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /2/spaces Look up several Spaces by ID · Get Spaces by IDs #
Ask an LLM
“Can I fetch details for multiple Spaces in one request?”
“What state and host info comes back for a batch of Space IDs?”
Tell an agent
Get the Spaces with IDs {ids}.
Look up these Spaces at once: {ids}.
GET /2/spaces/by/creator_ids Find Spaces hosted by given users · Get Spaces by Creator IDs #
Ask an LLM
“Which Spaces are certain users hosting?”
“How do I find Spaces created by a list of accounts?”
Tell an agent
Find Spaces created by users {user_ids}.
Show Spaces hosted by {user_ids}.
GET /2/spaces/search Search Spaces by keyword · Search Spaces #
Ask an LLM
“Are there any live Spaces about a topic right now?”
“Can I search only scheduled Spaces matching a keyword?”
Tell an agent
Search Spaces for {query}.
Find {state} Spaces about {query}.
GET /2/spaces/{id} Get one Space by ID · Get Spaces by ID #
Ask an LLM
“What details does a single Space expose?”
“Is a particular Space live, scheduled or ended?”
Tell an agent
Get Space {id}.
Show the title and state of Space {id}.
GET /2/spaces/{id}/buyers List ticket buyers for a Space · Get Space ticket buyers #
Ask an LLM
“Who bought tickets to my ticketed Space?”
“Can I page through a Space's ticket purchasers?”
Tell an agent
List the ticket buyers for Space {id}.
Show {max_results} users who purchased tickets to Space {id}.
GET /2/spaces/{id}/tweets Get posts shared in a Space · Get Space Posts #
Ask an LLM
“Which posts were shared during a Space?”
“Can I retrieve the posts pinned or shared in a specific Space?”
Tell an agent
Show the posts shared in Space {id}.
Get {max_results} posts from Space {id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/x:x-spaces-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

x-spaces-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: X API v2 core endpoints
  version: '2.168'
  title: X API v2 Spaces API
  termsOfService: https://developer.x.com/en/developer-terms/agreement-and-policy.html
  contact:
    name: X Developers
    url: https://developer.x.com/
  license:
    name: X Developer Agreement and Policy
    url: https://developer.x.com/en/developer-terms/agreement-and-policy.html
servers:
- description: X API
  url: https://api.x.com
tags:


# --- truncated at 32 KB (72 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/x/refs/heads/main/openapi/x-spaces-api-openapi.yml