SearchSearch documentation

Search documentation

Performs a hybrid search combining semantic understanding and keyword matching across all indexed documentation pages.

curl -X GET "https://api.documentationai.app/api/v1/search?q=example_string&limit=42&semanticRatio=3.14" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "results": [
    {
      "title": "example_string",
      "path": "example_string",
      "url": "example_string",
      "content": "example_string",
      "relevanceScore": 3.14
    }
  ],
  "query": "example_string",
  "count": 10
}
GET
/search
GET
Bearer Token
Bearer Tokenstring
Required

API key generated from the Documentation.AI dashboard (Settings → API Keys). Pass as Authorization: Bearer dai_...

API key generated from the Documentation.AI dashboard (Settings → API Keys). Pass as Authorization: Bearer dai_...
query
qstring
Required

Search query

Min length: 1
query
limitinteger

Maximum number of results to return

Min: 1 • Max: 50
query
semanticRationumber

Balance between semantic and keyword search. 0 = pure keyword, 1 = pure semantic.

Min: 0 • Max: 1
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. API key generated from the Documentation.AI dashboard (Settings → API Keys). Pass as Authorization: Bearer dai_...

Query Parameters

qstring
Required

Search query

limitinteger

Maximum number of results to return

semanticRationumber

Balance between semantic and keyword search. 0 = pure keyword, 1 = pure semantic.

Responses

resultsarray
querystring
countinteger