[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Apple Music catalog search results](https://spiral.ai/integrations/opencode/apple-music-catalog-search-results)

# How to Use Apple Music catalog search results in opencode

Returns public Apple Music search matches for songs, artists, albums, playlists, and other music content. Use it to discover catalog entries by name; the documented song results include IDs, titles, artist names, links, and durations.

|  |  |
| --- | --- |
| Model | Apple Music catalog search results |
| Available through | ScrapeCreators |
| Category | Social Media |
| Price | $0.0013 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Apple Music catalog search results in opencode

- Use Apple Music catalog search results to search for Radiohead No Surprises, then add the returned song candidates to our project's review screen with their IDs, titles, artists, links, and durations.
- Use Apple Music catalog search results to search for Blue Moon as songs and build a comparison table in the project showing each returned title, artist, and duration.
- Use Apple Music catalog search results to find Daft Punk songs and add a filter to our existing results component for returned tracks shorter than four minutes.
- Use Apple Music catalog search results to find Kendrick Lamar albums and populate our existing catalog review page with the returned matches.
- Use Apple Music catalog search results to find jazz piano playlists and display the returned matches in our project's playlist review view.

## How to set up Apple Music catalog search results in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Apple Music catalog search results**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "scrapecreators",
    "model": "scrapecreators/apple-music-search",
    "input": {
      "query": "taylor swift"
    }
  }'
```

Then paste one of the prompts above: opencode finds Apple Music catalog search results on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Apple Music catalog search results tools and prices

- [Apple Music · Search](https://spiral.ai/tools/scrapecreators/scrapecreators/apple-music-search) (ScrapeCreators): Up to $0.0013 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| type |  | — | Result type to return. Use all, song, album, artist, playlist, station, music_video, or radio_episode. |

## What can you do with Apple Music catalog search results in opencode?

Build a song matching feature that turns artist and title text into reviewable Apple Music links. A coding agent can work with returned song IDs, artist names, and durations to help resolve ambiguous matches.

### Match a music reference to a catalog entry

Search a song title together with its artist, then compare returned titles, artist names, and durations to select the intended Apple Music link.

### Prepare links for a music article

Find Apple Music entries for the artists, albums, and songs mentioned in a draft. Build a review list of matching catalog results before adding links.

### Compare recordings with the same title

Search a title such as Blue Moon and compare the returned song titles, artists, and durations to distinguish candidate recordings.

### Find playlists for a listening brief

Search for public playlists around a term such as jazz piano or workout. Use the matches as candidates for a human listening review.

### Locate music videos

Search for music videos associated with a public artist such as Beyoncé. Collect the returned matches for an editorial viewing shortlist.

### Build a shortlist by song length

Search for songs by an artist such as Daft Punk and filter the returned matches by duration. Keep the selection limited to the results actually returned.

### Review changes in search matches

Where authorized under Apple's terms, repeat a fixed artist or title search and compare returned catalog IDs. Report additions to the search results without labeling them newly released music.

## Overview

- [ScrapeCreators](https://spiral.ai/providers/scrapecreators)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Apple Music catalog search results in other agents

- [Amp](https://spiral.ai/integrations/amp/apple-music-catalog-search-results)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/apple-music-catalog-search-results)
- [Claude](https://spiral.ai/integrations/claude-desktop/apple-music-catalog-search-results)
- [Claude Code](https://spiral.ai/integrations/claude-code/apple-music-catalog-search-results)
- [Cline](https://spiral.ai/integrations/cline/apple-music-catalog-search-results)
- [Codex](https://spiral.ai/integrations/codex/apple-music-catalog-search-results)
- [Cursor](https://spiral.ai/integrations/cursor/apple-music-catalog-search-results)
- [Devin](https://spiral.ai/integrations/devin/apple-music-catalog-search-results)
- [dots](https://spiral.ai/integrations/dots/apple-music-catalog-search-results)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/apple-music-catalog-search-results)
- [Gemini](https://spiral.ai/integrations/gemini/apple-music-catalog-search-results)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/apple-music-catalog-search-results)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/apple-music-catalog-search-results)
- [goose](https://spiral.ai/integrations/goose/apple-music-catalog-search-results)
- [Grok](https://spiral.ai/integrations/grok/apple-music-catalog-search-results)
- [Grok Build](https://spiral.ai/integrations/grok-build/apple-music-catalog-search-results)
- [Hermes](https://spiral.ai/integrations/hermes/apple-music-catalog-search-results)
- [Instinct](https://spiral.ai/integrations/instinct/apple-music-catalog-search-results)
- [Manus](https://spiral.ai/integrations/manus/apple-music-catalog-search-results)
- [Muse](https://spiral.ai/integrations/muse/apple-music-catalog-search-results)
- [Muse Code](https://spiral.ai/integrations/muse-code/apple-music-catalog-search-results)
- [n8n](https://spiral.ai/integrations/n8n/apple-music-catalog-search-results)
- [Notion](https://spiral.ai/integrations/notion/apple-music-catalog-search-results)
- [OpenClaw](https://spiral.ai/integrations/openclaw/apple-music-catalog-search-results)
- [Perplexity](https://spiral.ai/integrations/perplexity/apple-music-catalog-search-results)
- [Raycast](https://spiral.ai/integrations/raycast/apple-music-catalog-search-results)
- [VS Code](https://spiral.ai/integrations/vscode/apple-music-catalog-search-results)
- [Windsurf](https://spiral.ai/integrations/windsurf/apple-music-catalog-search-results)
- [Zapier](https://spiral.ai/integrations/zapier/apple-music-catalog-search-results)

## More opencode guides

- [Apple Music artist profile](https://spiral.ai/integrations/opencode/apple-music-artist-profile)
- [Apple Music song details](https://spiral.ai/integrations/opencode/apple-music-song-details)
- [Apple Music album details](https://spiral.ai/integrations/opencode/apple-music-album-details)
- [Bilibili creator profile](https://spiral.ai/integrations/opencode/bilibili-creator-profile)
- [Upspring similar advertiser discovery](https://spiral.ai/integrations/opencode/upspring-similar-advertiser-discovery)
- [Bilibili creator search](https://spiral.ai/integrations/opencode/bilibili-creator-search)

## Questions about Apple Music catalog search results in opencode

**Can opencode use Apple Music catalog search results?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Apple Music catalog search results like any built-in tool.

**How much does Apple Music catalog search results cost in opencode?**

$0.0013 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need a ScrapeCreators account to use Apple Music catalog search results in opencode?**

No. Spiral runs Apple Music catalog search results on its own ScrapeCreators account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Apple Music catalog search results in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while Apple Music catalog search results runs?**

Apple Music catalog search results runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**What information comes back for a song?**

The documented example includes the song's ID, title, artist name, Apple Music link, content kind, and duration in milliseconds. It shows a duration of 226000 milliseconds, or 3 minutes 46 seconds.

**How fresh are Apple Music search results?**

ScrapeCreators says it fetches the latest available Apple Music information when you make a request. That describes retrieval freshness, rather than a guaranteed delay between a catalog change and its appearance in search.

**Can this search access someone's private music library?**

ScrapeCreators documents public data extraction only. This search is for public Apple Music catalog content, so private libraries and listening histories fall outside that coverage.

**Does an Apple Music result establish worldwide availability?**

No. Apple says its web services and features vary by country or region, so a search match does not establish availability everywhere.

**Are Apple Music search matches guaranteed to be accurate?**

ScrapeCreators explicitly disclaims guarantees of data accuracy and availability. For song matching, compare the returned title, artist name, and duration before accepting a result.

