# TikTok Music Details by URL or ID

> TikTok Music Details by URL or ID is a paid API for AI agents from x402.apidirect.io, paid per call via x402, $0.007/call, status unknown (last checked 2026-10-30).

Fetches metadata and details for a TikTok sound/music track given its URL or numeric music ID.

## Facts

- Endpoint: GET https://x402.apidirect.io/v1/tiktok/music?utm_source=zero.xyz
- Price: $0.007/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tiktok-music-details-by-url-or-id-5bb433cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jcVqZ2JST-_bxurkDAW8E

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability tiktok-music-details-by-url-or-id-5bb433cd
```

Example prompt: Can you look up the details for this TikTok sound — https://www.tiktok.com/music/Face-Off-7016547803243022337 — and tell me the title, artist, and any other info about it?

## When to prefer this

Use this endpoint when you have a specific TikTok music URL or numeric music ID and need structured metadata about that sound. Prefer this over a TikTok video endpoint when your primary goal is sound/music metadata rather than video content. Ideal for enriching datasets, auditing sounds for brand suitability, or identifying viral audio tracks.

## Known failure modes

- Invalid or malformed TikTok music URL returns an error
- Music ID that does not exist on TikTok returns a not-found error
- Neither url nor music_id provided causes a validation error
- Providing both url and music_id simultaneously is not allowed
- Private or deleted sounds may return no data or an error
- Rate limiting or payment failure results in a 402 response

## How this service works

Get a sound's details by music URL or numeric music ID.

## Output

Returns structured metadata for the TikTok sound, including the music title, numeric music ID, artist/creator name, and other available track details such as duration, cover image, and play URL.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "url": {
       "type": "string",
       "maxLength": 500,
       "description": "TikTok music URL, e.g. https://www.tiktok.com/music/Face-Off-7016547803243022337 (max 500 characters). Provide exactly one of url or music_id."
      },
      "music_id": {
       "type": "string",
       "description": "Numeric music ID: the number at the end of a music URL, also returned as music_id on every video. Provide exactly one of url or music_id."
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tiktok-music-details-by-url-or-id-5bb433cd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.apidirect.io](https://www.zero.xyz/host/x402.apidirect.io/llms.txt)
