Check SERP Status
As a response of the API server, you will get a status of your serp task
Requires authentication
Get a status of your serp task
GET https://api.serphouse.com/serp/check
Query Parameters
Name
Type
Description
id*
String
unique identifier of your serp task
Headers
Name
Type
Description
Authorization*
String
Bearer <YOUR_API_KEY>
{
"status": "success",
"msg": "Completed",
"results": ""
}{
"status": "error",
"msg": "validation_error",
"error": {
"id": [
"The id field is required."
]
}
}{
"status": "success",
"msg": "Not found",
"results": ""
}{
"status": "success",
"msg": "Processing in a queue",
"results": ""
}Example request:
curl --location --request GET 'https://api.serphouse.com/serp/check?id=77224195' \
--header 'Authorization: Bearer <YOUR_API_KEY>'require "uri"
require "net/http"
url = URI("https://api.serphouse.com/serp/check?id=77224195")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = "Bearer <YOUR_API_KEY>"
response = https.request(request)
puts response.read_body
import requests
url = "https://api.serphouse.com/serp/check?id=77224195"
payload={}
headers = {
'Authorization': 'Bearer <YOUR_API_KEY>'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)Last updated
Was this helpful?