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

# AI Search API Documentation - Web + Proprietary Data Sources

> Build AI agents with access to web search and 36+ proprietary data sources. Search PubMed, SEC filings, clinical trials, arXiv, patents, and real-time financial data through one unified API.

Valyu's Search API lets your AI search for the information it needs. Access high-quality content from the web and proprietary sources, with full-text multimodal retrieval.

<Note>
  Get **\$10 free credits** when you sign up at
  [Valyu](https://platform.valyu.ai). No credit card required.
</Note>

## What You Get

One API that gives you:

* **Real-time web search** - Latest information from across the internet
* **Proprietary content** - Papers and books from licensed data sources
* **Financial data** - Stock prices, market data, and financial metrics
* **Academic content** - Millions of scholarly papers, textbooks, and journals
* **Medical research** - Peer-reviewed literature, clinical trials, and FDA drug labels
* **Intelligent ranking** - Only the most relevant results returned
* **Transparent pricing** - Pay per retrieval with clear CPM pricing

## Quick Example

Make your first query in a few lines of code:

<CodeGroup>
  ```python Python theme={null}
  from valyu import Valyu

  valyu = Valyu(api_key="your-api-key-here")

  response = valyu.search(
      "What is quantum computing?"
  )

  print(response)

  # Feed the results to your AI agent
  ```

  ```javascript JavaScript theme={null}
  import { Valyu } from "valyu-js";

  const valyu = new Valyu("your-api-key-here");

  const response = await valyu.search("What is quantum computing?");

  console.log(response);
  ```

  ```bash cURL theme={null}
  curl --request POST \
      --url https://api.valyu.ai/v1/search \
      --header 'accept: application/json' \
      --header 'content-type: application/json' \
      --header "x-api-key: ${VALYU_API_KEY}" \
      --data '
  {
      "query": "What is quantum computing?"
  }'
  ```
</CodeGroup>

## Get Started

<CardGroup cols={2}>
  <Card title="Quickstart" icon="bolt" href="/quickstart">
    Get searching in minutes
  </Card>

  <Card title="API Reference" icon="code" href="/api-reference/endpoint/deepsearch">
    Explore endpoints and parameters
  </Card>
</CardGroup>

## Integrations

<CardGroup cols={3}>
  <Card title="MCP Server" icon="robot" href="/integrations/mcp-server">
    Model Context Protocol
  </Card>

  <Card title="Vercel AI SDK" icon="bolt" href="/integrations/vercel-ai-sdk">
    Vercel AI SDK
  </Card>

  <Card title="LangChain" icon="link" href="/integrations/langchain">
    LangChain
  </Card>

  <Card title="LlamaIndex" icon="database" href="/integrations/llamaindex">
    LlamaIndex
  </Card>

  <Card title="OpenAI" icon="brain" href="/integrations/openai">
    OpenAI
  </Card>

  <Card title="Anthropic" icon="sparkles" href="/integrations/anthropic">
    Anthropic Claude
  </Card>
</CardGroup>

## Benchmarks

We outperform Google, Parallel, and Exa on SimpleQA and FreshQA, and across domain-specific benchmarks in finance, healthcare, and economics.

![FreshQA Benchmarks](https://4ealzrotsszllxtz.public.blob.vercel-storage.com/freshqa_valyu-1400x871.png)

| **Benchmark**                              | **Valyu** | **Parallel** | **Exa** | **Google** |                 |
| ------------------------------------------ | --------- | ------------ | ------- | ---------- | --------------- |
| **FreshQA** (600 time-sensitive queries)   | 79 %      | 52 %         | 24 %    | 39 %       | ([valyu.ai][1]) |
| **SimpleQA** (4,326 factual questions)     | 94 %      | 93 %         | 91 %    | 38 %       | ([valyu.ai][1]) |
| **Finance** (120 finance questions)        | 73 %      | 67 %         | 63 %    | 55 %       | ([valyu.ai][1]) |
| **Economics** (100 economics questions)    | 73 %      | 52 %         | 45 %    | 43 %       | ([valyu.ai][1]) |
| **MedAgent** (562 complex medical queries) | 48 %      | 42 %         | 44 %    | 45 %       | ([valyu.ai][1]) |

[1]: https://www.valyu.ai/blogs/benchmarking-search-apis-for-ai-agents?utm_source=chatgpt.com "Benchmarking Search APIs for AI Agents | Valyu | Valyu"

Read the full breakdown in our  [benchmarking blog post](https://www.valyu.ai/blogs/benchmarking-search-apis-for-ai-agents).
