> ## Documentation Index
> Fetch the complete documentation index at: https://vetta.sh/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Data

> Read data across 20 domains — social media, people, companies, funding, markets, SEO, news, law, weather, jobs, property, reviews, trade, shopping, travel, cars and research — from an agent, the dashboard, the API, the SDK or the CLI. Priced per run.

Data is one catalogue of **read-only** data tools: about 2,400 endpoints from 80 sources, grouped into 20 domains, and growing on its own. An agent asks a question in plain words and gets JSON back; a developer calls the same catalogue without an agent.

Every surface does the same three things:

1. **Search** the catalogue with a short phrase — `"company funding rounds"`, `"homes for sale"` — optionally in one domain. Free.
2. **Describe** a tool to read its input schema (`path`, `query` and `body` parameters), its price and its notes. Free.
3. **Run** it with those parameters and get the data back as JSON. Priced per run.

[Social data](https://vetta.sh/docs/capabilities/social-data.md) is this catalogue's `social` domain, under its own names.

## Domains

| Domain | What it covers | An example question |
| - | - | - |
| `social` | Public posts, profiles, comments, followers, hashtags and trends on about 28 networks | *What are the top comments on @nasa's latest Instagram post?* |
| `search` | Web, maps, shopping, image, video and app-store results | *Which coffee shops near Union Square have the best ratings?* |
| `people` | Person and company enrichment | *Who is the head of sales at Acme, and since when?* |
| `companies` | Company profiles, enrichment and company news | *How many employees does Acme have, and what did it announce this month?* |
| `compliance` | KYB, sanctions, company registries and address checks | *Is this supplier on a sanctions list?* |
| `funding` | Funding rounds and investors | *Who led Acme's last round, and how much was it?* |
| `seo` | Backlinks, keywords and AI-answer visibility | *Which sites link to our pricing page?* |
| `finance` | Quotes, earnings, analyst ratings and insider trades | *What did insiders buy or sell at Acme this quarter?* |
| `crypto` | TVL, token prices, yields and prediction markets | *What is the TVL of the largest lending protocols?* |
| `news` | News articles | *What was written about Acme this week?* |
| `legal` | The US Code and the Code of Federal Regulations | *What does 15 U.S.C. § 45 say?* |
| `weather` | Current conditions and forecasts | *Will it rain in Lisbon on Saturday?* |
| `jobs` | Job postings and pay | *Which companies are hiring Rust engineers in Berlin, and at what pay?* |
| `real_estate` | Property listings and values | *Which real-estate listings in Austin are under \$500k?* |
| `reviews` | Software and company reviews | *What do software reviews say users complain about in Acme's product?* |
| `trade` | Customs shipment records | *Who imports Acme's products into the US?* |
| `shopping` | Retail product listings | *What does this blender sell for across retailers?* |
| `travel` | Hotels, flights and rental cars | *What are the cheapest flights from SFO to JFK next Friday?* |
| `automotive` | Car listings, values, vehicle history, auctions and gas prices | *What is a 2021 Toyota RAV4 worth, and what's its history?* |
| `research` | Papers, patents, census statistics, AI model benchmarks and trend data | *Which AI models lead the coding leaderboard right now?* |

Every tool only reads. Nothing in the catalogue posts, sends, buys or changes anything. Use Data for lawful purposes only, and respect privacy laws and each source's terms — especially for data about people.

## Track your brand in AI answers

The `seo` domain includes tools that put a question to an AI answer engine and return its answer: ChatGPT, Perplexity, Claude, Gemini, Copilot and Google's AI Mode. Ask the questions your customers ask (*"best agent SDK"*), then read whether your brand is named, where, and which pages are cited.

```bash theme={"system"}
naive data search "chatgpt answer" --domain seo     # one tool per engine, with its price
naive data describe <tool_id>                        # the prompt field it takes
naive data run <tool_id> --body '{"prompt": "best agent SDK"}'
```

Field names differ per tool; `describe` says which. Each run is one answer at that moment. To track it over time, give an agent the questions and engines, run it on a schedule with a [deployment](https://vetta.sh/docs/capabilities/deployments.md), and have it compare each answer with the last one it kept in [files](https://vetta.sh/docs/capabilities/files.md).

## From an agent

Every agent has three built-in [tools](https://vetta.sh/docs/capabilities/tools.md): `data_search`, `data_describe` and `data_run`. `data_search` takes a `query`, and optionally a `domain`, a social `platform` and a `limit`; `data_describe` returns a tool's input schema; `data_run` runs it with `path`, `query` and `body` parameters. Search and describe are free and read-only, so they stay available in [plan mode](https://vetta.sh/docs/concepts/policies.md). A run is a priced call and asks first by default: you approve each one, or grant the rest of the chat at once. Set `data_run` to `allow` in the agent's [tool policy](https://vetta.sh/docs/capabilities/tools.md#permission-policies) to let it run unattended. The [social data](https://vetta.sh/docs/capabilities/social-data.md) names are on the API, SDK and CLI only; an agent reaches social tools with `data_search` and `domain: "social"`.

## From the dashboard

Ask the CEO in chat. It finds the tool, says what a run costs, runs it and answers with the data.

## From code

```bash CLI theme={"system"}
naive data search "company funding rounds" --domain funding
naive data describe <tool_id>
naive data run <tool_id> --query org_uuid=<org_uuid>   # the field the tool's input names
```

```ts SDK theme={"system"}
const { data: tools } = await client.data.searchTools({ query: "company funding rounds", domain: "funding" });
const tool = await client.data.getTool(tools[0].id);   // tool.input says what to send
const run = await client.data.run({ tool_id: tool.id, query: { org_uuid: "<org_uuid>" } });   // send the fields tool.input names
console.log(run.status, run.data, run.cost_micro_usd);
```

```bash cURL theme={"system"}
curl -fsSL "https://api.vetta.sh/v1/data/tools?query=company%20funding%20rounds&domain=funding" \
  -H "authorization: Bearer sk_live_..."
curl -fsSL https://api.vetta.sh/v1/data/runs \
  -H "authorization: Bearer sk_live_..." -H "content-type: application/json" \
  -d '{ "tool_id": "<tool_id>", "query": { "org_uuid": "<org_uuid>" } }'
```

Parameter names differ by tool; `describe` says which ones a tool takes. The full contract is in the [API reference](https://vetta.sh/docs/api/data.md), the [SDK](https://vetta.sh/docs/sdk/data.md) and the [CLI](https://vetta.sh/docs/cli/data.md) pages.

## What it costs

Searching and describing are free. A run costs the price the tool lists — `price.text` on every tool, already the price you pay. Most tools are priced per call: the median is about 8 credits, seven in ten cost 50 credits or less, and the most expensive is about 4,750 credits. Some are priced per result (a search that returns 20 records costs 20 results), and a few vary with the input (they say `up to …`). A run priced per result returns **at most 25 results**: any result-count field you send above 25 (`limit`, `maxResults`, `resultsPerPage`, `pageSize` and the like, at any depth) is lowered to 25, and a list input with more than 25 items (for example 30 usernames, where each one is a result) is refused with `validation_failed`. Runs are booked from prepaid credits on the `search` component of your [spend](https://vetta.sh/docs/platform/pricing.md#priced-tools), once per run.

A run is **admitted before anything is bought**:

Each run is capped at 25 results. Some sources bill per-result tools in blocks of 10, so a 25-result run can cost 30 results' worth; admission covers that.

* **API, SDK, CLI and dashboard**: the prepaid balance must cover the run's most it can cost — the listed price of one call, or of 30 results (plus any per-call fee) for a per-result tool; otherwise the run is refused with `402 insufficient_credits` and nothing runs.
* **Agents**: a run takes a hold against the session's budget first — the listed price for a per-call tool, up to 30 results' worth for a per-result one. The hold is settled at the real cost when the run ends.

A run that fails — the source refused the input, the record does not exist, the source was down — is normally **not charged** and writes no ledger entry; when the source still billed the attempt, the run costs what the source charged. A run that takes longer than two minutes is stopped; it is normally not charged either, except that a tool priced per result costs what it gathered before the stop.

## Limits

* **On demand, not a stream.** Each run reads once; to watch a price, a listing or a company over time, run it on a schedule with a [deployment](https://vetta.sh/docs/capabilities/deployments.md).
* **No logins, read-only.** Nothing behind a login, and nothing written anywhere.
* **Up to two minutes and 25 results per run.** Ask for fewer results (most tools take a limit or count parameter; start with 5–10).
* **Results are the source's own data**, passed through unchanged, so field names differ between tools.

## Check that it works

From the CLI, in this order. The first three cost nothing.

1. **The catalogue is reachable.** `naive data search "funding rounds" --domain funding` lists tools with prices, each with `funding` in `domains`. A `501 feature_not_configured` means data is not enabled on the deployment you are calling.
2. **A tool describes itself.** `naive data describe <tool_id>` prints its `input` schema — the parameters under `path`, `query` and `body`.
3. **A refused run is free.** `naive data run <tool_id>` with no parameters is refused `400 validation_failed` naming the first required parameter (or, for a tool that requires none, answers `status: "failed"` with `cost_micro_usd: 0`).
4. **A real run returns data and its cost.** `naive data run <tool_id> --query <name>=<value>`, with the parameters `describe` named, answers `status: "succeeded"`, the data in `data`, and `cost_micro_usd` equal to the tool's `price.micro_usd` for a per-call tool.
5. **It was billed once.** `naive credits ledger --limit 5` shows one `search` debit for step 4 and no entry at all for steps 1–3.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.