POST
/
scrape
/
batch
curl --request POST \
  --url https://scrapeapi.pangolinfo.com/api/v1/scrape/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "urls": [
    "https://www.amazon.com/dp/B0B41YH9B6"
  ],
  "format": "rawHtml",
  "timeout": 40000
}'
{
  "code": 0,
  "message": "ok",
  "data": [
    {
      "status_code": 200,
      "method": "GET",
      "rawHtml": [
        "<html><head>...</head><body><div class=\"content\">Example content</div></body></html>"
      ],
      "url": "https://www.amazon.com/dp/B0B41YH9B6",
      "taskId": "89b47267873c4fda99b21aeabd2fe851"
    }
  ]
}

积点消耗说明

format参数消耗积点数
获取源文件rawHtmlmarkdown1 个/次

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

application/json

用于接口任务提交的信息

The body is of type object.

Response

200 - application/json

成功返回示例

The response is of type object.