exerciseapi.dev

How do I add exercise data to a React Native app?

Use one exerciseapi.dev request to fill a React Native list and detail screen. See where the key goes and how long to keep the list offline.

One request fills both screens

One request to exerciseapi.dev can fill both screens in your workout app. Fetch a list with your API key, save it on the phone, and open the saved record when someone taps a row.

Our library covers 2,200 exercises across 12 disciplines. Say you want 20 strength exercises for your first screen. Each result has a name for the list and a full record for the detail screen, even on the free plan.

Where the key goes

You can ship the key in a mobile app you publish. In Expo, we kept ours in an environment setting named EXPO_PUBLIC_EXERCISEAPI_KEY and sent it in the X-API-Key header. Keep the key out of source code and git. Expo puts EXPO_PUBLIC_ values in the app bundle, so anyone with the bundle can read them. Read the key only in files used by the mobile app. If shared code reads it, Expo puts it in the web bundle even when web requests go through your server. Keep the key out of browser code by having the web version call your server. Your server reads its key from a server-only setting.

What to show when someone taps

Open the steps and form tips from the saved row. The same record includes common mistakes, safety notes and variations. If a saved workout or link gives you only an id, fetch /v1/exercises/:id. Take the id from an API response. Building it from the name can give you the wrong id.

333 of our 2,200 exercises have a video. Check videos.length > 0 before showing a player. Otherwise, show the steps and tips. Add hasVideo=true to the query if every result needs a demo.

How long to keep a list

Use AsyncStorage to save the response with the time you fetched it. Give each search or page its own saved copy.

Under 24 hours, show the copy without a call. Once the copy is 24 hours old, show it right away and fetch a fresh copy in the background. Offline, you may show a copy up to 30 days old. Remove older copies, even offline. Fetch a fresh copy before showing the data again. Use the same rule for /v1/categories, /v1/muscles and /v1/equipment. Those lists change even less often.

What we checked

On December 2, 2026, we built an Expo SDK 58 app with fetch and AsyncStorage. We tested the live API in Expo Go on an iOS 26 iPhone simulator. We didn’t test Android.

The first open returned 20 exercises in one call. Loading the saved list again took zero. We marked it 25 hours old. The saved list loaded while one background call refreshed it. With calls switched off in code, the 29-day copy still loaded. The app removed the 31-day copy, and the list loaded again only after we switched calls back on.

The id lookup returned the exercise, and all three reference lists loaded.

Get your first 20 exercises

The free plan gives you 100 requests a day. Each request can return up to 20 results, and you can page through the first 500 results of each query. Get a free key from exerciseapi.dev without a card, then send the request below with your key in the X-API-Key header.

GET https://api.exerciseapi.dev/v1/exercises?category=strength&limit=20&offset=0