Skip to content
ShortVid API
All endpoints

Get videos under a hashtag

GET/v1/challenge/posts2 Credits / video (min 10 Credits)($0.20 / 1K videos)

Paginated list of videos tagged with a hashtag (data.videos), including no-watermark video URLs and engagement stats. Pass cid (or challenge_id) obtained from /v1/challenge/info.

Query Parameters

  • cidstringrequired

    Numeric hashtag ID (data.id from /v1/challenge/info; challenge_id is also accepted).

    Example: 42164

  • countinteger (1 to 30)

    Number of videos per page (max 30).

    Example: 20

  • cursorinteger

    Pagination cursor (0 for first page, then pass data.cursor).

    Example: 0

Example Request (cURL / Python / JavaScript)

curl "https://api.shortvidapi.com/v1/challenge/posts?cid=42164" \
  -H "x-api-key: tk_your_api_key"

Live Response Preview

{
  "code": 0,
  "provider": "https://shortvidapi.com",
  "status": "ok",
  "msg": "success",
  "data": {
    "videos": [
      {
        "aweme_id": "v0f044gc0000cn0ijh7og65r84nc68u0",
        "video_id": "7332187682480590112",
        "region": "HU",
        "title": "#fy #foryou #strawberry #chocolate #chocolatecoveredstrawberries ",
        "content_desc": [],
        "cover": "https://p16-common-sign.tiktokcdn-us.com/tos-useast2a-p-0037-euttp/oYZxKA3S6EQEI7Ivc0diTw7EBP8Db2iBBA1Ap~tplv-tiktokx-origin.image?dr=8593&refresh_token=bff7fcea&x-expires=1793631600&x-signature=CLUQRkt%2BRPDruXa2hG5pfBQ...",
        "ai_dynamic_cover": "https://p19-common-sign.tiktokcdn-us.com/tos-useast2a-p-0037-euttp/5ca833364b7646c4ac5d2d40ed956269_1707157985~tplv-tiktokx-origin.image?dr=8606&refresh_token=83182dad&x-expires=1793631600&x-signature=C2jc%2FJ38P%2BWQckd...",
        "origin_cover": "https://p16-common-sign.tiktokcdn-us.com/tos-useast2a-p-0037-euttp/dfab60c9c47d4d949d31ccc7ae9f8501_1707157985~tplv-tiktokx-shrink-aq:360:360:q75.webp?dr=11731&refresh_token=259059fb&x-expires=1793631600&x-signature=5D8L...",
        "duration": 15,
        "play": "https://v16m.tiktokcdn-us.com/73462a8573cd5bbf5aa16f7b27f6ffb9/6ae7ab79/video/tos/useast2a/tos-useast2a-ve-68c810-euttp/oYESeGQv2EXWgJllA4g8IUQCfnE2qBDPRD2RwF/?a=1233&bti=Ojs2NGYpQHM6OjZALjU2OmQvcCMxNDNg&&bt=2555&ft=H3YM...",
        "wmplay": "https://v16m.tiktokcdn-us.com/73462a8573cd5bbf5aa16f7b27f6ffb9/6ae7ab79/video/tos/useast2a/tos-useast2a-ve-68c810-euttp/oYESeGQv2EXWgJllA4g8IUQCfnE2qBDPRD2RwF/?a=1233&bti=Ojs2NGYpQHM6OjZALjU2OmQvcCMxNDNg&&bt=2555&ft=H3YM...",
        "size": 4913777,
        "wm_size": 0,
        "music": "https://sf16.tiktokcdn-us.com/obj/tos-alisg-ve-2774/oogSQgQME98D1WeddQXBazeYqrXytzFAeTCmFA",
        "music_info": {
          "id": "7055205517962004482",
          "title": "What You Won't Do for Love",
          "play": "https://sf16.tiktokcdn-us.com/obj/tos-alisg-ve-2774/oogSQgQME98D1WeddQXBazeYqrXytzFAeTCmFA",
          "cover": "https://p16-common.tiktokcdn-us.com/tos-alisg-v-2774/o4EQSVVsDG6Avg8Ce8LAASQIzFufAsXeaACQAX~tplv-tiktokx-cropcenter:720:720.jpeg?dr=9584&t=4d5b0474&ps=933b5bde&shp=08d74b56&shcp=d05b14bd&idc=useast8",
          "author": "Bobby Caldwell",
          "original": false,
          "duration": 60,
          "album": "What You Won't Do for Love",
          "create_time": 1642668073
        },
        "play_count": 482039997,
        "digg_count": 52656761,
        "comment_count": 706880,
        "share_count": 955321,
        "download_count": 22185,
        "collect_count": 5019806,
        "create_time": 1707157982,
        "anchors": [
          {
            "actions": [
              {
                "action_type": 1,
                "icon": {
                  "height": 720,
                  "uri": "tiktok-obj/28px_primary_create_onDark3x.png",
                  "url_list": [
                    "https://p16-common.tiktokcdn-us.com/tiktok-obj/28px_primary_create_onDark3x.png~tplv-tiktokx-origin.image?biz_tag=anchor.effect&dr=9580&idc=useast8&ps=933b5bde&shcp=34ff8df6&shp=d05b14bd&t=4d5b0474",
                    "https://p19-common.tiktokcdn-us.com/tiktok-obj/28px_primary_create_onDark3x.png~tplv-tiktokx-origin.image?biz_tag=anchor.effect&dr=9580&idc=useast8&ps=933b5bde&shcp=34ff8df6&shp=d05b14bd&t=4d5b0474"
                  ],
                  "url_prefix": null,
                  "width": 720
                },
                "schema": "shoot"
              }
            ],
            "anchor_strong": null,
            "component_key": "anchor_effect",
            "description": "Effects",
            "extra": "{\"effect_source\":1,\"is_commerce\":0,\"resource_id\":7272808536017474049}",
            "icon": {
              "height": 720,
              "uri": "tiktok-obj/20px_anchor_effect3x.png",
              "url_list": [
                "https://p16-common.tiktokcdn-us.com/tiktok-obj/20px_anchor_effect3x.png~tplv-tiktokx-origin.image?biz_tag=anchor.effect&dr=9580&idc=useast8&ps=933b5bde&shcp=34ff8df6&shp=d05b14bd&t=4d5b0474",
                "https://p19-common.tiktokcdn-us.com/tiktok-obj/20px_anchor_effect3x.png~tplv-tiktokx-origin.image?biz_tag=anchor.effect&dr=9580&idc=useast8&ps=933b5bde&shcp=34ff8df6&shp=d05b14bd&t=4d5b0474"
              ],
              "url_prefix": null,
              "width": 720
            },
            "id": "75062512",
            "keyword": "mustache + goatee",
            "log_extra": "{\"anchor_id\":\"75063345\",\"anchor_name\":\"mustache + goatee\",\"anchor_type\":\"prop\",\"has_friends_info\":\"0\"}",
            "thumbnail": {
              "height": 64,
              "uri": "ff74e6fbf86b6789d3b5356a37127f94",
              "url_list": [
                "https://lf16-effectcdn-us.tiktokcdn-us.com/obj/tiktok-loki-effect-oracle-tx/ff74e6fbf86b6789d3b5356a37127f94",
                "https://lf19-effectcdn-us.tiktokcdn-us.com/obj/tiktok-loki-effect-oracle-tx/ff74e6fbf86b6789d3b5356a37127f94"
              ],
              "url_prefix": null,
              "width": 64
            },
            "type": 28
          }
        ],
        "anchors_extras": "",
        "is_ad": false,
        "commerce_info": {
          "adv_promotable": false,
          "auction_ad_invited": false,
          "branded_content_type": 0,
          "is_diversion_ad": 0,
          "organic_log_extra": "{\"req_id\":\"20261101151313DDF5CD799BDF5B92AC61\"}",
          "with_comment_filter_words": false
        },
        "commercial_video_info": "",
        "item_comment_settings": 0,
        "mentioned_users": "",
        "author": {
          "id": "6562214517467398150",
          "unique_id": "pr4yforgabs",
          "nickname": "gabs",
          "avatar": "https://p19-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/395b773aac8948b144c158622774ee85~tplv-tiktokx-cropcenter:300:300.jpeg?dr=9638&refresh_token=dc3c293d&x-expires=1793631600&x-signature=ToemEje2vG7a8X5dBQG6%2BOY..."
        },
        "is_nff_or_nr": false,
        "is_top": 0
      },
      {
        "aweme_id": "v10025g50000cq7ptovog65s4l9457l0",
        "video_id": "7298305522623679752",
        "region": "GE",
        "title": "🤍🤍 #foryou #fyp #teacher #school #suprise #foryou.            @Daviti Lapia @NIAKO @3️⃣ @🎀         @BABIKO✨ @datuniap      @goginashvilivano @:)) @მარიამ გაბოძე @salii。◕‿◕。❤️ ",
        "content_desc": [],
        "cover": "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-p-0037/o0tBa7mQPqPDiBSngjQu5fEPFCAVeCj4TUFSEI~tplv-tiktokx-origin.image?dr=8593&refresh_token=c9b130b3&x-expires=1793631600&x-signature=ofQQVEsfjHK6UHToxGyH4vQm%2FPs%3D&...",
        "ai_dynamic_cover": "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-p-0037/8c59a8421b2c4aa49eef87d390e36cde_1720688361~tplv-tiktokx-origin.image?dr=8606&refresh_token=bc727a16&x-expires=1793631600&x-signature=zJrn6q85oGolZzvdLzf2onxLNxs%...",
        "origin_cover": "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-p-0037/9ba198bbe4444e9489459f22105062d5_1720688361~tplv-tiktokx-shrink-aq:360:360:q75.webp?dr=11731&refresh_token=b014cb1b&x-expires=1793631600&x-signature=JRix9X4GVvKk2...",
        "duration": 29,
        "play": "https://v16m.tiktokcdn-us.com/42f557175587e47ee03d89a031424143/6ae7ab87/video/tos/alisg/tos-alisg-pve-0037/o4wGCi8JzArwnnx8ABAMCqRRiQ9IoEfKuBVJPq/?a=1233&bti=Ojs2NGYpQHM6OjZALjU2OmQvcCMxNDNg&&bt=1869&ft=H3YMyvShQBKUxsurI...",
        "wmplay": "https://v16m.tiktokcdn-us.com/4a4834b35a39861b2dde6c40441b1153/6ae7ab87/video/tos/alisg/tos-alisg-ve-37c815-sg/o8CfrFMeHRz833YI8KmpgGHQARhXAENUDiAAe9/?a=1233&bti=Ojs2NGYpQHM6OjZALjU2OmQvcCMxNDNg&&bt=1929&ft=H3YMyvShQBKUx...",
        "size": 6996047,
        "wm_size": 7219949,
        "music": "https://sf19.tiktokcdn-us.com/obj/tiktok-obj/7670457892893412097.mp3",
        "music_info": {
          "id": "7298800894435412742",
          "title": "original sound - metropolesoficial",
          "play": "https://sf19.tiktokcdn-us.com/obj/tiktok-obj/7670457892893412097.mp3",
          "cover": "https://p19-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/9cd5e3d299591426ac369cf36bfc8ebb~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=9640&refresh_token=af1ad665&x-expires=1793631600&x-signature=3%2Bqr1IzN0%2BrcAGt59cr...",
          "author": "Metrópoles Oficial",
          "original": true,
          "duration": 29,
          "album": "",
          "create_time": 1699384516
        },
        "play_count": 404239046,
        "digg_count": 51156433,
        "comment_count": 210031,
        "share_count": 783091,
        "download_count": 326321,
        "collect_count": 3999134,
        "create_time": 1699269177,
        "anchors": null,
        "anchors_extras": "",
        "is_ad": false,
        "commerce_info": {
          "adv_promotable": false,
          "auction_ad_invited": false,
          "branded_content_type": 0,
          "is_diversion_ad": 0,
          "organic_log_extra": "{\"req_id\":\"20261101151313DDF5CD799BDF5B92AC61\"}",
          "with_comment_filter_words": false
        },
        "commercial_video_info": "",
        "item_comment_settings": 0,
        "mentioned_users": "7072025214167729154,6899451809129317378,7048569851320812546,7035535354140558342,6812569331823494150,6676773655315858438,7129818582913614853,6911560059478639622,6757232692981384198,6978495405349274629",
        "author": {
          "id": "6976560351085904898",
          "unique_id": "metrevelisalii",
          "nickname": "Salome",
          "avatar": "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/f30095f4181b5f29f0ac7fede2296168~tplv-tiktokx-cropcenter:300:300.jpeg?dr=9638&refresh_token=49268ce7&x-expires=1793631600&x-signature=djtaovzk08NYoSi5UvSWWsUZTj..."
        },
        "is_nff_or_nr": false,
        "is_top": 0
      }
    ],
    "cursor": 5,
    "hasMore": true
  }
}

Response Fields

Success (code === 0). Charged according to the endpoint credit rate.

FieldTypeSample / Notes
codeintegerExample: 0
providerstringExample: https://shortvidapi.com
statusstringExample: ok
msgstringExample: success
dataobject
videosarray of object
aweme_idstringExample: v0f044gc0000cn0ijh7og65r84nc68u0
video_idstringExample: 7332187682480590112
regionstringExample: HU
titlestringExample: #fy #foryou #strawberry #chocolate #chocolatecoveredstrawber
content_descarray of string
coverstringExample: https://p16-common-sign.tiktokcdn-us.com/tos-useast2a-p-0037
ai_dynamic_coverstringExample: https://p19-common-sign.tiktokcdn-us.com/tos-useast2a-p-0037
origin_coverstringExample: https://p16-common-sign.tiktokcdn-us.com/tos-useast2a-p-0037
durationintegerExample: 15
playstringExample: https://v16m.tiktokcdn-us.com/73462a8573cd5bbf5aa16f7b27f6ff
wmplaystringExample: https://v16m.tiktokcdn-us.com/73462a8573cd5bbf5aa16f7b27f6ff
sizeintegerExample: 4913777
wm_sizeintegerExample: 0
musicstringExample: https://sf16.tiktokcdn-us.com/obj/tos-alisg-ve-2774/oogSQgQM
music_infoobject
play_countintegerExample: 482039997
digg_countintegerExample: 52656761
comment_countintegerExample: 706880
share_countintegerExample: 955321
download_countintegerExample: 22185
collect_countintegerExample: 5019806
create_timeintegerExample: 1707157982
anchorsarray of object
anchors_extrasstringExample:
is_adbooleanExample: false
commerce_infoobject
commercial_video_infostringExample:
item_comment_settingsintegerExample: 0
mentioned_usersstringExample:
authorobject
is_nff_or_nrbooleanExample: false
is_topintegerExample: 0
cursorintegerExample: 5
hasMorebooleanExample: true

Status Codes

200
Success (code === 0). Charged according to the endpoint credit rate.
400
Invalid parameters, or API key placed in the URL query string (not charged).
401
Missing or invalid x-api-key header (not charged).
402
Insufficient credit balance (not charged).
403
Account disabled (not charged).
404
Unknown endpoint or disabled unstable endpoint (not charged).
405
Method not allowed — all /v1/* data endpoints use GET (not charged).
429
Rate limit exceeded (not charged). Respect the Retry-After header.
503
Temporary upstream or gateway error (not charged). Retry with exponential backoff.

Migrating from direct scraping and hitting HTTP 403 Forbidden or empty responses on www.tiktok.com? Read How to Fix TikTok HTTP Error 403 or compare quota limits in our TikTok API Quota & Cost Calculator.