---
title: "Get popular songs"
method: GET
path: "/v1/scrape/tiktok/music/popular"
tags: ["tiktok"]
---

# Get popular songs

`GET /v1/scrape/tiktok/music/popular`

## Request

- Base URL: `https://api.sociavault.com`
- URL: `https://api.sociavault.com/v1/scrape/tiktok/music/popular`
- Auth: API key in header `X-API-Key`

Get trending songs from TikTok's Creative Center. Note: this endpoint can take up to 30 seconds to respond.

## Query parameters

- `page` integer
- `timePeriod` '7' | '30' | '130'
- `rankType` 'popular' | 'surging'
- `newOnBoard` boolean
- `commercialMusic` boolean
- `countryCode` 'AR' | 'AU' | 'AT' | 'BH' | 'BD' | 'BY' | 'BE' | 'BR' | 'BG' | 'KH' | 'CA' | 'CL' | 'CO' | 'HR' | 'CZ' | 'DK' | 'EG' | 'EE' | 'FI' | 'FR' | 'DE' | 'GR' | 'HU' | 'IS' | 'ID' | 'IQ' | 'IE' | 'IL' | 'IT' | 'JP' | 'JO' | 'KZ' | 'KW' | 'LV' | 'LB' | 'LT' | 'LU' | 'MO' | 'MY' | 'MX' | 'MA' | 'MM' | 'NL' | 'NZ' | 'NG' | 'NO' | 'OM' | 'PK' | 'PE' | 'PH' | 'PL' | 'PT' | 'QA' | 'RO' | 'SA' | 'SG' | 'SK' | 'ZA' | 'KR' | 'ES' | 'SE' | 'CH' | 'TW' | 'TH' | 'TR' | 'UA' | 'AE' | 'GB' | 'US' | 'UZ' | 'VN'

## Response `200`

Successful response

## Other responses

- `400`: Bad Request - Invalid parameters or missing required fields
- `401`: Unauthorized - Invalid or missing API key
- `402`: Payment Required - Insufficient credits
- `500`: Internal Server Error - Service configuration or processing error

---

[API](https://skmtc.dev/sociavault/apis/sociavault-api.md) · [All operations](https://skmtc.dev/sociavault/apis/sociavault-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sociavault/apis/sociavault-api/revisions/0a430c97f53a?raw)
