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

# Gainflow docs

> Hard-to-get web data for builders and AI agents, through a REST API and an MCP connector.

Gainflow fetches the web for you and hands back clean, current data your code or agent can use right away. Call it over REST from your app, or connect it to Claude, ChatGPT or Cursor through MCP and just ask.

> [card] [Quickstart](https://docs.gainflow.ai/quickstart.md)
>
> Get an API key and make your first request in two minutes.

> [card] [Connect AI apps](https://docs.gainflow.ai/mcp.md)
>
> Add Gainflow to Claude, ChatGPT, Cursor or Claude Code.

> [card] [API reference](https://docs.gainflow.ai/api-reference/introduction.md)
>
> Every endpoint, with a playground to try it live.

> [card] [Credits](https://docs.gainflow.ai/credits.md)
>
> How requests are metered, and what is free.

## What you can do today

| Endpoint | What it returns | Credits |
| - | - | - |
| `POST /v1/scrape` | One page or PDF as Markdown, HTML, links, or fields picked with CSS selectors | 1, or 0 on a cache hit |
| `POST /v1/map` | URLs found on a site through robots.txt, sitemaps and page links | 1 |
| `GET /v1/account/balance` | Your credits, reserved credits and plan | Free |
| `GET /v1/account/usage` | Your credit ledger, newest first | Free |

Every new account starts with **300 free credits**. No card needed.

## Base URLs

| Use | URL |
| - | - |
| REST API | `https://api.gainflow.ai` |
| MCP server | `https://mcp.gainflow.ai/mcp` |


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