# API and AI agents

> Every page of StressPC is available in a form that programs and AI assistants can read without parsing HTML.

<https://stresspc.com/developers/>

## What an agent can and cannot do

The stress tests run inside a person's web browser, on that person's hardware. A program cannot run a test through the API: it can find the right test, explain it, hand the person a link, and read a result the person has shared.

## Markdown version of every page

Add `.md` to a page address to get the same content as Markdown — for example `/cpu-stress-test.md`. The home page is at `/index.md`. A request with the header `Accept: text/markdown` receives Markdown from the normal address as well.

- [`/llms.txt`](/llms.txt) — an index of the site with links to the Markdown pages.
- [`/llms-full.txt`](/llms-full.txt) — all tests and guides in one file.
- [`/sitemap.xml`](/sitemap.xml) — all pages with their language versions.

## JSON API

Static, cacheable, open to any origin (CORS `*`). Replace `en` with `fr` or `de` for other languages.

| Address | Content |
| --- | --- |
| `/api/v1/en/tests.json` | List of tests: key, name, description, page address. |
| `/api/v1/en/tests/{key}.json` | One test with its questions and answers and the full Markdown text. |
| `/api/v1/en/guides.json` | List of guides. |
| `/api/v1/en/guides/{key}.json` | One guide with the full Markdown text. |
| `/api/results/{id}` | A shared result: test, score, measured values, system details. |
| [`/api/v1/openapi.json`](/api/v1/openapi.json) | OpenAPI description of the above. |

A shared result has the address `/r/{id}`; the same `id` works in `/api/results/{id}`.

## MCP server

StressPC exposes a [Model Context Protocol](https://modelcontextprotocol.io) server over streamable HTTP at `/mcp`. It needs no key and keeps no session. Tools:

- `list_tests`, `get_test` — the tests and their documentation.
- `list_guides`, `get_guide` — the guides.
- `get_result` — a shared result by its `id`.

All tools accept an optional `lang` argument (`en`, `fr`, `de`).

## Fair use

The content API has no key and no hard limit; please cache responses. The speed-test endpoints under `/api/speed/` exist only for the [internet speed test](https://stresspc.com/internet-speed-test/) page and are rate-limited per network. For anything else, write to hello@stresspc.com. The [terms of use](https://stresspc.com/terms/) apply.
