# threefold docs

> Developer documentation for threefold: the MCP server, REST API, CLI and SDKs, the i18n readiness check, market resources, visual answers and watches.

threefold is a market-entry intelligence library and localisation toolkit for app builders and their AI agents. It answers two questions in one place: **what is different in a target country** across App Store and Google Play listings, reviews, ads and posts, and **whether your app is ready to launch there** via local i18n checks, MCP, REST, CLI and SDKs.

## How do you start in 60 seconds?

1. **Connect.** Add `https://api.threefold.eco/mcp` to your MCP client. See [Install and connect](https://threefold.eco/docs/install.md).
2. **Ask your agent.** Ask your agent a market question, such as "What wins in fitness apps in Japan compared to the US?"
3. **Inspect the evidence.** The agent calls the `market` tool with `{ "market": "jp", "genre": "health-fitness", "vs": "us" }` and returns a concise markdown digest with citations and a link to view the evidence on threefold.eco (see [Agent tools](https://threefold.eco/docs/agent-tools.md)).

No account? Use `https://api.threefold.eco/mcp?keyless=1`, or call the REST API without a key:

```sh
curl "https://api.threefold.eco/api/compare?from=es&to=mx&niche=finance"
```

## What is in these docs

| Section | For |
|---|---|
| [MCP server](https://threefold.eco/docs/mcp.md) | Tools, sign-in, structured results and cost metadata |
| [REST API](https://threefold.eco/docs/api.md) and [API reference](https://threefold.eco/docs/api/reference.md) | Routes, auth, headers, paging, the OpenAPI document |
| [CLI](https://threefold.eco/docs/cli.md) and [SDKs](https://threefold.eco/docs/sdks.md) | Terminal and TypeScript or Python (built, not published yet) |
| [i18n readiness check](https://threefold.eco/docs/i18n-check.md) | The local check, verdicts and the CI gate |
| [Market resources](https://threefold.eco/docs/resources.md) | Glossary, variant lint, listing check, price points, launch checklist, translate |
| [Visual answers](https://threefold.eco/docs/visuals.md) | Screenshot galleries, previews and collections |
| [Watches](https://threefold.eco/docs/watches.md) | Change alerts by webhook or email |
| [AI analyses](https://threefold.eco/docs/analysis.md) | Model-written explanations and briefs |
| [Page localisation](https://threefold.eco/docs/page-localisation.md) | One stateless call that localises a page's text and keeps its structure |
| [Data and freshness](https://threefold.eco/docs/data.md) | Sources, coverage, refresh and retention |
| [Accounts and keys](https://threefold.eco/docs/accounts.md) | Sign-in, keys, scopes, OAuth, plans, enterprise features |
| [Errors](https://threefold.eco/docs/errors.md) | The closed set of error codes |
| [Guides](https://threefold.eco/guides.md) | One setup per page: Expo for Mexican Spanish, Flutter plurals for German, hardcoded strings in SwiftUI and more |
| [Help](https://threefold.eco/help.md) and [Contact](https://threefold.eco/contact.md) | Common questions and support at [info@threefold.eco](mailto:info@threefold.eco) |

## Coverage at a glance

- **Markets:** United Kingdom (`gb`), United States (`us`), Spain (`es`), Mexico (`mx`), Argentina (`ar`), Brazil (`br`), Germany (`de`), France (`fr`), Japan (`jp`), South Korea (`kr`). Each has a language variant (`es-MX`, not just `es`), market-native channels and a monetisation profile.
- **Niches:** `games`, `education`, `health-fitness`, `finance`, `productivity`, `lifestyle` (the App Store genres; meditation is under `health-fitness`).
- **Stores:** App Store (`ios`, the default) and Google Play (`play`).
- **Pillars:** Brand (listings, charts, reviews), Paid (ad libraries) and Organic (creator posts). Paid and Organic are live for some sources only: Google and TikTok ads, Instagram and YouTube. Meta ads and other sources are not connected, so those answers are live links, filtered by country. See [Data and freshness](https://threefold.eco/docs/data.md).

## Machine-readable entry points

- OpenAPI 3.1: <https://api.threefold.eco/openapi.json>
- `llms.txt`: <https://api.threefold.eco/llms.txt>, and the guide index at <https://threefold.eco/guides/llms.txt>
- Markdown: every docs page, guide, blog post and [pricing](https://threefold.eco/pricing.md) is also served as markdown at the same path with `.md` (`/docs/i18n-check.md`), or with `Accept: text/markdown`
- Task search: `GET https://api.threefold.eco/api/discover?q=<task>`
- Status: <https://api.threefold.eco/status>

## Questions

### Which interface should I use: MCP, REST, CLI or SDK?

Use the remote MCP server (`https://api.threefold.eco/mcp`) for chat apps and coding agents that call `app`, `market`, `check` and `workspace`. Use the REST API for scripts, backends and CI pipelines. The CLI and the TypeScript and Python SDKs are built but not published yet. See [i18n check](https://threefold.eco/docs/i18n-check.md) for the market readiness rules that your coding agent applies to project files.

### Can agents read threefold documentation as Markdown?

Yes. Every docs page, guide, blog post, pricing page, `/how-it-works/`, `/connect/` and the homepage (`/index.md`) is served as clean Markdown at `<path>.md` or when a client sends `Accept: text/markdown`.

### What markets and stores are covered today?

The library collects 10 core markets (`gb`, `us`, `es`, `mx`, `ar`, `br`, `de`, `fr`, `jp`, `kr`) across 6 genres on both the App Store (`ios`) and Google Play (`play`), with language-variant rules for locales such as `es-MX`, `es-AR`, `pt-BR`, `de-DE`, `ja-JP` and `ko-KR`.
