Spotify Music Knowledge Graph Scraper avatar

Spotify Music Knowledge Graph Scraper

Pricing

from $2.99 / 1,000 music knowledge graphs

Go to Apify Store
Spotify Music Knowledge Graph Scraper

Spotify Music Knowledge Graph Scraper

Build a transparent one-hop provenance graph from a public Spotify artist, track, album, or playlist page.

Pricing

from $2.99 / 1,000 music knowledge graphs

Rating

0.0

(0)

Developer

w3crawler

w3crawler

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

15 days ago

Last modified

Categories

Features

Limited permissions

Share

Build a bounded public-page evidence graph from a Spotify seed entity. The Actor records entity nodes, one rendered-page evidence node per visited page, and directional edges for links that are visibly present. It does not call a similarity API or invent relationships: every edge either points to a link rendered on the page or connects a page to its evidence node.

Get started

  1. Open the Actor Store page and select Try for free or open the Input tab.
  2. Enter a public Spotify artist, track, album, or playlist URL, or a 22-character ID, in seedUrl.
  3. Set seedType only when seedUrl is a bare ID; use depth: 1 for a one-hop graph and 2 for a small second-hop sample.
  4. Start the Actor, open the dataset, and export the saved nodes and edges as JSON, CSV, or Excel. Open Run summary (OUTPUT_SUMMARY) to check the outcome and counts.

Input

seedUrl is required. Unsupported field names and out-of-range values are rejected before requests start.

FieldTypeRequired?DefaultMeaning
seedUrlstringRequiredNot suppliedPublic Spotify artist, track, album, or playlist URL, or a 22-character ID.
seedTypestring enumOptionalartistEntity type for a bare ID only; URLs determine their own type. Allowed: artist, track, album, playlist.
depthintegerOptional1Bounded public-link traversal, 1–2. Depth 2 visits only a small set of stable links observed on the seed page.
marketstringOptionalUSTwo-letter market context recorded in graph rows. The public page is not market-forced.
timeoutSecsintegerOptional30Maximum seconds for each public page request, 5–60.
maxResponseBytesintegerOptional2000000Safety limit for each downloaded public page, 100000–5000000 bytes.

Full default input (supply seedUrl before running):

{
"seedType": "artist",
"depth": 1,
"market": "US",
"timeoutSecs": 30,
"maxResponseBytes": 2000000
}

The Actor reads anonymous, public Spotify entity pages. It does not log in, call the official Web API or a similarity service, capture tokens, download audio, solve CAPTCHAs, or synthesize edges.

Output

The dataset contains node and edge rows. Optional values are omitted rather than inferred, and no diagnostic or placeholder rows are written.

FieldTypeAvailabilityMeaning
recordIdstringAlwaysStable key for the node or edge record.
recordTypestringAlwaysnode or edge.
sourceUrlstringAlwaysPublic page that exposed the node or edge. Observed field not declared in dataset_schema.json.
scrapedAtstringAlwaysTime the record was saved, in ISO UTC.
depthintegerAlwaysTraversal depth: 0 for the seed entity, 1 for direct neighbors/evidence, 2 for second-hop records.
marketstringAlwaysRequested market context; the public page is not market-forced.
visibleLinkCountintegerAlwaysUnique visible links observed on the source page. Observed field not declared in dataset_schema.json.
nodeIdstringNode rowsNode key in the form <type>:<id>, or the generated evidence-node key.
entityTypestringNode rowsartist, track, album, playlist, or publicRenderedPageEvidence.
entityIdstringNode rowsPublic entity ID, or the generated evidence identifier.
namestringNode rowsEntity name, or the fixed evidence-node label.
spotifyUrlstringNode rowsPublic entity URL, or the page URL for an evidence node.
descriptionstringNode rows when og:description is exposedPublic page description. It was not present in the saved run.
releaseDatestringNode rows when the page exposes itPublic release date metadata. It was not present in the saved run.
imageUrlstringNode rows when og:image is exposedArtwork URL. It was not present in the saved entity nodes.
observedFromIdstringNeighbor node rowsPage node that exposed the link. The seed node has no parent.
edgeIdstringEdge rowsStable edge key, including the relationship.
fromIdstringEdge rowsSource node ID.
toIdstringEdge rowsTarget node ID.
relationshipstringEdge rowsvisible_link for a rendered entity link, or supported_by for the generated page-evidence edge.

Full JSON output

The examples below are real saved rows from the 2026-10-25 verification run: one entity node and one visible-link edge.

{
"recordId": "spotify_graph_node_track_3C0nOe05EIt1390bVABLyN",
"recordType": "node",
"sourceUrl": "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg",
"scrapedAt": "2026-10-25T20:54:19.327Z",
"depth": 1,
"market": "US",
"visibleLinkCount": 40,
"nodeId": "track:3C0nOe05EIt1390bVABLyN",
"entityType": "track",
"entityId": "3C0nOe05EIt1390bVABLyN",
"name": "On The Floor",
"spotifyUrl": "https://open.spotify.com/track/3C0nOe05EIt1390bVABLyN",
"observedFromId": "artist:0TnOYISbd1XYRBk9myaseg"
}
{
"recordId": "spotify_graph_edge_artist_0TnOYISbd1XYRBk9myaseg_track_3C0nOe05EIt1390bVABLyN",
"recordType": "edge",
"sourceUrl": "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg",
"scrapedAt": "2026-10-25T20:54:19.327Z",
"depth": 1,
"market": "US",
"visibleLinkCount": 40,
"edgeId": "artist:0TnOYISbd1XYRBk9myaseg->visible_link->track:3C0nOe05EIt1390bVABLyN",
"fromId": "artist:0TnOYISbd1XYRBk9myaseg",
"toId": "track:3C0nOe05EIt1390bVABLyN",
"relationship": "visible_link"
}

Run summary

Run summary is stored in the run's key-value store under OUTPUT_SUMMARY; the same object is also written to OUTPUT. It reports graph scope, visited entities, and node/edge counts.

FieldMeaning
recordTypeAlways runSummary.
statusActor outcome: SUCCEEDED or FAILED.
seedIdSeed entity ID.
seedTypeSeed entity type.
requestedDepthRequested traversal depth.
maxSecondHopNeighborsMaximum first-hop neighbors visited at depth 2; fixed at 8.
marketMarket context recorded for the run.
graphModeFixed value bounded_public_rendered_links_and_provenance.
relationshipScopeOne-hop or bounded depth-2 scope recorded for the run.
visitedEntityCountVisited entity nodes, excluding generated evidence nodes.
nodeRecordCountAll node rows, including evidence nodes.
edgeRecordCountAll edge rows, including supported_by evidence edges.
visibleLinkEdgeCountEdge rows with relationship: "visible_link".
recordsStoredNode and edge rows saved to the dataset.
errorRecordCountPage or extraction failures recorded.
startedAtRun start time, in ISO UTC.
completedAtTime the summary was written, in ISO UTC.
durationMsRun duration in milliseconds.
runStatusCanonical run status; matches status.
dataStatusCompleteness of saved rows: COMPLETE, PARTIAL, NO_RESULTS, or FAILED.
failureCountOperational failures and failed dataset writes.
outputWriteFailureCountSummary or optional key-value writes that failed.
StatusData statusMeaning
SUCCEEDEDCOMPLETEThe graph was saved without an extraction problem.
SUCCEEDEDPARTIALAt least one row was saved, but a later page or output write failed. Saved rows remain available.
SUCCEEDEDNO_RESULTSThe run completed cleanly without a usable graph.
FAILEDFAILEDThe run failed before any usable row was saved.

Example OUTPUT_SUMMARY from the saved run (also written to OUTPUT):

{
"recordType": "runSummary",
"status": "SUCCEEDED",
"seedId": "0TnOYISbd1XYRBk9myaseg",
"seedType": "artist",
"requestedDepth": 1,
"maxSecondHopNeighbors": 8,
"market": "US",
"graphMode": "bounded_public_rendered_links_and_provenance",
"relationshipScope": "one_hop_visible_public_links_and_evidence",
"visitedEntityCount": 41,
"nodeRecordCount": 42,
"edgeRecordCount": 41,
"visibleLinkEdgeCount": 40,
"recordsStored": 83,
"errorRecordCount": 0,
"startedAt": "2026-10-25T20:54:09.933Z",
"completedAt": "2026-10-25T20:54:19.806Z",
"durationMs": 9873,
"runStatus": "SUCCEEDED",
"dataStatus": "COMPLETE",
"failureCount": 0,
"outputWriteFailureCount": 0
}

Coverage and limitations

This is an evidence graph, not Spotify's private relatedness graph. A visible_link edge means the target link appeared on the source page during a bounded scroll pass; it does not prove musical similarity, influence, or endorsement. Every visited page also produces one publicRenderedPageEvidence node and one supported_by edge, which is why nodeRecordCount and edgeRecordCount are larger than visitedEntityCount and visibleLinkEdgeCount.

At depth: 1, only the seed page and its visible links are read. At depth: 2, the Actor visits at most eight first-hop entity nodes and records their visible links; it does not recurse further. A page contributes at most 40 unique neighbor links to the graph, duplicates are merged by record ID, and visibleLinkCount describes the source page rather than the row's target. Descriptions, release dates, artwork, and listener data are page-dependent and may be absent. Failed pages are counted in the summary and logged, never synthesized into edges.

Usage and support

Apify compute and storage costs vary with browser time, scroll passes, and the number of visited pages; depth 2 is substantially heavier because it opens up to eight additional entity pages. Start with depth: 1, inspect the node and edge counts, then use depth 2 only for a focused seed. See the Actor's Pricing tab for current account rates.

Use the Actor Issues page to report a problem. Include the run ID, the input used, and the OUTPUT_SUMMARY; do not include tokens, cookies, or private data. This Actor is an independent community tool and is not affiliated with, endorsed by, or sponsored by Spotify. Use it only for public data and in accordance with Spotify's terms, robots guidance, and applicable law.