# 参数
此 Crawling API 参数 可以传递给 Smart AI Proxy 作为以“.”开头的标头 CrawlbaseAPI-Parameters: ....
这样,您就可以为爬虫行为提供具体的配置和指令。 Smart AI Proxy使您能够根据自身具体需求定制请求。
以下示例说明了如何使用 Smart AI Proxy 发出地理位置请求,专门针对美国 country=US. 此外,还可以使用各种 API 参数,包括但不限于: store=true, device=mobile和 get_cookies=true.
- curl
- ruby
- node
- php
- python
- go
Using HTTP:
curl -H "CrawlbaseAPI-Parameters: country=US&get_headers=true" \
-x "http://[email protected]:8012" \
-k "http://httpbin.org/ip"
Using HTTPS:
curl -H "CrawlbaseAPI-Parameters: country=US&get_headers=true" \
-x "https://[email protected]:8013" \
-k "http://httpbin.org/ip"
← 发布请求 标头和 Cookie →