๐ป Environment/Context
- API
ย
โ Issue/Question
- Can we get videos as well as pictures via API?
ย
๐ Resolution/Answer
- The API returns both photos and videos
- Each media has a
typefield set tophotoorvideo - Video items also have a
videofield with the playback and asset reference
- Each media has a
- To fetch only one type, use the
media_typefilter on the search endpoint (POST /v1/media/search)- Set it to
photoorvideo - Leave it unset to get both
- Set it to
ย