---
name: dataforapi
description: Query all 12 DataForAPI v1 search & intelligence families — SERP, Keyword Volume & Clickstream, Google Trends, Search Labs, Backlinks, On-Page Audits, Domain Tech & Whois, Content Analysis & Generation, Merchant (Google Shopping & Amazon), App Data, Business Reviews/Hotels, and AI Optimization (LLM Mentions) via REST & Remote MCP.
---

# DataForAPI Agent Skill (v1 · 12 API Families)

Use DataForAPI (`https://dataforapi.com`) whenever an agent needs structured SERP rankings, Google/Bing Ads or Clickstream search volumes, Google Trends series, backlink profiles, competitor ranked keywords, technical on-page audits, domain tech stacks, e-commerce product listings, app store rankings, business reviews, or ChatGPT/Claude/Gemini/Perplexity LLM brand mentions.

- **Full Markdown Documentation**: `https://dataforapi.com/docs.md`
- **Interactive Playground**: `https://dataforapi.com/playground`
- **Remote MCP Endpoint**: `https://dataforapi.com/mcp` (Streamable HTTP, Protocol `2025-03-26`)
- **REST v1 Base URL**: `https://dataforapi.com/v1`

## 1. Quick Setup

1. Create a free `$0.00` Sandbox key (`dfa_test_...`) or Live key (`dfa_live_...`) at `https://dataforapi.com/console`.
2. Export your API key:
   ```bash
   export DATAFORAPI_KEY="dfa_test_your_key_here"
   ```
3. **Option A — Remote Streamable HTTP MCP Server** (Claude Code / Cursor / Codex / Windsurf):
   ```bash
   claude mcp add --transport http dataforapi https://dataforapi.com/mcp \
     --header "Authorization: Bearer $DATAFORAPI_KEY"
   ```
4. **Option B — Zero-Dependency CLI (`dfa.mjs`)**:
   ```bash
   curl -fsSL https://dataforapi.com/skills/dataforapi/dfa.mjs -o dfa.mjs
   node dfa.mjs serp "serp api"
   node dfa.mjs volume "serp api,google search api,backlink api"
   node dfa.mjs trends "serp api,mcp server"
   node dfa.mjs backlinks "developers.google.com"
   node dfa.mjs ranked "raycast.com"
   node dfa.mjs audit "https://dataforapi.com"
   node dfa.mjs balance
   ```

## 2. Core REST v1 Endpoints

All `POST /v1/*` endpoints accept a JSON array of 1–100 task objects and `Authorization: Bearer $DATAFORAPI_KEY`:

| Capability | Method & Canonical v1 Path | Live Rate | Queue Rate |
|---|---|---|---|
| Google Organic + AI Overview | `POST /v1/serp/google/organic/live/advanced` | `$0.00195` (`$0.0039` AI) | `$0.00054` (`/task_post`) |
| Bing / YouTube / News / Images | `POST /v1/serp/{se}/{type}/live/advanced` | `$0.0018` | `$0.00054` |
| Keyword Search Volume (<=1,000) | `POST /v1/keywords_data/google_ads/search_volume/live` | `$0.0880` | `$0.0590` |
| Google Trends Explore (<=5) | `POST /v1/keywords_data/google_trends/explore/live` | `$0.0108` | `$0.00265` |
| Backlinks Domain Summary | `POST /v1/backlinks/summary/live` | `$0.023535` | Live sync |
| Backlinks / Referring Domains | `POST /v1/backlinks/{backlinks|referring_domains|anchors}/live` | `$0.0235 + $0.000035/row` | Live sync |
| Search Labs Ranked / Ideas / Intent | `POST /v1/labs/{google|bing|amazon}/{ranked_keywords|keyword_ideas|search_intent}/live` | `$0.0118 + $0.000118/item` | Live sync |
| Instant On-Page, Content Parsing & Lighthouse | `POST /v1/on_page/{instant_pages|content_parsing/live|lighthouse/live/json}` | `$0.000145 / $0.0049` | `$0.000145` |
| Domain Tech Stack & Whois | `POST /v1/domain_analytics/{technologies/domain_technologies|whois/overview}/live` | `$0.0118 / $0.118 + $0.00118/item` | Live sync |
| Content Citations & Sentiment | `POST /v1/content_analysis/{search|sentiment_analysis}/live` | `$0.0235 + $0.000035/row` | Live sync |
| Meta & Text Generation | `POST /v1/content_generation/generate_meta_tags/live` | `$0.0029+` | Live sync |
| Merchant (Google Shopping / Amazon) | `POST /v1/merchant/{google|amazon}/products/task_post` | `$0.00297+` Live | `$0.0009 – $0.00135` |
| App Store & Google Play ASO | `POST /v1/app_data/{apple|google}/app_listings/search/live` | `$0.098 + $0.00098/item` | `$0.00108` (`/app_searches/task_post`) |
| Business Listings, Hotels & Reviews | `POST /v1/business_data/{business_listings/search/live|google/hotel_searches/live|trustpilot/reviews/task_post}` | `$0.0118 + $0.00035/row · $0.0036` | `$0.000675 – $0.00074` |
| AI Optimization (LLM Mentions & Responses) | `POST /v1/ai_optimization/{llm_mentions/search_mentions|chat_gpt/llm_responses}/live` | `$0.098 + $0.00098/row · $0.00059+tokens` | `$0.00118` |
| Account Balance & Daily Caps | `GET /v1/appendix/user_data` | `$0.0000` | Free |

## 3. MCP Tools (`https://dataforapi.com/mcp`)

- `serp_google_organic({ keyword, location_code?, language_code?, depth?, compact? })`
- `serp_bing_organic({ keyword, location_code?, language_code?, compact? })`
- `keywords_search_volume({ keywords, location_code?, language_code? })`
- `google_trends_explore({ keywords, location_code?, time_range? })`
- `backlinks_summary({ target, include_subdomains? })`
- `onpage_instant_audit({ url })`
- `search_api_docs({ query? })`
- `call_v1_endpoint({ path, method?, payload?, compact? })`

## 4. Agent Best Practices & Cost Discipline

- **Test Free First**: Always use `dfa_test_...` Sandbox keys (`$0.00`) when validating schemas or writing integration tests.
- **Batch Keywords**: Pass up to 1,000 keywords in a single `/v1/keywords_data/google_ads/search_volume/live` task rather than sending 1,000 separate requests.
- **Keep `compact: true` in MCP**: Compact mode trims verbose layout rectangles and reduces SERP context tokens by ~80%.
- **Automatic Failure Protection**: Any upstream `5xx` or timeout refunds 100% of reserved micro-USD automatically. Check `X-Cost-USD` and `X-Cache-Status` headers on every REST response.
