# Web Search API to Markdown for RAG

**Use case:** 

Use a web search API and return clean Markdown pages with sources for RAG, AI agents, research, and knowledge-base ingestion.

## Input

```json
{
  "query": "best vector databases for RAG",
  "maxResults": 3,
  "outputFormat": "markdown",
  "scrapingTool": "auto",
  "googleCountry": "us",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "GOOGLE_SERP"
    ]
  }
}
```

## Output

```json
{
  "title": {
    "label": "Title"
  },
  "url": {
    "label": "Url"
  },
  "markdown": {
    "label": "Markdown"
  },
  "httpStatusCode": {
    "label": "Http status code"
  }
}
```

## About this Actor

This example demonstrates how to use [Web Search API for RAG — Search & Extract](https://apify.com/tugelbay/rag-web-browser) with a specific input configuration. Visit the [Actor detail page](https://apify.com/tugelbay/rag-web-browser) to learn more, explore other use cases, and run it yourself.