POST Search

Perform an AI-powered web search

POSThttps://api.anakin.io/v1/search

Perform an AI-powered web search. Returns an AI-generated summary alongside structured search results with citations, snippets, and relevance scores. Results are returned synchronously.


Request Body

{
  "prompt": "latest AI developments 2024",
  "limit": 5
}
ParameterTypeDescription
prompt requiredstringSearch query or question
limitnumberMaximum number of results to return. Default 5.

Response

200 OK
{
  "id": "63385e99-3ef5-4667-84a7-e7b398ec8e06",
  "results": [
    {
      "url": "https://example.com/article",
      "title": "AI Developments 2024",
      "snippet": "Recent advancements in AI...",
      "date": "2024-01-15",
      "last_updated": "2024-01-20"
    }
  ]
}

Response Fields

FieldTypeDescription
idstringUnique identifier for the search request
resultsarrayArray of search result objects
results[].urlstringSource URL
results[].titlestringPage title
results[].snippetstringRelevant text excerpt
results[].datestringPublication date (when available)
results[].last_updatedstringLast updated date (when available)

Code Examples

curl -X POST https://api.anakin.io/v1/search \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "latest AI developments 2024",
    "limit": 5
  }'