1. CLI
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. CLI

Usage Examples

Real workflows and recipes for the Dataify MCP CLI: from listing tools and inspecting parameters to searching, unlocking web pages, checking scrape task status, and piping results into CI automation.

How to List Available Tools#

First confirm which tools the current token can use:
If the list is empty, the CLI reports No tools returned. Check token/tools permissions. — check that the token is correct and that it has permission for those tools.

How to Inspect Tool Parameters#

Before calling a tool, use schema to confirm parameter names, which are required, and their types, so you never have to guess:

How to Run a Web Search#

Here is Google Search as an example (use whichever tool name dataify tools lists for you):
The concrete call names for the other search engines are yandex_search, duckduckgo_search, and bing_search; their tools category names are yandex_serp, duckduckgo_serp, and bing_serp respectively. Inspect their parameters with dataify schema <tool>.

How to Use Web Unlocker#

request_web_unlocker unlocks and scrapes a web page (--type sets the return type, for example html):
If you see Tool "request_web_unlocker" was not returned by the server, run dataify tools first. The built-in tools list contains web_unlocker, and the tool name actually exposed is whatever the server returns.

How to Use the Web API#

The Web API provides three kinds of tools: search, content extraction, and site discovery. Inspect the parameters with schema first:

Web API Search#

Web API Content Extraction#

Web API Site Discovery#

How to Check Scrape Task Status#

query_common_collection_api_task_status takes integer parameters, so --arg-json is the recommended way to keep the types correct:

How to Pass Number / Boolean / Object Parameters#

A plain --name value is always sent as a string. When a tool requires a number, boolean, object, or array, use --arg-json:
FormResulting type
--q pizzaString "pizza"
--arg-json json=1Number 1
--arg-json enabled=trueBoolean true
--args-json '{"a":1}'Object {a:1}

How to Read Parameters from a File or a Pipe#

When there are many parameters, or when you want to reuse them in a script, put them in a JSON file or feed them through a pipe.
First prepare params.json:
{
  "q": "pizza",
  "json": 1
}
Then run:

How to Output the Raw Result or Write to a File#

By default the CLI prints the main content the tool returns (text or structuredContent). Use --raw when you need the complete MCP result, and --output when you want it on disk:

How to Set a Timeout for Slow Tools#

Live scraping tools can take a while; adjust with --timeout (milliseconds, s, or m):
Timeout formats:
FormMeaning
120000120000 milliseconds (120 seconds, the default)
30s30 seconds
2m2 minutes (120 seconds)
You can also set it globally with the DATAIFY_MCP_TIMEOUT environment variable (see below), which has lower priority than the command-line --timeout.

How to Debug a Failed Call#

Add --debug to print the request URL and the JSON-RPC request body to stderr. This does not change the actual request parameters or results:
If a tool returns an error (isError), the CLI exits with code 2 and prints the error message to stderr.

Piping and Automation#

The CLI is designed for chaining. When standard output is not a TTY, results are written as plain text or JSON, which downstream tools can consume.

Extracting Fields with jq#

Using It in Scripts / CI#

Batch Debugging in Interactive Mode#

Supported Environment Variables#

Environment variables override the local configuration:
VariablePurpose
DATAIFY_API_TOKENAPI token.
DATAIFY_MCP_TIMEOUTRequest timeout (a number of milliseconds, or with an s / m suffix, such as 180000, 30s, 2m).

Resources#

ResourceDescriptionLink
📘 GitHub repositoryBrowse the source, try the examples, and contributeGitHub
📦 CLI packagePackage description, versions, and release notesdataify-mcp-cli
修改于 2026-11-19 03:47:26
上一页
Commands
下一页
FAQ
Built with