Status中文 

Connect AI

Give your AI one address and one key. With 5 tools it finds the endpoint, checks the price and makes the call by itself.

Three steps

Any AI that can read a page and change its own settings, such as Claude Code, Cursor or Codex. About a minute.
1

Copy the sentence with a key in it

This one sentence is all your AI needs; the key goes into it when you copy.

Read https://dataxapi.com/agents.md and set up DataXAPI in this agent. My API key is dx_…; use it for every DataXAPI call.

Copying makes a dedicated key for this agent and puts it in the prompt. That is the one time the full key leaves our system; afterwards it shows in API keys by its first characters. Copy again on this page and the same key goes in.Manage your API keys
2

Paste it into your AI

The agent reads the page and does what fits where it runs: adds the MCP server, runs the CLI, or calls the API directly.

Claude Code, Cursor, Codex, n8n, Cherry Studio, and any agent that can read a page
3

Ask it something

Ask in your own words. Copy one of these if you like. Each answer ends with what the calls cost; a failed call is free.

Use DataXAPI to find this week’s most-liked TikTok videos about camping coffee.
Use DataXAPI to get the Douyin trend-index search index for “camping” over the last 30 days.
Use DataXAPI to list what our three competitors posted this week.
Use DataXAPI to see what people on Xiaohongshu say about this coffee maker.
Use DataXAPI to get X trending topics in Japan.
Not connected yetOnce an agent uses its key, its last call shows up here.

Set up a client by hand

when you would rather not let the AI change its settings
Claude Code~/.claude.jsonConfig file
  1. Put your key in the environmentCreate a key on the API keys page and export it as DATAXAPI_API_KEY in your shell profile. The entry on the right reads it from there; no file holds your key.
  2. Add the entryAdd the entry on the right to the file named above it, and keep any servers you already have. Or let the command line write it for you.
  3. Start a new session and askThe agent now has five tools: find, describe, call, read_more, account. Only fetching data is charged.
~/.claude.json
{
  "mcpServers": {
    "dataxapi": {
      "type": "http",
      "url": "https://api.dataxapi.com/mcp",
      "headers": {
        "Authorization": "Bearer ${DATAXAPI_API_KEY}"
      }
    }
  }
}

Or let the command line set it up: npx dataxapi setup --client claude-code

Written from the client’s own documentation; tell us if a step is off.

Cursor~/.cursor/mcp.jsonConfig file
  1. Put your key in the environmentCreate a key on the API keys page and export it as DATAXAPI_API_KEY in your shell profile. The entry on the right reads it from there; no file holds your key.
  2. Add the entryAdd the entry on the right to the file named above it, and keep any servers you already have. Or let the command line write it for you.
  3. Start a new session and askThe agent now has five tools: find, describe, call, read_more, account. Only fetching data is charged.
~/.cursor/mcp.json
{
  "mcpServers": {
    "dataxapi": {
      "url": "https://api.dataxapi.com/mcp",
      "headers": {
        "Authorization": "Bearer ${env:DATAXAPI_API_KEY}"
      }
    }
  }
}

Or let the command line set it up: npx dataxapi setup --client cursor

Written from the client’s own documentation; tell us if a step is off.

Codex~/.codex/config.tomlConfig file
  1. Put your key in the environmentCreate a key on the API keys page and export it as DATAXAPI_API_KEY in your shell profile. The entry on the right reads it from there; no file holds your key.
  2. Add the entryAdd the entry on the right to the file named above it, and keep any servers you already have. Or let the command line write it for you.
  3. Start a new session and askThe agent now has five tools: find, describe, call, read_more, account. Only fetching data is charged.
~/.codex/config.toml
[mcp_servers.dataxapi]
url = "https://api.dataxapi.com/mcp"
bearer_token_env_var = "DATAXAPI_API_KEY"

Or let the command line set it up: npx dataxapi setup --client codex

Written from the client’s own documentation; tell us if a step is off.

n8nThe MCP Client Tool node, attached as a tool to an AI Agent node of a workflowSettings screen
  1. Create a keyCreate a key on the API keys page and copy it when it is shown.
  2. Fill in the fieldsOpen the place named above the table on the right and fill in each field. The key is typed into the client and kept by it.
  3. Save and askThe client now has five tools: find, describe, call, read_more, account. Only fetching data is charged.
Endpoint
https://api.dataxapi.com/mcp
Server Transport
HTTP Streamable
Authentication
Bearer Auth
Credential for Bearer Auth → Bearer Token
your API key

Written from the client’s own documentation; tell us if a step is off.

Cherry StudioSettings → MCP Servers → Add ServerSettings screen
  1. Create a keyCreate a key on the API keys page and copy it when it is shown.
  2. Fill in the fieldsOpen the place named above the table on the right and fill in each field. The key is typed into the client and kept by it.
  3. Save and askThe client now has five tools: find, describe, call, read_more, account. Only fetching data is charged.
Name
dataxapi
Type
Streamable HTTP
URL
https://api.dataxapi.com/mcp
Headers
One header: Authorization, with the value Bearer, a space, and your API key

Written from the client’s own documentation; tell us if a step is off.

MCP address

Streamable HTTP
https://api.dataxapi.com/mcp
Authentication
Authorization: Bearer dx_…
Without MCP, the same key on REST
https://api.dataxapi.com/v1/…
Five toolsonly fetching data costs money
findFinds the endpoint for what you want to know, with its price
free
describeAn endpoint's parameters, fields and how it is charged
free
callCalls the endpoint for its data; an empty result follows the endpoint's rule
endpoint price
read_moreReads the rest of a result, or reads it again, for 24 hours
free
accountYour balance, today's spend and this key's limits
free

Command line

Sign in from a terminal and the command line gets a key of its own. It prints a code; you approve it on the page below.

$ npx dataxapi login
The approval page →

Recent calls by your agents

All calls →
TimeEndpointStatusCost
Only fetching data is charged. Finding an endpoint and reading its price are free.