Developers

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.

Using an AI agent? One line adds Forepop:

curl -fsSL https://forepop.com/install | sh

Windows, the MCP address and the Claude and ChatGPT apps: Agent install

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 inBest forSign-in
One-line agent installClaude Code, Codex, Gemini CLI or VS Code on your computerOAuth, in the agent
MCP serverClaude, ChatGPT and any MCP clientOAuth, or an API key in a header
REST APIYour own code and scriptsAn API key

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

Pages

  • Quickstart: your first study from a terminal, in five calls.
  • Authentication: API keys, OAuth for AI apps, and what a key can do.
  • API reference: every endpoint, the survey format, results, limits and errors.
  • MCP server: connecting clients, the six tools, and raw JSON-RPC.
  • 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 is the index, /llms-full.txt is every page in one file, and each page has a .md twin, such as /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.
NextQuickstartMake a key, check a study's cost, start it, wait for it and read the results, with curl, Python or JavaScript.