Sand AISand AI MAGI-2MAGI-2가 이제 SandBase에서 제공됩니다: 네이티브 오디오가 포함된 1080p 동영상지금 사용해 보기

Toutiao User Profile

API 문서
https://api.sandbase.ai/v1/api/toutiao/app/user-info

Get a Toutiao (Jinri Toutiao) user profile by user ID: name, bio, avatar, follower, following and like counts, and content tabs.

가격
$0.001USD / 호출
메서드
POST
응답
JSON
매개변수
필수 1개 · 선택 사항 0개
하루 100회 무료 호출하루 첫 100회 호출은 무료입니다(조직별 공유) · UTC 00:00에 초기화됩니다. 이후에는 호출당 요금이 부과됩니다.

Playground

입력
User ID, can be obtained from the following API: `toutiao/app/user-id`
출력예시
응답outputs · 1.7 KB · 52줄
[
  {
    "data": {
      "data": {
        "avatar_url": "",
        "bg_image": {
          "status": 0,
          "url": "https://p3-sign.toutiaoimg.com/tos-cn-i-tt/d74fb91f2825491584acf1afb99c8a2d~tplv-noop.webp?_iz=30575&from=sign_default&lk3s=133d4839&x-expires=1791888536&x-signature=Nw7ueNfVVWD39bpG5CL4gwmSs50%3D"
        },
        "big_avatar_url": "",
        "description": "",
        "digg_count": 0,
        "external_info": {
          "app_icon_url": "https://p26.toutiaoimg.com/obj/ies.fe.effect/a752e3bd176b10ea340c65db16e7c91c",
          "app_name": "aweme",
          "app_schema": "snssdk1128://user/profile/1352838578180211",
          "appstore_app_id": 1142110895,
          "button_name": "打开抖音关注作者",
          "download_url": "https://d.douyin.com/eXBJ/",
          "icon_title": "来源于抖音",
          "icon_url": "https://p26.toutiaoimg.com/obj/motor-img/9fd81928b2576d559b363fcf77681f5c",
          "name": "抖音",
          "package_name": "com.ss.android.ugc.aweme"
        },
        "external_media_type": 0,
        "followers_count": 0,
        "followings_count": 0,
        "gender": 0,
        "is_gov_media": false,
        "name": "",
        "publish_count": 0,
        "top_tab": [
          {
            "disable_common_params": false,
            "is_default": false,
            "is_native": true,
            "load_count": 20,
            "pseries_card_count": 0,
            "pseries_card_info": "",
            "show_name": "小视频",
            "total_count": 0,
            "type": "external_ies_video",
            "url": "/api/feed/profile/v1/?category=external_short_video"
          }
        ],
        "user_id": 1352838578180211
      },
      "errno": 0,
      "message": "success"
    }
  }
]

예시

예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.

API README

Toutiao User Profile API

Returns the public profile of a Toutiao (Jinri Toutiao) account: name, bio, avatar and background image URLs, follower, following and like counts, and the content tabs. It needs one input, the numeric user_id of the account.

Use cases

  • Check whether a Toutiao account exists and read its name and bio before you add it to a monitoring list.
  • Record followers_count and followings_count on a schedule to compare accounts.
  • Find which content tabs an account has, such as short video, and the URL path that loads each tab.
  • Detect accounts that link to a Douyin profile through the external_info block.

Request

curl -X POST "https://api.sandbase.ai/v1/api/toutiao/app/user-info" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_id": "1352838578180211"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
user_idstringYesUser ID, can be obtained from the following API: toutiao/app/user-id

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "avatar_url": "",
    "bg_image": {
      "status": 0,
      "url": "https://p11-sign.toutiaoimg.com/tos-cn-i-tt/d74fb91f2825491584acf1afb99c8a2d~tpl…"
    },
    "big_avatar_url": "",
    "description": "",
    "digg_count": 0,
    "external_info": {
      "app_icon_url": "https://p26.toutiaoimg.com/obj/ies.fe.effect/a752e3bd176b10ea340c65db16e7c91c",
      "app_name": "aweme",
      "app_schema": "snssdk1128://user/profile/1352838578180211",
      "appstore_app_id": 1142110895,
      "button_name": "打开抖音关注作者",
      "download_url": "https://d.douyin.com/eXBJ/",
      "icon_title": "来源于抖音",
      "icon_url": "https://p26.toutiaoimg.com/obj/motor-img/9fd81928b2576d559b363fcf77681f5c",
      "name": "抖音",
      "package_name": "com.ss.android.ugc.aweme"
    },
    "external_media_type": 0,
    "followers_count": 0,
    "followings_count": 0,
    "gender": 0,
    "is_gov_media": false,
    "name": ""
  },
  "errno": 0,
  "message": "success"
}

Response fields

FieldMeaning
data.user_idNumeric ID of the account, the same value you sent in the request.
data.name / data.descriptionDisplay name and bio text of the account. Both can be empty strings, as in the sample response.
data.avatar_url / data.big_avatar_url / data.bg_image.urlLinks to the avatar, a larger avatar and the profile background image. The avatar fields can be empty strings.
data.followers_count / data.followings_countNumber of followers the account has and number of accounts it follows.
data.digg_countNumber of likes the account has received.
data.publish_countNumber of items the account has published.
data.is_gov_mediaBoolean flag that is true when the account is marked as a government media account.
data.top_tab[].show_name / data.top_tab[].typeLabel and internal type of each content tab on the profile. The sample shows a short video tab with type external_ies_video.
data.top_tab[].url / data.top_tab[].load_count / data.top_tab[].total_countRelative feed path for the tab, the number of items loaded per page, and the total item count of the tab.
data.external_info.name / data.external_info.app_schema / data.external_info.download_urlShows that the account's content comes from another app (here Douyin), with a deep link into that app and its download link.

Notes

  • Get user_id from the Toutiao Profile User ID API, which takes a profile link.
  • data.user_id comes back as a number, while the request sends user_id as a string.
  • A profile can return zero counts and empty text fields. Check data.name and data.followers_count before you treat the account as populated.
  • To read the content of an account, call the feed path in data.top_tab[].url. For single posts, use Toutiao Article Details (App).

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

더 살펴보기

관련 API

모든 API
API가격응답
Toutiao$0.001 / 호출JSON
Toutiao$0.001 / 호출JSON
Toutiao$0.001 / 호출JSON
Toutiao$0.001 / 호출JSON
Toutiao$0.001 / 호출JSON
Toutiao$0.071429 / 호출JSON

질문

FAQ

Toutiao User Profile API를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/toutiao/app/user-info에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.

Toutiao User Profile API 비용은 얼마인가요?

호출당 $0.001. 모든 조직은 UTC 기준 하루에 100회의 무료 호출을 받으며, 이 API를 포함한 사용 가능 SandBase API 전반에서 공유됩니다. 이후에는 각 호출이 SandBase 잔액에서 이 요금으로 청구됩니다. 구독은 없습니다.

Toutiao User Profile API는 어떤 매개변수를 받나요?

필수: user_id (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.

Toutiao User Profile API는 무엇을 반환하나요?

같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.

Toutiao 개발자 계정이나 API 키가 필요한가요?

아니요. Toutiao User Profile은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Toutiao API 액세스를 별도로 신청할 필요는 없습니다.