Router9
Documentation
API Reference

Web Search

Real-time web search capability for AI agents

Search the Web

Give your AI agent the ability to search the web in real time.

Endpoint

POST /v1/search

Request

curl https://api.router9.com/v1/search \
  -H "Authorization: Bearer sk-r9k-your-key" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "latest developments in AI agents 2026",
    "max_results": 5
  }'
ParameterTypeRequiredDescription
querystringYesSearch query (max 500 characters)
max_resultsnumberNoNumber of results (default: 10, max: 20)

Response

{
  "success": true,
  "data": {
    "query": "latest developments in AI agents 2026",
    "provider": "bing",
    "results": [
      {
        "title": "AI Agent Frameworks See Major Adoption in 2026",
        "url": "https://example.com/article",
        "snippet": "The latest wave of AI agent frameworks has transformed how developers build autonomous systems...",
        "publishedDate": "2026-04-01"
      },
      {
        "title": "Enterprise AI Agent Deployments Double",
        "url": "https://example.com/enterprise",
        "snippet": "Companies are rapidly scaling their AI agent infrastructure...",
        "publishedDate": "2026-03-28"
      }
    ]
  }
}

Errors

Search not configured:

// 503 Service Unavailable
{
  "error": {
    "message": "Web search is not configured on this server",
    "type": "server_error",
    "code": "search_not_configured"
  }
}

Quotas

PlanSearch Requests
Free100/period
Assistant1,000/period
Engineer20,000/period

On this page