Skip to main content

Get Your API Key

Head to the Octen API Platform to create an account. Then copy your API key from the console.

Make Your First Search Request

Octen provides a simple REST API for web search. No SDK installation required - you can start searching immediately with HTTP requests.

Using cURL

curl --request POST \
  --url https://api.octen.ai/search \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: YOUR_API_KEY' \
  --data '{
    "query": "latest AI developments",
    "count": 5
  }'

Using Python (requests)

import requests

url = "https://api.octen.ai/search"
headers = {
    "Content-Type": "application/json",
    "x-api-key": "YOUR_API_KEY"
}
payload = {
    "query": "latest AI developments",
    "count": 5
}

response = requests.post(url, json=payload, headers=headers)
data = response.json()
print(data)

Response Example

{
  "code": 0,
  "msg": "success",
  "data": {
    "query": "latest AI developments",
    "search_type": "semantic",
    "results": [
      {
        "title": "Latest AI Breakthroughs in 2026",
        "url": "https://example.com/ai-news",
        "snippet": "Recent developments in artificial intelligence...",
        "published_date": "2026-01-15"
      }
      // ... more results
    ]
  }
}

Next Steps