Discussions

Ask a Question
Back to all

How to get talking photos via API by group ID if the group contains both talking photos and avatars?

I'm using the endpoint:

https://api.heygen.com/v2/avatar_group/:groupId/avatars

to fetch all items (avatars and talking photos) in a group by groupId. Here's what I've observed:

  • If the group contains only avatars, the endpoint returns all avatars.
  • If the group contains only talking photos, it returns all talking photos.
  • But if the group contains both video avatars and talking photos, the response returns only video avatars - talking_photos are omitted entirely.

Additionally, there’s no type field or equivalent to distinguish between returned items.

How to get talking photos via API by group ID if the group contains both talking photos and avatars?