Fetching video and photo contents via API

💻 Environment/Context

  • API
  • Video
  • Photo
  • Endpoint

 

 

❓ Issue/Question

  • Can we get videos as well as pictures via API?

 

👌 Resolution/Answer

  • The API handles both. Media has a type field that's either photo or video
  • On the search endpoint (POST  /v1/media/search) there's a media_type filter accepting photo or video, so they can pull either one or both (leave it unset to get everything). Video items also expose a dedicated video field with the playback/asset reference.

 

 

🔖 Notes