接口说明: 通过通用采集API采集目标页面数据。
请求地址: https://webunlocker.dataify.com/request
请求方式: POST
Headers:
| 参数名称 | 参数类型 | 是否必须 | 描述 |
|---|---|---|---|
token | string | 是 | 请登录 Dashboard 网页采集配置以查看您的 token。 |
Body:
| 参数名称 | 参数类型 | 是否必须 | 描述 |
|---|---|---|---|
url | string | 是 | 该参数定义了用于爬取的搜索链接,默认值为 google.com。您也可以更改为其他搜索引擎链接。 |
js_render | string | 否 | 该参数支持动态内容、单页应用(SPA)和复杂交互,建议开启。 |
type | string | 否 | 该参数定义了抓取结果的输出格式。可选择HTML和PNG格式,默认为HTML。 |
block_resources | string | 否 | 该参数可限制不必要的资源抓取,从而加快响应速度。 |
country | string | 否 | 该参数定义了爬取时代理使用的国家/地区,默认值为不使用代理。 |
<html><head><meta name="color-scheme" content="light dark"><meta charset="utf-8"></head><body><pre>{
"ip": "**.***.***.***",
"city": "SantaClara",
"region": "California",
"country": "US",
"loc": "**.3483,-**.9844",
"org": "AS132203 Tencent Building, Kejizhongyi Avenue",
"postal": "***",
"asn": "AS132203",
"timezone": "America/Los_Angeles"
}</pre><div class="json-formatter-container"></div></body></html>
| 参数名称 | 参数类型 | Required |
|---|---|---|
ip | string | 是 |
city | string | 是 |
region | string | 是 |
country | string | 是 |
loc | string | 是 |
org | string | 是 |
postal | string | 是 |
asn | string | 是 |
timezone | string | 是 |