POST /v1/data/web/search
Changed onPublic Data API facade for web search. Supports normal API-key billing and accountless x402 quotes when called without Authorization or x-api-key and with x-x402: true.
Request
- Base URLhttps://api.nano-gpt.com/api
- URLhttps://api.nano-gpt.com/api/v1/data/web/search
- Auth
- API key in header x-api-key
- or HTTP bearer
- or none
Headers
x-x402'true'
Set to true on unauthenticated accountless x402 quote requests. Without this header, unauthenticated requests return 401 missing_api_key.
Request body
Example request
{
"query": "latest AI news",
"provider": "linkup",
"structuredOutputSchema": "{\"type\": \"object\", \"properties\": {\"items\": {\"type\": \"array\"}}}",
"fromDate": "2025-01-01",
"toDate": "2025-07-01",
"excludeDomains": [
"example.com",
"spam.com"
],
"includeDomains": [
"trusted.com",
"official.org"
]
}Response
Web search response with results based on output type
Changes
- info
endpoint added
- info