logo
On this page

Query Digital Human List


Description

Through this API, you can retrieve the list of available digital humans.

Request prototype

  • Request method: POST
  • Request body format: JSON
  • Request URL: https://aigc-digitalhuman-api.zegotech.cn?Action=GetDigitalHumanList
  • Transmission protocol: HTTPS
  • QPS limit: 10 times/second

Request Parameters

The following request parameter list only shows the API request parameters and some common parameters. For the complete list of common parameters, please refer to Accessing Server APIs - Common Request Parameters.

ParameterTypeRequiredDescription
InferenceModeNumberNoInference mode:
  • 1: Normal inference.
  • 2: Advanced inference.
Retrieve the list of digital humans that support the corresponding inference mode. If not specified, the default value is 1.
FetchModeNumberNoFetch mode:
  • 1: Full fetch.
  • 2: Only fetch public digital human list.
  • 3: Only fetch private digital human list.
If not specified, the default value is 1.
OffsetNumberNoIndicates from which record to start fetching, with a range of [0, 1000000]. If not specified, the default value is 0. If the value is less than 0 or greater than 1000000, the API call will fail.
LimitNumberNoNumber of digital human records to fetch. Range is [1, 20]. If not specified, the default value is 20. If the value is less than 1 or greater than 20, the API call will fail.

Sample request

  • Request URL:

    https://aigc-digitalhuman-api.zegotech.cn?Action=GetDigitalHumanList
    &<Common Request Parameters>
  • Request body:

    {
        "FetchMode": 1,
        "Offset": 0,
        "Limit": 10
    }

Response parameters

ParameterTypeDescription
CodeNumberReturn code. 0 indicates success, other values indicate failure. For error codes and response handling suggestions, please refer to Return Codes.
MessageStringDescription of the request result.
RequestIdStringRequest ID.
DataObjectReturn data.
└TotalNumberTotal number of digital humans matching the query criteria.
└DigitalHumansArray of ObjectDigital human list. For details, please refer to DigitalHuman.

DigitalHuman

ParameterTypeDescription
DigitalHumanIdStringDigital human ID.
NameStringDigital human name.
AvatarUrlStringDigital human image URL, valid for 24 hours.
IsPublicBooleanWhether it is a public digital human:
  • true: Public digital human.
  • false: Private digital human.
ActionsArray of ObjectList of actions supported by the digital human.
└ActionStringAction name.
└PreviewUrlStringAction preview video URL.

Sample response

{
    "Code": 0,
    "Message": "success",
    "RequestId": "aa62cf9f-2797-4bd0-9cbf-e461b82d75a5",
    "Data": {
        "Total": 1,
        "DigitalHumans": [
            {
                "DigitalHumanId": "077f52b8-1513-49f8-af14-54a57dadda2e",
                "Name": "xxx",
                "AvatarUrl": "https://xxx.com/xxx.png",
                "Actions": [],
                "IsPublic": false
            }
        ]
    }
}

Previous

Accessing Server APIs

Next

Query Digital Human Details