Exercises

Muscles worked, as an SVG image

The muscles an exercise works, drawn on anterior and posterior body maps and returned as an SVG file. Point an <img> at it, inline it, or put it in a PDF. The muscleGroups field on /exercises carries the same information as data if you would rather draw it yourself. Does not count against the monthly exercise cap. Cacheable for a day. Authenticate with ?api_key= when using it as an image URL, since an <img> tag cannot send headers.

get/exercises/{id}/body-map

Request

  • Base URL: https://exercise-api.ymove.app/api/v2
  • URL: https://exercise-api.ymove.app/api/v2/exercises/{id}/body-map
  • Auth: one of:
    • API key in header X-API-Key
    • API key in query parameter api_key

Path parameters

idstring required

Exercise UUID or slug

Query parameters

view'both' | 'front' | 'back'

Which silhouettes to draw

heightinteger

Image height in pixels; width follows the aspect ratio

primarystring
Example:6D2BE8

Hex colour (3 or 6 digits, no #) for the primary muscle group. Pass this alone to brand the image: supporting muscles are drawn in the same colour at a third opacity.

secondarystring

Hex colour for supporting muscles

basestring

Hex colour for muscles this exercise does not work

backgroundstring

Hex background colour; transparent when omitted

Response

SVG image

Changes

No recorded changes to this operation across all 1 revision of this API.