# TikTok Photo post images API (tiktok.photos)

- Canonical page: [https://everyinfra.com/en/tiktok-api/photos](https://everyinfra.com/en/tiktok-api/photos?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "tiktok", "action": "photos", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=tiktok&action=photos

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | A TikTok photo post link with the post ID, such as https://www.tiktok.com/@<user>/photo/<ID> (the /video/<ID> form works too), or the 15 to 21 digit post ID. Short links such as vm.tiktok.com are not recognized, and a value in the wrong form is rejected (422) before you are charged. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| url | Link to the record on the platform. |
| images | Every image of a photo post (photos), in the post's order: [{url, width, height}], with `width` and `height` in pixels. Image links expire, so download the ones you keep soon. |
| image_urls | Link to each image in a photo (carousel) post (video_download, photos; in photos the same images as `images`, in the post's order); links to all of a product's main images (shop_search, shop_category_products, shop_products); on shop_search the first is the same as cover_url. |
| posted_at | Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it. |
| text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
| language | Content language code (for example zh, en) as judged by the platform; it can be wrong. |
| location | Location description passed through as is; the format varies by platform. |
| media_type | Post type (photos): always `photo`. |
| author_username | Author's username (@handle), usually usable in URLs. |
| author_name | Author's display name. |
| author_bio | The author's profile bio; not returned on some requests and may be absent in user_videos results. |
| music_title | Title of the background music (photos). |
| music_author | Name of the background music's author (photos). |
| author_id | Author's unique ID on the platform. |
| author_sec_uid | The account's secUid: in live_room, the streamer's account, starting with MS4w; in music_detail, the music author's account, present only for original sounds; in photos, the post author's account. |
| music_id | ID of the post's background music (photos). |
| author_url | Link to the author's profile on the platform. |
| author_avatar_url | Author's avatar image link (on most platforms signed and expires). |
| cover_url | Link to the post's cover image (photos). |
| music_url | Link to the background music (photos). |
| music_cover_url | Link to the background music's cover image (photos). |
| image_count | Number of images in the photo post (photos), the same as the length of `images`. |
| view_count | Views or plays. null means not disclosed, not 0. |
| like_count | Likes. null means the platform or this capability does not disclose it; it is not 0. |
| comment_count | Comments. null means not disclosed, not 0. |
| share_count | Shares. null means not disclosed, not 0. |
| bookmark_count | Number of bookmarks (photos). |
| repost_count | Reposts (as distinct from quote posts). null means not disclosed. |
| author_follower_count | Author's follower count. null means not disclosed. |
| author_following_count | How many accounts the author follows; not returned on some requests. |
| author_like_count | Total likes the author's profile has received; not returned on some requests. |
| author_video_count | Total number of videos the author has posted; not returned on some requests. |
| duration_sec | Duration in seconds, the same value as duration_seconds (both names are returned): the video's length on video rows, the sound's length on music_search, music_chart and music_detail. |
| duration_seconds | Duration in seconds. null for content that is not video or audio. |
| music_duration_sec | Length of the background music in seconds (photos). |
| category_type | The post's category type (photos). |
| author_is_verified | Whether the author has a verified badge; not returned on some requests. |
| author_is_private | Whether the author's account is private. |
| author_is_seller | Whether the author is a TikTok Shop seller. Usually absent in user_videos results. |
| music_is_original | Whether the background music is an original sound, the creator's own audio (photos). |
| share_enabled | Whether the post can be shared (photos). |
| view_count_estimated | Whether `view_count` is an approximate figure (photos): from 10,000 up, TikTok's page shows a rounded count (35.2K is stored as 35200) and this is true. |
| like_count_estimated | Whether `like_count` is an approximate figure (photos), by the same rule as `view_count_estimated`. |
| comment_count_estimated | Whether `comment_count` is an approximate figure (photos), by the same rule as `view_count_estimated`. |
| share_count_estimated | Whether `share_count` is an approximate figure (photos), by the same rule as `view_count_estimated`. |
| author_follower_count_estimated | Whether `author_follower_count` is an approximate figure (photos), by the same rule as `view_count_estimated`. |
| author_following_count_estimated | Whether `author_following_count` is an approximate figure (photos), by the same rule as `view_count_estimated`. |
| author_like_count_estimated | Whether `author_like_count` is an approximate figure (photos), by the same rule as `view_count_estimated`. |
| author_video_count_estimated | Whether `author_video_count` is an approximate figure (photos), by the same rule as `view_count_estimated`. |
| is_ad | Whether the video is an ad. Usually absent in search results; may be absent in user_videos results. |
| is_private | Whether the account is private. |
| is_aigc | Whether the post is AI-generated content (photos). |
| comments_disabled | Whether comments are turned off on the post (photos). |
| duet_enabled | Whether Duet is allowed on the post (photos). |
| stitch_enabled | Whether Stitch is allowed on the post (photos). |
| hashtags | Hashtags in the text, in order of appearance; absent when there are none. |
| mentions | Accounts mentioned with @ in the post (photos). |
| suggested_words | Suggested words on the post (photos). |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "tiktok",
  "action": "photos",
  "params": {
    "url": "https://www.tiktok.com/@tiktok/photo/7701866987609197837"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "tiktok",
        "action": "photos",
        "params": {
            "url": "https://www.tiktok.com/@tiktok/photo/7701866987609197837",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "tiktok",
  "action": "photos",
  "results": {
    "id": …,
    "url": …,
    "images": …,
    "image_urls": …,
    "posted_at": …,
    "text": …,
    "language": …,
    "location": …,
    "media_type": …,
    "author_username": …,
    "author_name": …,
    "author_bio": …,
    "music_title": …,
    "music_author": …,
    "author_id": …,
    "author_sec_uid": …,
    "music_id": …,
    "author_url": …,
    "author_avatar_url": …,
    "cover_url": …,
    "music_url": …,
    "music_cover_url": …,
    "image_count": …,
    "view_count": …,
    "like_count": …,
    "comment_count": …,
    "share_count": …,
    "bookmark_count": …,
    "repost_count": …,
    "author_follower_count": …,
    "author_following_count": …,
    "author_like_count": …,
    "author_video_count": …,
    "duration_sec": …,
    "duration_seconds": …,
    "music_duration_sec": …,
    "category_type": …,
    "author_is_verified": …,
    "author_is_private": …,
    "author_is_seller": …,
    "music_is_original": …,
    "share_enabled": …,
    "view_count_estimated": …,
    "like_count_estimated": …,
    "comment_count_estimated": …,
    "share_count_estimated": …,
    "author_follower_count_estimated": …,
    "author_following_count_estimated": …,
    "author_like_count_estimated": …,
    "author_video_count_estimated": …,
    "is_ad": …,
    "is_private": …,
    "is_aigc": …,
    "comments_disabled": …,
    "duet_enabled": …,
    "stitch_enabled": …,
    "hashtags": …,
    "mentions": …,
    "suggested_words": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=tiktok
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
