Docs / Platforms / Apple Music4 operations / 4 live / 0 mapped

Apple Music

Apple Music is exposed through 4 live operations covering posts, videos and catalog records, public profiles and creator metadata, search and discovery. The full reference is below; mapped routes are explicitly disabled and never charge credits.
Overview & use cases

What Apple Music data is for.

Live Apple Music capabilities, credit floor, and typical lookup workflows.

Use Apple Music when you need posts, videos and catalog records, public profiles and creator metadata, search and discovery without maintaining a separate adapter for each route. Start with the lowest-cost live operation, then add search or list endpoints only when the response shape fits your product.

Live

4

Paid only

0

Price floor

1 cr

Use cases

  • Get Apple Music album

    Call /v1/apple-music/album when you need a normalized get apple music album response with the same credit and cache rules as the rest of the catalog.

  • Get Apple Music artist

    Call /v1/apple-music/artist when you need a normalized get apple music artist response with the same credit and cache rules as the rest of the catalog.

  • Search Apple Music

    Call /v1/apple-music/search when you need a normalized search apple music response with the same credit and cache rules as the rest of the catalog.

Contract / auth

Auth & error contract.

The platform follows the same gateway and billing rules as the rest of CleanFetch.

Auth

Send x-api-key: cf_live_... or Authorization: Bearer cf_live_.... A missing or invalid key returns 401.

Billing

Successful lookups charge the listed credits. Cache hits, 5xx responses and mapped 503 routes cost 0 credits.

Limits

429 includes Retry-After and costs nothing. Paid-only routes return 403 plan_required before any provider call.

Mapped routes

Every route on this page is live.

Reference / 4

Operations

Live routes are expanded first with parameters, request example and response fields. Mapped routes are compact placeholders.

Live / 4

ready
GET

Get Apple Music album

/v1/apple-music/album
1 credits3/day free6h cache
NameTypeRequiredDescription
albumIdstringnoLookup parameter.
urlstringnoPublic page, post, profile or video URL.
Request
curl -s "https://api.cleanfetch.dev/v1/apple-music/album" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "data": {
    "platform": "apple-music",
    "count": 1,
    "items": [
      {
        "id": "123456",
        "url": "https://example.com/item/123456",
        "text": "Example public post returned by this endpoint.",
        "createdAt": "2026-11-30T00:00:00.000Z",
        "author": {
          "username": "nasa",
          "name": "NASA"
        }
      }
    ]
  },
  "meta": {
    "lookupStatus": "found",
    "creditsCharged": 1,
    "cached": false
  }
}

Returns

platformcountitems[].iditems[].urlitems[].textitems[].createdAt

Input notes

  • • Free accounts can call this endpoint up to 3 times per day.
  • • Responses are cached for 6h.
  • • A public record that does not exist returns not_found and is charged once.
GET

Get Apple Music artist

/v1/apple-music/artist
1 credits3/day free6h cache
NameTypeRequiredDescription
artistIdstringnoLookup parameter.
urlstringnoPublic page, post, profile or video URL.
Request
curl -s "https://api.cleanfetch.dev/v1/apple-music/artist" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "data": {
    "platform": "apple-music",
    "count": 1,
    "items": [
      {
        "id": "123456",
        "url": "https://example.com/item/123456",
        "text": "Example public post returned by this endpoint.",
        "createdAt": "2026-11-30T00:00:00.000Z",
        "author": {
          "username": "nasa",
          "name": "NASA"
        }
      }
    ]
  },
  "meta": {
    "lookupStatus": "found",
    "creditsCharged": 1,
    "cached": false
  }
}

Returns

platformcountitems[].iditems[].urlitems[].textitems[].createdAt

Input notes

  • • Free accounts can call this endpoint up to 3 times per day.
  • • Responses are cached for 6h.
  • • A public record that does not exist returns not_found and is charged once.
GET

Get Apple Music track

/v1/apple-music/track
1 credits3/day free6h cache
NameTypeRequiredDescription
trackIdstringnoLookup parameter.
urlstringnoPublic page, post, profile or video URL.
Request
curl -s "https://api.cleanfetch.dev/v1/apple-music/track" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "data": {
    "platform": "apple-music",
    "count": 1,
    "items": [
      {
        "id": "123456",
        "url": "https://example.com/item/123456",
        "text": "Example public post returned by this endpoint.",
        "createdAt": "2026-11-30T00:00:00.000Z",
        "author": {
          "username": "nasa",
          "name": "NASA"
        }
      }
    ]
  },
  "meta": {
    "lookupStatus": "found",
    "creditsCharged": 1,
    "cached": false
  }
}

Returns

platformcountitems[].iditems[].urlitems[].textitems[].createdAt

Input notes

  • • Free accounts can call this endpoint up to 3 times per day.
  • • Responses are cached for 6h.
  • • A public record that does not exist returns not_found and is charged once.
FAQ / Apple Music

Common Apple Music API questions

Pricing, caching, authentication, and placeholder behavior.
How many Apple Music operations are live?

4 of 4 cataloged operations are live. Every operation in this reference is live.

What does a Apple Music call cost?

Live operations range from 1 to 1 credits. 4 are available on the free daily cap and 0 are paid-only. Cache hits cost 0 credits.

Are Apple Music responses cached?

Successful responses are cached between 6h and 6h. A cache hit costs 0 credits and does not consume the free daily cap.

How do I authenticate Apple Music requests?

Send x-api-key or Authorization: Bearer with a CleanFetch key. Missing or invalid keys return 401; paid-only routes return 403 plan_required; rate limits return 429 with Retry-After. A 5xx or timeout costs 0 credits.

ready