Playground
General Scrape API
API Guide
Amazon Scrape API
通用采集 API
SERP API
AI Overview SERP API
Keyword Trends API
Map Data API
Amazon Review API
Playground
General Scrape API
批量提交任务接口(同步接口)
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参数 | 消耗积点数 | |
|---|---|---|
| 获取源文件 | rawHtml、markdown | 1 个/次 |
Authorizations
Bearer token authentication
Body
application/json
用于接口任务提交的信息
The body is of type object.
Response
200 - application/json
成功返回示例
The response is of type object.
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"
}
]
}
