# Search the docs

Source: https://ampost.io/docs/api/docs-search · Full reference: https://ampost.io/llms-full.txt

`GET /api/docs/search` · MCP tool `docs_search` · scope none (any key) · rate limit `apiRead` · success `200`

Search the Ampost docs (`/docs`, `/docs/mcp` and `/llms-full.txt`) for a question such as "schedule a post to instagram". Returns the best matching sections, each with its title, a short excerpt and its URL. Any valid key may call it, and it is not counted toward the plan's 30-day API requests.

| Field | In | Type | Required | Description |
|---|---|---|---|---|
| `query` | query | string | yes | What you want to know, in plain words, e.g. "schedule a post to instagram". |
| `limit` | query | integer | no | Number of sections, 1-20. Default 5. |

Example response:

```json
{
  "data": [
    {
      "id": "posts/posts_create",
      "title": "Create, schedule or publish a post (posts_create)",
      "url": "https://ampost.io/docs/api/posts-create",
      "excerpt": "| `useQueue` | body | boolean | no | Schedule the post in the next free slot of its platform set's queue (see queue_get) instead of at `scheduledFor`."
    },
    {
      "id": "platforms/instagram",
      "title": "Instagram",
      "url": "https://ampost.io/docs/platforms",
      "excerpt": "- To post to Instagram, name `instagram` in `targets[].platforms`; its settings go in `options.instagram`."
    }
  ]
}
```
