GET
/
api
/
v1
/
serp
curl --request GET \
  --url https://www.fetchserp.com/api/v1/serp \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "query": "<string>",
    "search_engine": "<string>",
    "country": "<string>",
    "results_count": 123,
    "results": [
      {
        "site_name": "<string>",
        "url": "<string>",
        "title": "<string>",
        "description": "<string>",
        "ranking": 123
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

A bearer token that will be supplied within an Authorization header as bearer <token>.

Query Parameters

query
string
required

The query to search

search_engine
string

The search engine to use. Supported values: google, bing, yahoo and duckduckgo. Default to google.

country
string

The country to search from. Default to us.

pages_number
integer

The number of pages to search (1-30). Default to 1.

Response

200
application/json

success

The response is of type object.