Skip to main content
POST
/
v2
/
web
/
search
Search the web (v2)
curl --request POST \
  --url https://api.weblinq.dev/v2/web/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "query": "<string>",
  "limit": 10
}'
{
  "success": true,
  "data": {
    "results": [
      {
        "id": "<string>",
        "title": "<string>",
        "url": "<string>",
        "snippet": "<string>",
        "favicon": "<string>",
        "publishedDate": "<string>"
      }
    ],
    "metadata": {
      "query": "<string>",
      "totalResults": 123,
      "searchTime": 123,
      "timestamp": "<string>",
      "requestId": "<string>"
    }
  },
  "creditsCost": 123,
  "requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "timestamp": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Enter your API token or session token

Body

application/json

Search parameters

query
string
required
Required string length: 1 - 500
limit
number
default:10
Required range: 1 <= x <= 20

Response

Search completed successfully

success
boolean
required
data
object
required
requestId
string<uuid>
required

Unique request identifier for tracing

timestamp
string<date-time>
required

ISO timestamp when the response was generated

creditsCost
number

Credits consumed by this operation

I