Integration guide

Authenticate, search, and read the results.

1. Authentication

Call from your server with api-key and Content-Type: application/json headers. Keep your key private.

Open API Keys

2. Request parameters

Requests support only query, count, and search_lang. query accepts a natural-language question or keywords.

FieldTypeRequiredDescription
querystringYesA search question or keywords. Must not be empty.
countintegerNoDesired result count. Omit or pass 0 to use the service default.

4. Read the result

Check success first. On success, read data.references and data.data; on failure, inspect errorCode and errorMsg. The web content below is illustrative.

Success response
json
{
  "success": true,
  "data": {
    "references": [
      {
        "website": "example.com",
        "logo": "https://example.com/favicon.ico",
        "title": "Example smart home news",
        "url": "https://example.com/article",
        "summary": "Search result summary goes here.",
        "published": "",
        "extra": {}
      }
    ],
    "data": [
      "Search result summary goes here."
    ]
  },
  "errorCode": null,
  "errorMsg": null
}
data.referencesWeb references with titles, links and summaries.
data.dataResult text list, nested inside the outer data object.
references[].website / logoWebsite name or domain and logo URL.
references[].title / url / summaryResult title, original page URL and summary.
references[].published / extraPublication date and extra information. May be empty.

success=true with empty references and data arrays means no valid results were found. Try different keywords or a different search language; do not treat it as an API failure.

Error response
json
{
  "success": false,
  "data": null,
  "errorCode": "PARAM_INVALID",
  "errorMsg": "query is required"
}

Common errors and next steps

PARAM_INVALIDCheck the JSON and query. Correct the parameters before retrying.
SEARCH_FAILEDThe search failed. Retry later with a limit on attempts. For persistent failures, save the call time and request identifier for support.