# 参数
此 Crawling API 参数 可以提交给 Smart AI Proxy 作为以“.”开头的标头 CrawlbaseAPI-Parameters: ....
这样,您就可以为爬虫行为提供具体的配置和指令。 Smart AI Proxy使您能够根据自身具体需求定制请求。
以下示例说明了如何使用 Smart AI Proxy 发出断层请求,专门针对美国 country=US.除此之外,还可以使用各种API参数,包含但不限于: store=true, device=mobile和 get_cookies=true.
- 卷曲
- 红宝石
- 节点
- PHP
- 蟒蛇
- go
使用 HTTP:
curl -H "CrawlbaseAPI-Parameters: country=US&get_headers=true" \
-x "http://[email protected]:8012" \
-k "http://httpbin.org/ip"
使用 HTTPS:
curl -H "CrawlbaseAPI-Parameters: country=US&get_headers=true" \
-x "https://[email protected]:8013" \
-k "http://httpbin.org/ip"