API Docs

v1.0.0Latest
GET

Get Media Info

Retrieve media information for tiktok.

Endpoint
GET /ask/tt/media/info?postId={postId}
Request Query Parameters
Query parameters for fetching media information
Field
Type
Required
Description
postId
string
Yes
Post ID to fetch media info for
Example Request
curl -X GET "https://api.gateway.walee.ai/api/ask/tt/media/info?postId={postId}" \
  -H "x-api-key: YOUR_API_KEY"
Success Response
Successful media info retrieval
200OK
{
"success": true,
"message": "Tiktok media info fetched successfully",
"payload": {
"success": true,
"media": {
"itemInfo": {
"itemStruct": {
"id": "string",
"desc": "string",
"createTime": 0,
"video": {
"id": "string",
"height": 0,
"width": 0,
"duration": 0,
"ratio": "string",
"cover": "string",
"originCover": "string",
"dynamicCover": "string",
"playAddr": "string",
"downloadAddr": "string",
"shareCover": [
"string"
],
"reflowCover": "string"
},
"author": {
"id": "string",
"uniqueId": "string",
"nickname": "string",
"avatarThumb": "string",
"avatarMedium": "string",
"avatarLarger": "string",
"signature": "string",
"verified": true,
"secUid": "string",
"secret": true,
"ftc": true,
"openFavorite": true,
"commentSetting": 0,
"duetSetting": 0,
"stitchSetting": 0,
"privateAccount": true
},
"music": {
"id": "string",
"title": "string",
"playUrl": "string",
"coverThumb": "string",
"coverMedium": "string",
"coverLarge": "string",
"authorName": "string",
"original": true,
"duration": 0,
"album": "string"
},
"challenges": [
{
"id": "string",
"title": "string",
"desc": "string",
"profileThumb": "string",
"profileMedium": "string",
"profileLarger": "string",
"coverThumb": "string",
"coverMedium": "string",
"coverLarger": "string",
"isCommerce": true
}
],
"stats": {
"diggCount": 0,
"shareCount": 0,
"commentCount": 0,
"playCount": 0
},
"isActivityItem": true,
"duetInfo": {
"duetFromId": "string"
},
"textExtra": [
{
"awemeId": "string",
"start": 0,
"end": 0,
"hashtagName": "string",
"hashtagId": "string",
"type": 0,
"userId": "string",
"isCommerce": true,
"userUniqueId": "string",
"secUid": "string",
"questionId": "string",
"questionContent": "string",
"subType": 0
}
],
"secret": true,
"showNotPass": true,
"vl1": true,
"itemMute": true,
"authorStats": {
"followingCount": 0,
"followerCount": 0,
"heartCount": 0,
"videoCount": 0,
"diggCount": 0,
"heart": 0
},
"privateItem": true,
"duetEnabled": true,
"stitchEnabled": true,
"shareEnabled": true,
"stickersOnItem": [
{
"stickerType": 0,
"stickerText": [
"string"
]
}
],
"isAd": true
},
"shareMeta": {
"title": "string",
"desc": "string"
}
}
}
}
}
Error Response
Error retrieving media info
400Bad Request
{
  "success": false,
  "message": "Failed to fetch media info"
  "payload": {}
}
Error Response
Unexpected error occurred
500Internal Server Error
{
  "success": false,
  "message": "Something went wrong. Please try again later."
  "payload": {}
}