exerciseapi.dev

What makes an exercise API work well with AI coding tools?

Coding agents can read exerciseapi.dev in one fetch, check exercise field types, look up real exercise IDs with MCP and get errors with a hint.

Look for an API your agent can read and check

When you choose an exercise API for an AI coding tool, look at what the agent can check before it writes a call. With exerciseapi.dev, it can read all seven endpoints in one fetch, check exercise field types and use MCP to look up real exercise IDs. A misspelled search parameter or a made-up exercise ID returns a hint for the next call.

One agent wrote a script that worked on its first live run

On December 2, 2026, we put only llms.txt in a folder and asked a coding agent to write one script for six jobs. It had no network access or MCP tools. We ran its code unchanged against the live API.

A strength search for “benchpress” returned 10 results, including Dumbbell_Bench_Press. It also found Bent_Press, a different lift, because the search allows fuzzy matches. A total of 333 of our exercises have a demo video. A search for beginner yoga with video found 17 exercises. The first was Baby_Cobra, with form tips and a video URL. The script also found 16 muscle groups for a filter menu.

The script showed a recovery hint for a made-up ID and printed the allowed levels when “expert” failed. It included code to retry once after a 429 if the wait was 60 seconds or less. We never hit a limit, so that part went untested. This was one agent and one run.

Give your agent all seven endpoints in one file

At https://exerciseapi.dev/llms.txt, your agent can read how to authenticate, which parameters each endpoint accepts and what an exercise record looks like. Example responses sit alongside the calls, so the agent can see which fields its code will read. We generate this file from the same source as our docs.

Check the types before generating a client

Ask your agent to read https://exerciseapi.dev/openapi.json before it writes types or generates a client. This OpenAPI 3.1 file defines the query parameters and response schemas for all seven public endpoints, including the errors each call can return.

Look up exercise IDs while you build

The exerciseapi.dev MCP server gives your agent six tools for live lookups in Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline and Zed. If you’re building an equipment filter, the agent can call list_equipment for the exact names, pass one to search_exercises and open a matching record with get_exercise.

Use the error to fix the next call

Send “equipments” as a parameter to GET /v1/exercises and the hint reads “Did you mean 'equipment'?” For a 429, the Retry-After header tells your app how long to wait. A daily limit can mean waiting until midnight UTC. If the wait exceeds a minute, tell people when to try again and show the upgrade link to the API account owner.

Get a free key and paste the prompt into your coding tool

Sign up at exerciseapi.dev for a free key. It includes 100 requests a day and up to 20 results per request. No card is required. Paste the prompt from the homepage into your coding tool.

The prompt tells your agent to inspect your project, fetch llms.txt before writing code and keep the key in an environment variable. For web apps, the key stays on the server. The prompt ends with checks you can try in the app, including whether “benchpress” finds bench press variants and a missing exercise shows a friendly empty state.