Submit

Create SERP tasks in batch

Request URL

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

Request Headers

ParametersParameter valueTypeDescription
Content-Typeapplication/jsonstringData format
AuthorizationBearer xxxstringAuthorization Token

Request Parameters

ParametersRequiredTypeDescription
urlsYesstringTarget webpage URL list (up to 50)
callbackYesstringTask callback URL (Results are returned via POST requests)
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/batch/search\
  --request POST \
  --header 'Authorization: ' \
  --header 'Content-Type: application/json' \
  --data '{
  "timeout": 25000,
  "callback": "",
  "urls": [
    "https://www.google.com/search?q=how+java+work"
  ]
}'

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