1. Web Unlocker API
Dataify
English
  • 中文
  • English
  • Introduction
    • Overview
    • Support
  • Data Services
    • Getting Started Guide
    • MCP Setup Guide
    • Dataify cloud delivery tutorial
    • Web Scraper API
      • Introduction
      • Quick Start Guide
      • Send Your First Request
      • API Request Builder
      • Request Parameter Reference
        • Amazon Parameters
        • EBay Parameters
        • Walmart Parameters
    • Video Scraper API
      • Introduction
      • Quick Start Guide
      • Send Your First Request
      • API Request Builder
      • Request Parameter
    • SERP API
      • Overview
      • Quick Start Guide
      • Send your first request
      • Billing Information
      • FAQ
      • Status Code
      • Request Parameter Reference
        • Google
          • Google Search
          • Google Light
          • Google AI Mode
          • Google Map
          • Google Scholar
          • Google News
          • Google Lens
          • Google Jobs
          • Google Videos
          • Google Local
          • Google Trends
          • Google finance
          • Google Flight
          • Google Hotel
          • Google Images
          • Google Patent
          • Google Shopping
          • Google Play
        • Bing
          • Bing Search
          • Bing Map
          • Bing News
          • Bing Videos
          • Bing Images
          • Bing Shopping
        • DuckDuckGo
          • DuckDuckGo
        • Yandex
          • Yandex
      • Response Field Reference
        • Google
          • Google Search
          • Google AI Mode
          • Google Images
          • Google Shopping
          • Google videos
          • Google news
          • Google Map
          • Google Lens
          • Google Flight
          • Google Scholar
          • Google Hotel
          • Google Jobs
          • Google Trends
          • Google Local
          • Google Play
          • Google Finance
        • Bing
          • Bing search
          • Bing Map
          • Bing Shopping
          • Bing Video
          • Bing Images
          • Bing News
        • Yandex
          • Yandex
    • Web API
      • Overview
      • Quick Start
      • Billing Information
      • Send Your First Request
        • Search API
        • Extract API
        • Map API
      • Parameter Reference
        • Search API
        • Export API
        • Map API
        • Response code
    • Web Unlocker API
      • Overview
      • Quick Start
      • Send Your First Request
      • Parameter Reference
      • Billing Information
      • Response code
    • FAQ
      • Frequently Asked Questions
  • Network Infrastructure
    • Dynamic Network Services
      • Dynamic Residential Network
        • Introduction
        • Quick Start
          • Account and Password Authentication
          • Whitelist
          • List of countries/regions
      • High bandwidth network
        • Introduction
        • Quick Start
          • Account Verification
          • Whitelist
    • Static Network Services
      • Static ISP Network
        • Introduction
        • Quick Start
      • Static Data Center
        • Introduction
        • Quick Start
  • Public API
    • Overview
    • Get Token
    • Account
      • Query Credit Balance
      • Query Traffic Balance
      • Query Traffic Usage Records
    • Geolocation
      • Get Country Lists
      • Get State Lists
      • Get City Lists
      • Get ASN Lists
    • Network Service Users
      • Update user information
      • Delete user
      • Daily Traffic Usage Records
      • Hourly Traffic Usage Records
    • Whitelist
      • Query whitelist list
      • Add to Whitelist
      • Remove from Whitelist
    • ISP / Datacenter Proxies
      • Get a list of network nodes
      • Query network nodes expired
    • Dynamic High Bandwidth
      • Get a list of dynamic high-bandwidth servers
      • Restart dynamic high-bandwidth server
      • Renewal for Dynamic High-Bandwidth Servers
      • Dynamic High-Bandwidth Upgrade
      • Whitelist for High-Bandwidth Server Sub-accounts
      • Add sub-accounts to the high-bandwidth server whitelist
      • Remove the sub-account from the high-bandwidth server whitelist.
    • Web Scraper API
      • Usage Statistics
      • Task API
        • Create Task Instructions
        • Task Execution Status Description
        • Task List Retrieval Instructions
        • Task Download Instructions
        • Get Latest Task Instructions
    • SERP API
      • Interface Information
      • Task API
        • Google search API
        • Bing Search API
        • Duckduckgo search API
        • Yandex search API
    • Web API
      • Search API
      • Extract API
      • Map API
    • Web Unlocker API
      • Get Task Interface API
      • Using the statistics API
  • Integrations
    • AdsPower
    • BitBrowser
    • ClonBrowser
    • Hubstudio
    • Puppeteer
    • Playwright
    • Selenium
    • Chrome
  • FAQ
    • Payment Issues
    • Data Services
    • Network Infrastructure
  • SDK
    • Go SDK Guide
    • JavaScript SDK Guide
    • Python SDK Guide
    • TypeScript SDK Guide
  • CLI
    • Overview
    • Installation
    • Commands
    • Usage Examples
    • FAQ
  • MCP Server
    • Overview
    • Tools
    • Usage Examples
    • Output Format
    • FAQ
    • Agent Setup
      • Codex
      • Claude Code
      • Claude Desktop
      • Cursor
      • VS Code / GitHub Copilot
      • Windsurf / Devin Local
      • Cline
      • Google Antigravity
      • Gemini CLI
      • OpenClaw
      • CodeBuddy
      • WorkBuddy
      • Alibaba Qoder / Qoder CN
      • Alibaba Qwen Code
      • Moonshot AI Kimi Code
      • ByteDance Trae
      • ByteDance Coze
    • Remote Mode
      • Quick Start
      • Advanced
  • SKILLS
    • Guide
    • Agent Setup
      • WorkBuddy
  1. Web Unlocker API

Using the statistics API

Interface Information#

Interface Path: /api/open/unlocker_use_stat
Request method: POST
Method of authentication: API Key Authentication (transmitting via Header))
Interface Description: Retrieves usage statistics for the general data collection (Unlocker) service, supporting hourly or daily grouping statistics.

Method of authentication#

Add API Key (i.e. TOKEN) to the request Header):
ApiKey:{your_api_key}

Request parameters#

Body Parameter (JSON format))#

Parameter NameTypeRequiredAnnotationsExample:
start_timeint64NoStart Timetamp (sec))1712563200
end_timeint64NoEnd time stamp (sec))1712649599
group_bystringYesGrouping method, optional values: hour(or day(by day)"day"

Example request#

{
  "start_time": 1712563200,
  "end_time": 1712649599,
  "group_by": "day"
}

Response data#

Response Format#

{
  "code": 200,
  "data": [
    {
      "time_key": "2024-04-08",
      "success_count": 1250,
      "fail_count": 50,
      "total_count": 1300,
      "success_rate": 96.15,
      "avg_response_time": 1250.5,
      "total_amount": 650.25
    },
    {
      "time_key": "2024-04-09",
      "success_count": 1180,
      "fail_count": 20,
      "total_count": 1200,
      "success_rate": 98.33,
      "avg_response_time": 1180.3,
      "total_amount": 600.0
    }
  ],
  "message": "Query successful",
  "timestamp": 1712649600
}

Response field description#

Field NameTypeAnnotations
codeintResponse status code, 200 for success
dataarrayStatistical arrays
messagestringReply Message
timestampint64Response Timetamp

data array elements field description#

Field NameTypeAnnotations
time_keystringThe time key format is determined by the group_by parameter
- hour: "2024-04-08 14:00:00"
- day: "2024-04-08"
success_countint64Number of successful requests
fail_countint64Number of failed requests
total_countint64Total number of requests
success_ratefloat64Success rate (percentage, 2 decimal places))
avg_response_timefloat64Average response time (ms, 2 decimal places))
total_amountfloat64Consumption of total points (retain 4 decimal places))

Error Response#

401 Unauthorized#

{
  "code": 401,
  "data": null,
  "message": "api_keyNot provided",
  "timestamp": 1712649600
}

500 argument error (parameter verification failed))#

{
  "code": 400,
  "data": {},
  "message": "Key: 'UnlockerUseStatParam.GroupBy' Error:Field validation for 'GroupBy' failed on the 'oneof' tag",
  "timestamp": 1712649600
}

500 Server Error#

{
  "code": 500,
  "data": null,
  "message": "Data query failed",
  "timestamp": 1712649600
}

Use Example#

cURL Example#

Python Example#

JavaScript Example#

Notes#

1.
Time Range: If start_time and end_time are not provided, all historical data will be returned.
2.
Grouping:
hour: Groups data by hour, suitable for viewing short-term trends in detail.
day: Groups data by day, suitable for viewing long-term trends.
3.
Data Source: Statistics are retrieved from the ClickHouse database and include task execution results and response times.
4.
Success Rate Calculation: Success Rate = (Successful Requests / Total Requests) × 100
5.
Response Time: The average response time is calculated based only on successful requests.

Use Cases#

Usage Monitoring: Track Web Unlocker API usage on an hourly or daily basis.
Cost Analysis: Monitor credit consumption to manage costs.
Performance Monitoring: Track average response times and identify potential performance issues.
Quality Analysis: Evaluate service quality based on the success rate.
修改于 2026-11-20 09:01:05
上一页
Get Task Interface API
下一页
AdsPower
Built with