TikTok Photo post images API
API 상태
- 24시간 상태
- 정상
- 양호 / 정상
- 사용 가능
최근 24시간
최근 30일
Get every image of a TikTok photo post (photo mode or carousel) from its url, in the post's order: images with each image's url, width and height in pixels, plus image_urls, the same links as a list. The row also carries the post's text, posted_at, counts, author fields and background music fields. Image links expire, so download the ones you keep soon. A video, a missing post or a deleted post returns 503 and is not charged; use video for videos.
POST https://api.everyinfra.com/api/v1/social을 보내고 platform은 tiktok, action은 photos로 설정합니다. 요금은 요청 1,000개당 $0.56(호출당 $0.000556)입니다. 실패한 호출과 빈 결과에는 과금하지 않습니다. 동기 방식입니다. 오래 걸리는 작업은 요청 본문에 "mode": "async"를 추가하고 job_id를 받아 폴링하세요.
AI 프롬프트
#EveryInfra TikTok Photo post images 엔드포인트(tiktok/photos)를 사용하는 데이터 수집 스크립트 작성을 도와주세요.
엔드포인트 사용 방법:
- 요청: Authorization: Bearer <API 키> 헤더와 함께 POST https://api.everyinfra.com/api/v1/social로 보냅니다. 키는 EVERYINFRA_API_KEY 환경 변수에서 읽고, 절대 하드코딩하지 마세요.
- 요청 본문에서 platform은 tiktok, action은 photos로 설정하고, 파라미터는 params 안에 넣습니다.
- 필수 파라미터:
- url: 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.
- 단일 객체를 반환합니다. 주요 필드: id, url, images (Every image of a photo post (photos), i…), image_urls (Link to each image in a photo (carousel…), posted_at, text, language, location, media_type (Post type (photos): always photo), author_username, author_name, author_bio (작성자의 프로필 소개입니다); 전체 필드 59개, 전체 목록은 https://api.everyinfra.com/api/v1/social/catalog?platform=tiktok.
- 요청 본문 예시:
{
"platform": "tiktok",
"action": "photos",
"params": {
"url": "https://www.tiktok.com/@tiktok/photo/7701866987609197837"
}
}
- 요금: 요청 1,000개당 $0.56. 실패하거나 빈 결과에는 과금하지 않습니다.
- 대상이 수십~수백 개라면 요청 본문에 "mode": "async"를 추가하세요. job_id를 즉시 받은 뒤 GET https://api.everyinfra.com/api/v1/jobs/{job_id}를 폴링해 결과를 가져옵니다.
- 422가 반환되면 오류에 제시된 파라미터 이름과 허용 값을 참고해 요청을 수정하고, 429 또는 503이 반환되면 Retry-After만큼 기다린 뒤 다시 시도합니다.
코드를 작성하기 전에 필요한 대상과 수량, 필드, 원하는 출력 형식을 먼저 물어봐 주세요. 그런 다음 계획과 대략적인 비용을 저와 확인해 주세요.요청 파라미터
#| 이름 | 위치 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|---|
Authorization | header | string | 예 | - | Bearer 뒤에 API 키를 붙여 입력합니다. API 키는 콘솔에서 생성하며, URL이나 코드 저장소에 절대 넣지 마세요. |
platform | body | string | 예 | tiktok | 플랫폼 식별자이며 고정값입니다. |
action | body | string | 예 | photos | 기능 식별자이며 고정값입니다. |
url | body.params | string | 예 | - | 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. |
코드 샘플
#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"
}
}'OpenAPI 정의(JSON)샘플 코드는 EVERYINFRA_API_KEY 환경 변수에서 키를 읽으므로, 복사한 코드에는 API 키가 포함되지 않습니다.
응답 예시
#{ "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": { … }}
응답 필드
#비즈니스 데이터는 results에 담깁니다. 아래 표는 레코드에 포함될 수 있는 필드를 나열하며, 플랫폼에 표시되지 않는 값을 임의로 만들어 넣지 않습니다.
| 필드 | 의미 |
|---|---|
id | 플랫폼에서 레코드의 고유 ID입니다. 한 플랫폼 안에서만 고유하며, 플랫폼이 다르면 ID가 중복될 수 있습니다. |
url | 플랫폼에서 해당 레코드로 연결되는 링크입니다. |
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 | 게시 시각으로, ISO 8601 UTC 형식입니다(예: 2026-08-07T12:34:56+00:00). 플랫폼에서 받은 비표준 문자열은 그대로 전달되므로 방어적으로 파싱하세요. null이면 플랫폼이 공개하지 않은 것입니다. |
text | HTML을 제거한 본문으로, 잘리지 않고 전체가 반환됩니다(일부 플랫폼은 목록 결과 자체에 발췌문만 포함되며, 이 경우 해당 플랫폼의 필드 설명에 명시되어 있습니다). |
language | 플랫폼이 판단한 콘텐츠 언어 코드입니다(예: zh, en). 틀릴 수 있습니다. |
location | 위치 설명을 그대로 전달하며, 형식은 플랫폼마다 다릅니다. |
media_type | Post type (photos): always photo. |
author_username | 작성자의 사용자 이름(@handle)으로, 보통 URL에 사용할 수 있습니다. |
author_name | 작성자의 표시 이름입니다. |
author_bio | 작성자의 프로필 소개입니다. 일부 요청에서는 반환되지 않으며, user_videos 결과에서는 없을 수 있습니다. |
music_title | Title of the background music (photos). |
music_author | Name of the background music's author (photos). |
author_id | 플랫폼에서 작성자의 고유 ID입니다. |
author_sec_uid | 음악 작성자 계정의 secUid(music_detail)입니다. 오리지널 사운드에만 있습니다. |
music_id | ID of the post's background music (photos). |
author_url | 플랫폼의 작성자 프로필 링크입니다. |
author_avatar_url | 작성자의 아바타 이미지 링크입니다(대부분의 플랫폼에서 서명되어 있으며 만료됨). |
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 | 조회수 또는 재생 수입니다. null은 비공개라는 뜻이며, 0이 아닙니다. |
like_count | 좋아요 수입니다. null은 플랫폼 또는 이 기능에서 공개하지 않는다는 뜻이며, 0이 아닙니다. |
comment_count | 댓글 수입니다. null은 비공개라는 뜻이며, 0이 아닙니다. |
share_count | 공유 수입니다. null은 비공개라는 뜻이며, 0이 아닙니다. |
bookmark_count | Number of bookmarks (photos). |
repost_count | 리포스트 수입니다(인용 게시물과는 구분됩니다). null은 비공개라는 뜻입니다. |
author_follower_count | 작성자의 팔로워 수입니다. null은 비공개라는 뜻입니다. |
author_following_count | 작성자가 팔로우하는 계정 수입니다. 일부 요청에서는 반환되지 않습니다. |
author_like_count | 작성자 프로필이 받은 좋아요 총수입니다. 일부 요청에서는 반환되지 않습니다. |
author_video_count | 작성자가 게시한 동영상의 총수입니다. 일부 요청에서는 반환되지 않습니다. |
duration_sec | 길이(초)로, duration_seconds와 같은 값입니다(두 이름 모두 반환됨). 동영상 행에서는 동영상 길이, music_search, music_chart, music_detail에서는 사운드 길이입니다. |
duration_seconds | 길이(초)입니다. 동영상이나 오디오가 아닌 콘텐츠는 null입니다. |
music_duration_sec | Length of the background music in seconds (photos). |
category_type | The post's category type (photos). |
author_is_verified | 작성자에게 인증 배지가 있는지 여부입니다. 일부 요청에서는 반환되지 않습니다. |
author_is_private | 작성자의 계정이 비공개인지 여부입니다. |
author_is_seller | 작성자가 TikTok Shop 판매자인지 여부입니다. user_videos 결과에서는 대개 제공되지 않습니다. |
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 | 동영상이 광고인지 여부입니다. 검색 결과에서는 대개 제공되지 않으며, user_videos 결과에서도 없을 수 있습니다. |
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 | 본문에 포함된 해시태그로, 등장 순서대로 나열됩니다. 없으면 필드가 생략됩니다. |
mentions | Accounts mentioned with @ in the post (photos). |
suggested_words | Suggested words on the post (photos). |
platform | 출처 플랫폼 식별자로, 요청의 platform과 같습니다(예: xiaohongshu, tiktok). |
오류 및 과금
#- 401
- 키가 없거나 유효하지 않습니다.
- 402
- 잔액이 부족합니다. 먼저 충전하세요.
- 422
- 파라미터 이름 또는 값이 올바르지 않습니다. 오류에 제시된 제안을 참고해 수정하세요. 과금되지 않습니다.
- 429
- 분당 요청 속도 제한에 도달했습니다. Retry-After만큼 기다린 뒤 다시 시도하세요.
- 503
- 처리를 완료하지 못했습니다. 보류된 금액은 잔액으로 반환됩니다. 결과가 불확실하면 재시도하기 전에 먼저 확인하세요.
- 200 빈 결과
- 데이터가 없습니다. 과금되지 않습니다.