Submit

Create an asynchronous SERP task

Request URL

POST https://scrapeapi.pangolinfo.com/api/v3/extract/search

Request Headers

ParametersParameter valueTypeDescription
Content-Typeapplication/jsonstringData format
AuthorizationBearer xxxstringAuthorization Token

Request Parameters

ParametersRequiredTypeDescription
urlYesstringTarget URL
callbackYesstringTask callback URL
edgeIdNostringSpecify node device ID
isGetHealthEdgeNobooleanWhether to automatically select healthy nodes
isObstinateNobooleanWhether to enable a stronger retry strategy
paramsNoobjectExtra query or business parameters to append to the URL
tagNostringTask tag
timeoutNointTask timeout

Response value

Return valueTypeDescription
statusintTask status: -1 = Failed, 1 = In Progress, 2 = Successful
taskIdstringTask ID
urlstringTask source URL
dataobjectParsed or collected results
errorMessagestringError message
htmlstringOriginal HTML content encoded in Base64

Request example

curl https://scrapeapi.pangolinfo.com/api/v3/extract/search \
  --request POST \
  --header 'Authorization: ' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "https://www.google.com/search?q=how+java+work",
  "timeout": 25000,
  "edgeId": "",
  "callback": "",
  "tag": "",
  "params": {
    "propertyName*": ""
  },
  "isGetHealthEdge": false,
  "isObstinate": false
}'

Return example

{
  "data": {
    "url": "string",
    "taskId": "string",
    "status": 1,
    "data": { "items": { "items": [ { "type": "organic", "items": [  {"text": "Amazon Web Services (AWS)","type": "organic","title": "What is Java? - Java Programming Language Explained","url": "https://aws.amazon.com/what-is/java/"},{  "text": "Carnegie Mellon University",  "type": "organic",  "title": "How Java Works",  "url": "https://www.cs.cmu.edu/~jcarroll/15-100-s04/supps/basics/hist.html"},{  "text": "People also ask...Feedback",  "type": "organic",  "title": ""}]},{  "type": "related_searches",  "items": [    "What is Java programming used for",    "How JVM works",    "What is Java Oracle",    "What is Java syntax"  ]}]}},
    "html": "string",
    "errorMessage": "string"
  }
}

Credit Consumption

0.5 Credit/Per Request