Unlocker API
一次调用即可突破任何防护,返回任意页面,格式为 Markdown 或结构化 JSON。反爬虫处理、代理轮换、CAPTCHA 破解和 JavaScript 渲染全部在请求内部完成。
- Cloudflare、Akamai、DataDome、PerimeterX 及所有主流 CAPTCHA,均在调用内部处理
- 受保护目标上 99.6% 成功率
- 代理为你托管:轮换和封禁重试;档位由你选择
- 支持等待和页面操作的 JavaScript 渲染
- HTML、Markdown、截图或 JSON 输出,字段自动解析
- 使用你自己的模型密钥进行 AI 解析
npx -y @datafuel/mcp initOne request starts the example.
一个请求搞定一切
一览式概要,详细介绍见下文。使用你自己的 API 密钥进行 AI 解析
随请求发送一条提示词和一个 JSON schema。页面通过我们的网络获取后,交给使用你密钥的你的模型:OpenAI、Anthropic 或 Google。你得到的是字段而不是 HTML,模型 token 由你的服务商计费,而不是我们。
curl https://scraping-api.datafuel.ai/api/v1/task \-H "X-API-Key: $DATAFUEL_API_KEY" \-H "Content-Type: application/json" \-d @- <<EOF{"type": "unlocker","proxy_type": "Basic","proxy_country": "US","attributes": {"url": "https://example.com/product/123","method": "GET","result_format": "json","result_use_ai": true,"result_ai_prompt": "Extract product name, price and stock status","result_ai_format": {"title": "string","price": "number","in_stock": "boolean"},"ai_provider": "openai","ai_model": "gpt-4o-mini","ai_api_key": "$OPENAI_API_KEY"}}EOF
反爬虫与代理管理
Cloudflare、Akamai、DataDome、PerimeterX 以及所有主流 CAPTCHA 都在请求内部处理:每次调用使用全新的 TLS 指纹,被封即轮换;对最难的目标设置 proxy_type: Premium 即可使用 Premium 出口。当登录或购物车需要时,proxy_session_id 可在多次调用中固定同一 IP。
curl https://scraping-api.datafuel.ai/api/v1/task \-H "X-API-Key: $DATAFUEL_API_KEY" \-H "Content-Type: application/json" \-d '{"type": "unlocker","proxy_type": "Premium","proxy_country": "GB","attributes": {"url": "https://example.com/account/orders","method": "GET","proxy_session_id": "checkout-8f3a","result_format": "json"}}'
批量任务,异步执行
在一个 POST /job 中提交跨多个网站的数百个 URL。ID 立即返回,任务按套餐并发上限并行运行,GET /job/{id}/results 为每个 URL 返回一条结果。Idempotency-Key 让重试安全无忧;失败的任务不计费。
API=https://scraping-api.datafuel.ai/api/v1# 1. queue the batch → {"id": "9f2c7a1e-…"}curl "$API/job" \-H "X-API-Key: $DATAFUEL_API_KEY" \-H "Idempotency-Key: batch-2026-09-13-a" \-H "Content-Type: application/json" \-d '{"type": "unlocker","multithreaded": true,"proxy_type": "Basic","attributes": {"urls": ["https://amazon.com/dp/B0DEMO123","https://walmart.com/ip/demo-456","https://tripadvisor.com/Hotel_Review-demo"],"result_format": "markdown"}}'# 2. poll progress → {"status": "processing",# "tasks_count": 3, "tasks_done": 1, ...}curl "$API/job/$JOB_ID" \-H "X-API-Key: $DATAFUEL_API_KEY"# 3. fetch every result once status is "completed"curl "$API/job/$JOB_ID/results" \-H "X-API-Key: $DATAFUEL_API_KEY"
JavaScript 渲染
js_rendering: true 会在真实浏览器中加载页面,等待你指定的选择器,执行你的页面操作(点击、填写、等待),然后再提取内容。用 block_resource 屏蔽图片、字体和媒体以保持快速;渲染页面费用为 5 个积分而非 1 个。
curl https://scraping-api.datafuel.ai/api/v1/task \-H "X-API-Key: $DATAFUEL_API_KEY" \-H "Content-Type: application/json" \-d '{"type": "unlocker","proxy_type": "Basic","proxy_country": "US","attributes": {"url": "https://app.example.com/product","method": "GET","js_rendering": true,"wait_for_selector": "#price","result_format": "json"}}'
只为成功请求付费
选择月度套餐、一次性购买积分,或使用不限线程套餐。失败的请求永不计费。
每个套餐都包含所有端点和所有接口(API、MCP)。共用一个积分余额:你只为用量付费,而且只为成功的请求付费。
适合需要充裕容量的生产级爬虫和智能体。
- 包含 Starter 的全部功能
- 自动充值
- 优先聊天支持
适合按计划交付数据产品的团队。
- 包含 Growth 的全部功能
- 按 API 密钥设置用量提醒
- 客户经理
大用量,最低单页价格。即时开通。
- 包含 Business 的全部功能
- 专属 IP 池
- 99.9% SLA
| Free | Starter | Growth | Business | Scale | Enterprise | |
|---|---|---|---|---|---|---|
| 每月积分 | 1K 一次性 | 300K | 1M | 3.5M | 12M | 定制 |
| 并发线程 | 2 | 10 | 25 | 50 | 150 | 250+ |
| API 密钥 | 1 | 3 | 10 | 25 | 无限制 | 无限制 |
| JS 渲染 | ||||||
| 住宅代理 | ||||||
| AI 实时提取(使用你的密钥) | ||||||
| 地理定位 · 195+ 个国家 | ||||||
| 批量多 URL | ||||||
| Unlocker · Crawl · Map · LLM Scraper | ||||||
| 自动充值 | — | — | ||||
| 支持 | 社区 | 邮件 | 优先聊天 | 客户经理 | Slack + 电话 | 专属支持 + SLA |
常见问题
真正的疑虑,直截了当地回答。