Images
How exercise GIF links work.
Subscribe on RapidAPIEach exercise in a list response has an imageUrl: a link to its animated GIF (360x360).
- Use it directly as an image source, in a browser, an app or a download. It needs no headers and no
RapidAPI key, so
<img src="…">works. - It is temporary. Links work for one hour, until the
imageUrlExpiresAttime in the same response. After that they return403. Request the list again for fresh links; don't store links in a database. - It works for one exercise only. Changing the id or the token in a link makes it fail with
403. - Caching: browsers may keep the GIF until the link expires. Store the GIF yourself if you need it longer.
Image links point to the image host, not to your RapidAPI base URL. That's expected: they are fetched without your RapidAPI credentials.
Responses
| Status | Meaning |
|---|---|
200 | The GIF, as image/gif |
403 | The link is invalid or has expired (FORBIDDEN) |
404 | No such image (NOT_FOUND) |