Skip to main content
POST
/
go-serpapi-server
/
open
/
consume
Consume Search API
curl --request POST \
  --url https://api.glorycloud.com/go-serpapi-server/open/consume \
  --header 'Content-Type: application/json' \
  --header 'apiKey: <apikey>' \
  --data '
{
  "query": "Iphone",
  "gl": "California,United States",
  "lang": "en",
  "domain": "com",
  "page": 1,
  "retry": false,
  "hostLang": "en"
}
'
{
  "code": 200,
  "msg": "success",
  "data": {
    "organic": [
      {
        "pos": 123,
        "pos_overall": 123,
        "title": "<string>",
        "favicon_text": "<string>",
        "url_shown": "<string>",
        "url": "<string>",
        "desc": "<string>"
      }
    ],
    "images": {},
    "related_searches": {
      "related_searches": [
        "<string>"
      ],
      "pos_over_all": 123
    },
    "people_also_ask": {
      "items": [
        "<string>"
      ],
      "pos_overall": 123
    },
    "top_stories": {
      "items": [
        "<string>"
      ],
      "pos_overall": 123
    },
    "what_people_are_saying": {},
    "total_results_count": null
  }
}

Headers

apiKey
string
required

API key used for authentication.

Body

application/json
query
string
required

Search keywords

Example:

"Iphone"

gl
string
required

Geographic location for search results

Example:

"California,United States"

lang
string
required

Search language code

Example:

"en"

domain
string
required

Search domain (e.g., com, co.uk)

Example:

"com"

page
integer
required

Page number, range 1-100

Required range: 1 <= x <= 100
Example:

1

retry
boolean
default:false

Whether to retry on failure

Example:

false

hostLang
string

Host language

Example:

"en"

Response

200 - application/json

Successful Response

code
integer

Response status code

Example:

200

msg
string

Response message

Example:

"success"

data
object