GET_IMAGE_ANIMATIONS API Documentation
🌐 Language Switch
中文版 | English
Interface Information
Function Description
Get image entrance/exit animation list, returning all supported and qualified image entrance/exit animations. Support filtering based on animation type (entrance, exit, loop) and membership mode (all, VIP, free).
More Documentation
📖 For more detailed documentation and tutorials, please visit: https://docs.jcaigc.cn
Request Parameters
Parameter Description
| Parameter |
Type |
Required |
Default |
Description |
| mode |
integer |
❌ |
0 |
Animation mode: 0=all, 1=VIP, 2=free |
| type |
string |
✅ |
- |
Animation type: in=entrance, out=exit, loop=loop |
Parameter Details
Animation Mode Parameter
- mode: Animation filtering mode
- 0 = All animations (including VIP and free)
- 1 = VIP animations only
- 2 = Free animations only
- Default: 0
Animation Type Parameter
- type: Animation type (required)
- "in" = Entrance animation (effect when image appears)
- "out" = Exit animation (effect when image disappears)
- "loop" = Loop animation (continuous effect while image plays)
Animation Mode Description
| Mode Value |
Mode Name |
Description |
| 0 |
All |
Return all animations (including VIP and free) |
| 1 |
VIP |
Return VIP animations only |
| 2 |
Free |
Return free animations only |
Animation Type Description
| Type Value |
Type Name |
Description |
| in |
Entrance Animation |
Animation effect when image appears |
| out |
Exit Animation |
Animation effect when image disappears |
| loop |
Loop Animation |
Continuous loop animation effect while image plays |
Response Format
Success Response (200)
Response Field Description
| Field |
Type |
Description |
| effects |
array |
Image animation object array |
Single Animation Object Field Description
| Field |
Type |
Description |
| resource_id |
string |
Animation resource ID |
| type |
string |
Animation type (in/out/loop) |
| category_id |
string |
Animation category ID |
| category_name |
string |
Animation category name |
| duration |
integer |
Animation duration (microseconds) |
| id |
string |
Animation unique identifier ID |
| name |
string |
Animation name |
| request_id |
string |
Request ID (usually empty) |
| start |
integer |
Animation start time |
| icon_url |
string |
Animation icon URL |
| material_type |
string |
Material type (usually "sticker") |
| panel |
string |
Panel information |
| path |
string |
Path information |
| platform |
string |
Supported platform (usually "all") |
Error Response (4xx/5xx)
Usage Examples
cURL Examples
1. Get All Entrance Animations
2. Get VIP Exit Animations
3. Get Free Loop Animations
Error Code Description
| Error Code |
Error Message |
Description |
Solution |
| 400 |
type parameter must be in, out, or loop |
Invalid animation type parameter |
Use correct type values: "in", "out", or "loop" |
| 400 |
mode parameter must be 0, 1, or 2 |
Invalid animation mode parameter |
Use correct mode values: 0, 1, or 2 |
| 500 |
Failed to get image animations |
Internal processing error |
Contact technical support |
Notes
- type parameter: Required parameter, can only choose one from "in", "out", "loop"
- mode parameter: Optional parameter, default is 0 (all animations)
- Response data: Different from text animations, image animations have specialized categories and effects
- Animation duration: Unit is microseconds (1 second = 1,000,000 microseconds)
- VIP identification: Some animations may require VIP permissions to use
Workflow
- Validate required parameter (type)
- Validate optional parameter (mode) validity
- Filter image animation data based on type and mode
- Return animation object array meeting conditions
- Server automatically handles data formatting
Related Interfaces