---
title: "Get OpenAPI Spec"
method: GET
path: "/2/openapi.json"
tags: ["General"]
---

# Get OpenAPI Spec

`GET /2/openapi.json`

## Request

- Base URL: `https://api.x.com`
- URL: `https://api.x.com/2/openapi.json`
- Auth: none declared

Retrieves the full OpenAPI Specification in JSON format. (See https://github.com/OAI/OpenAPI-Specification/blob/master/README.md)

## Response `200`

The request was successful

- object

---

[API](https://skmtc.dev/x/apis/x-api-v2.md) - [All operations](https://skmtc.dev/x/apis/x-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/x/apis/x-api-v2/revisions/2e1fefa37444?raw)
