# Forepop for developers and AI agents

> Start Forepop studies and read their results from code or from an AI agent, over a REST API or a remote MCP server.

Forepop answers a survey with a simulated population of US adults, in place of fielding it to a panel. Most surveys come back within minutes. Everything you can do in the studio, an agent can do here: check a survey and its cost, start a study, follow its progress and read the results.

## Three ways in

| Way in | Best for | Sign-in |
| --- | --- | --- |
| [One-line agent install](https://forepop.com/developers/agent-install) | Claude Code, Codex, Gemini CLI or VS Code on your computer | OAuth, in the agent |
| [MCP server](https://forepop.com/developers/mcp) | Claude, ChatGPT and any MCP client | OAuth, or an API key in a header |
| [REST API](https://forepop.com/developers/api) | Your own code and scripts | An API key |

All three call the same code, with the same checks, limits and prices.

## Pages

- [Quickstart](https://forepop.com/developers/quickstart): your first study from a terminal, in five calls.
- [Authentication](https://forepop.com/developers/authentication): API keys, OAuth for AI apps, and what a key can do.
- [API reference](https://forepop.com/developers/api): every endpoint, the survey format, results, limits and errors.
- [MCP server](https://forepop.com/developers/mcp): connecting clients, the six tools, and raw JSON-RPC.
- [Agent install](https://forepop.com/developers/agent-install): the one line that adds Forepop to the agents on a computer.

## For agents reading this

These docs are also plain Markdown: [/llms.txt](https://forepop.com/llms.txt) is the index, [/llms-full.txt](https://forepop.com/llms-full.txt) is every page in one file, and each page has a .md twin, such as [/developers/quickstart.md](https://forepop.com/developers/quickstart.md).

- Every number Forepop returns is a model estimate, not answers from real people. Say so when you pass results on.
- A study spends answers from the workspace's balance: one simulated person answering one question is one answer. Check the cost with `estimate_cost` (MCP) or `POST /api/v1/studies/estimate` (REST), and ask your user before you spend.
- Keep each question and option worded exactly as your user wrote it.
- Poll a running study every few minutes at most.
