Weibo Profile featured posts API
API 상태
- 24시간 상태
- 정상
- 양호 / 정상
- 사용 가능
최근 24시간
최근 30일
Read the Featured tab of a Weibo account's profile by numeric UID: a few popular posts Weibo picked for the user, not in time order and not the latest. Weibo picks them for only some accounts, such as organizations and large media accounts; most personal accounts return an empty list. It returns one page of 5 to 7 posts and does not page.
POST https://api.everyinfra.com/api/v1/social을 보내고 platform은 weibo, action은 profile_feed로 설정합니다. 요금은 요청 1,000개당 $0.79(호출당 $0.000792)입니다. 실패한 호출과 빈 결과에는 과금하지 않습니다. 동기 방식입니다. 오래 걸리는 작업은 요청 본문에 "mode": "async"를 추가하고 job_id를 받아 폴링하세요.
AI 프롬프트
#EveryInfra Weibo Profile featured posts 엔드포인트(weibo/profile_feed)를 사용하는 데이터 수집 스크립트 작성을 도와주세요.
엔드포인트 사용 방법:
- 요청: Authorization: Bearer <API 키> 헤더와 함께 POST https://api.everyinfra.com/api/v1/social로 보냅니다. 키는 EVERYINFRA_API_KEY 환경 변수에서 읽고, 절대 하드코딩하지 마세요.
- 요청 본문에서 platform은 weibo, action은 profile_feed로 설정하고, 파라미터는 params 안에 넣습니다.
- 필수 파라미터:
- user_id: Numeric UID of the Weibo account, or a profile link that contains /u/<UID>. Nicknames are not accepted and are rejected with 422 before you are charged; look them up first with user_search.
- 선택 파라미터:
- limit: 이 호출에서 반환할 최대 행 수로, 1 이상의 정수입니다. 생략하면 기본값이 적용되며, 실제 반환되는 행은 이보다 적을 수 있습니다.
- 레코드 목록을 반환합니다. 각 레코드의 주요 필드: type, id, mblogid (The post's mblogid (user_articles, prof…), url, text, posted_at, edited_at (When the post was edited (user_articles…), edit_count (How many times the post was edited (use…), device (게시물을 올린 클라이언트(예: iPhone 클라이언트)), ip_location (답글과 함께 표시되는 IP 지역(comment_replies)), like_count, like_count_label (Like count as Weibo writes it on the pa…); 전체 필드 50개, 전체 목록은 https://api.everyinfra.com/api/v1/social/catalog?platform=weibo.
- 요청 본문 예시:
{
"platform": "weibo",
"action": "profile_feed",
"params": {
"user_id": "1195054531"
}
}
- 요금: 요청 1,000개당 $0.79. 실패하거나 빈 결과에는 과금하지 않습니다.
- 대상이 수십~수백 개라면 요청 본문에 "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 | 예 | weibo | 플랫폼 식별자이며 고정값입니다. |
action | body | string | 예 | profile_feed | 기능 식별자이며 고정값입니다. |
user_id | body.params | string | 예 | - | Numeric UID of the Weibo account, or a profile link that contains /u/<UID>. Nicknames are not accepted and are rejected with 422 before you are charged; look them up first with user_search. It returns the posts of the profile's Featured tab, 5 to 7, and does not page. |
limit | body.params | integer (1–) | 아니요 | - | 이 호출에서 반환할 최대 행 수로, 1 이상의 정수입니다. 생략하면 기본값이 적용되며, 실제 반환되는 행은 이보다 적을 수 있습니다. |
코드 샘플
#curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "weibo",
"action": "profile_feed",
"params": {
"user_id": "1195054531"
}
}'OpenAPI 정의(JSON)샘플 코드는 EVERYINFRA_API_KEY 환경 변수에서 키를 읽으므로, 복사한 코드에는 API 키가 포함되지 않습니다.
응답 예시
#{ "id": "req_…", "platform": "weibo", "action": "profile_feed", "results": [ { "type": …, "id": …, "mblogid": …, "url": …, "text": …, "posted_at": …, "edited_at": …, "edit_count": …, "device": …, "ip_location": …, "like_count": …, "like_count_label": …, "comment_count": …, "comment_count_label": …, "repost_count": …, "repost_count_label": …, "view_count": …, "author_id": …, "author_username": …, "author_name": …, "author_avatar_url": …, "author_verified": …, "author_verified_type": …, "author_verified_reason": …, "author_bio": …, "author_follower_count": …, "author_follower_count_label": …, "author_following_count": …, "author_following_count_label": …, "image_urls": …, "image_count": …, "video_id": …, "video_url": …, "duration_sec": …, "duration_seconds": …, "cover_image_url": …, "play_count": …, "play_count_label": …, "hashtags": …, "mentions": …, "links": …, "links_detail": …, "is_long_text": …, "is_truncated": …, "is_pinned": …, "is_repost": …, "is_paid": …, "is_ad": …, "original_post_id": …, "reposted_post": …, "platform": … } ], "count": …, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
응답 필드
#비즈니스 데이터는 results에 담깁니다. 아래 표는 레코드에 포함될 수 있는 필드를 나열하며, 플랫폼에 표시되지 않는 값을 임의로 만들어 넣지 않습니다.
| 필드 | 의미 |
|---|---|
type | 레코드 유형입니다. 값은 기능에 따라 다릅니다(예: video / image / text). |
id | 플랫폼에서 레코드의 고유 ID입니다. 한 플랫폼 안에서만 고유하며, 플랫폼이 다르면 ID가 중복될 수 있습니다. |
mblogid | The post's mblogid (user_articles, profile_feed). |
url | 플랫폼에서 해당 레코드로 연결되는 링크입니다. |
text | HTML을 제거한 본문으로, 잘리지 않고 전체가 반환됩니다(일부 플랫폼은 목록 결과 자체에 발췌문만 포함되며, 이 경우 해당 플랫폼의 필드 설명에 명시되어 있습니다). |
posted_at | 게시 시각으로, ISO 8601 UTC 형식입니다(예: 2026-08-07T12:34:56+00:00). 플랫폼에서 받은 비표준 문자열은 그대로 전달되므로 방어적으로 파싱하세요. null이면 플랫폼이 공개하지 않은 것입니다. |
edited_at | When the post was edited (user_articles, profile_feed), ISO 8601, UTC. |
edit_count | How many times the post was edited (user_articles, profile_feed). |
device | 게시물을 올린 클라이언트(예: iPhone 클라이언트). |
ip_location | 답글과 함께 표시되는 IP 지역(comment_replies). 예: 광둥. Weibo가 표시하지 않으면 없습니다. |
like_count | 좋아요 수입니다. null은 플랫폼 또는 이 기능에서 공개하지 않는다는 뜻이며, 0이 아닙니다. |
like_count_label | Like count as Weibo writes it on the page, kept as text, for example the Chinese for “1 million+” or “23.798 million” (user_articles, profile_feed). |
comment_count | 댓글 수입니다. null은 비공개라는 뜻이며, 0이 아닙니다. |
comment_count_label | Comment count as Weibo writes it on the page, kept as text, for example the Chinese for “1 million+” or “23.798 million” (user_articles, profile_feed). |
repost_count | 리포스트 수입니다(인용 게시물과는 구분됩니다). null은 비공개라는 뜻입니다. |
repost_count_label | Repost count as Weibo writes it on the page, kept as text, for example the Chinese for “1 million+” or “23.798 million” (user_articles, profile_feed). |
view_count | Weibo가 게시물에 표시하는 조회수(post_detail). user_posts 목록의 행에는 포함되지 않습니다. |
author_id | 플랫폼에서 작성자의 고유 ID입니다. |
author_username | 작성자의 사용자 이름(@handle)으로, 보통 URL에 사용할 수 있습니다. |
author_name | 작성자의 표시 이름입니다. |
author_avatar_url | 작성자 아바타의 URL입니다. 일부 요청(search)에서는 반환되지 않습니다. |
author_verified | 작성자가 Weibo 인증(V 배지)을 받았는지 여부입니다. 일부 요청(search)에서는 반환되지 않습니다. |
author_verified_type | Verification type of the author (user_articles, profile_feed). |
author_verified_reason | 인증 설명(예: 회사 직책)입니다. 인증된 계정이 무엇을 나타내는지 확인하는 데 사용하세요. 일부 요청(search, user_posts)에서는 반환되지 않습니다. |
author_bio | 작성자 소개글입니다. 일부 요청(search, user_posts)에서는 반환되지 않습니다. |
author_follower_count | 작성자의 팔로워 수. 일부 요청(search, user_posts)에서는 반환되지 않습니다. video에서는 url이 동영상 링크 또는 1034: ID일 때만 반환되며 근사값입니다. |
author_follower_count_label | Author's follower count as Weibo writes it on the page, kept as text, for example the Chinese for “1 million+” or “23.798 million” (user_articles, profile_feed). |
author_following_count | 작성자가 팔로우하는 계정의 수입니다. 일부 요청(search, user_posts)에서는 반환되지 않습니다. |
author_following_count_label | Author's following count as Weibo writes it on the page, kept as text, for example the Chinese for “1 million+” or “23.798 million” (user_articles, profile_feed). |
image_urls | 플랫폼 표시 순서대로 나열된 이미지 링크 배열입니다. 이미지가 없으면 필드가 생략됩니다. |
image_count | Number of images in the post (user_articles, profile_feed). |
video_id | 동영상 ID(video, collection_videos). |
video_url | 게시물의 동영상 링크. |
duration_sec | 동영상 길이(초 단위)(post_detail / user_posts의 동영상 게시물, 그리고 video / collection_videos). |
duration_seconds | 길이(초)입니다. 동영상이나 오디오가 아닌 콘텐츠는 null입니다. |
cover_image_url | 커버 이미지입니다. |
play_count | 동영상 재생 수(video, collection_videos). collection_videos에서는 정확한 값이고, video에서도 게시물 링크나 ID로 조회하면 정확합니다. video에서 동영상 링크나 1034: ID를 사용하면 Weibo가 반올림된 수치를 표시하므로 근사값입니다. 게시물의 조회 수인 view_count와는 다릅니다. |
play_count_label | Video play count as Weibo writes it on the page, kept as text, for example the Chinese for “1 million+” or “23.798 million” (user_articles, profile_feed). |
hashtags | 본문에 포함된 해시태그로, 등장 순서대로 나열됩니다. 없으면 필드가 생략됩니다. |
mentions | Accounts mentioned with @ in the post (user_articles, profile_feed). |
links | 프로필 페이지의 링크(user_about)로, 배열입니다. |
links_detail | Details of each link in the post (user_articles, profile_feed): [{url, short_url, title}]. |
is_long_text | 장문 게시물인지 여부(post_detail / user_posts). user_posts에서는 장문 게시물의 텍스트에 앞부분(약 140자)만 담깁니다. |
is_truncated | Whether text is cut (user_articles, profile_feed): when true, get the full text with post_detail using id. |
is_pinned | Whether the post is pinned (user_articles, profile_feed). |
is_repost | 게시물이 리포스트인지 여부. |
is_paid | Whether the post is a paid post (user_articles, profile_feed). |
is_ad | Whether the post is an ad (user_articles, profile_feed). |
original_post_id | 리포스트인 경우 원본 게시물의 ID(post_detail / user_posts). 원본을 읽으려면 post_detail에 url로 전달하세요. 리포스트가 아니면 없습니다. |
reposted_post | The post that was reposted (user_articles, profile_feed): the same shape as a row, and it does not nest another reposted post. |
platform | 출처 플랫폼 식별자로, 요청의 platform과 같습니다(예: xiaohongshu, tiktok). |
오류 및 과금
#- 401
- 키가 없거나 유효하지 않습니다.
- 402
- 잔액이 부족합니다. 먼저 충전하세요.
- 422
- 파라미터 이름 또는 값이 올바르지 않습니다. 오류에 제시된 제안을 참고해 수정하세요. 과금되지 않습니다.
- 429
- 분당 요청 속도 제한에 도달했습니다. Retry-After만큼 기다린 뒤 다시 시도하세요.
- 503
- 처리를 완료하지 못했습니다. 보류된 금액은 잔액으로 반환됩니다. 결과가 불확실하면 재시도하기 전에 먼저 확인하세요.
- 200 빈 결과
- 데이터가 없습니다. 과금되지 않습니다.