{"id":26656937,"url":"https://github.com/codedbycurtis/soundcloud_explode_dart","last_synced_at":"2026-03-07T00:33:20.309Z","repository":{"id":208151589,"uuid":"720635451","full_name":"codedbycurtis/soundcloud_explode_dart","owner":"codedbycurtis","description":"Scrape metadata about users, tracks, playlists, and albums from SoundCloud.","archived":false,"fork":false,"pushed_at":"2025-03-25T23:36:06.000Z","size":86,"stargazers_count":4,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-02T18:43:45.661Z","etag":null,"topics":["dart","flutter","playlists","soundcloud","soundcloud-api","tracks"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codedbycurtis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-11-19T04:52:08.000Z","updated_at":"2025-05-20T02:04:55.000Z","dependencies_parsed_at":"2025-03-25T01:21:50.272Z","dependency_job_id":"37385135-cbe9-4a3e-bcb1-cf922156d83d","html_url":"https://github.com/codedbycurtis/soundcloud_explode_dart","commit_stats":null,"previous_names":["codedbycurtis/soundcloud_explode_dart"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/codedbycurtis/soundcloud_explode_dart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedbycurtis%2Fsoundcloud_explode_dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedbycurtis%2Fsoundcloud_explode_dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedbycurtis%2Fsoundcloud_explode_dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedbycurtis%2Fsoundcloud_explode_dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codedbycurtis","download_url":"https://codeload.github.com/codedbycurtis/soundcloud_explode_dart/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedbycurtis%2Fsoundcloud_explode_dart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30204154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","flutter","playlists","soundcloud","soundcloud-api","tracks"],"created_at":"2025-03-25T08:16:01.666Z","updated_at":"2026-03-07T00:33:20.267Z","avatar_url":"https://github.com/codedbycurtis.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SoundcloudExplodeDart\n\nSoundcloudExplodeDart utilises SoundCloud's internal V2 API to scrape metadata about users, tracks, playlists, and albums, without requiring an account, API key, or rate-limiting.\n\nThis API was **not** intended to be an exhaustive map of all SoundCloud endpoints, but I will be accepting feature requests, so feel free to suggest any functionality you would like to see by opening a new issue.\n\n\u003e This project takes inspiration from jerry08's [SoundCloudExplode](https://github.com/jerry08/SoundCloudExplode) library for C#.\n\n## Usage\n\n### Searching\n\nSearch for users, tracks, playlists, or albums, and apply specific search filters to each query:\n\n```dart\nimport 'dart:async';\nimport 'soundcloud_explode_dart/soundcloud_explode_dart.dart';\n\nfinal client = SoundcloudClient();\n\n// Most functions return a stream of results in the form of Stream\u003cIterable\u003cE\u003e\u003e.\n// The number of results returned in each Iterable\u003cE\u003e, as well as\n// the result offset and search filter are optional parameters.\nfinal stream = client.search(\n    'Haddaway - What Is Love',\n    searchFilter: SearchFilter.tracks,\n    offset: 0,\n    limit: 50\n);\nfinal streamIterator = StreamIterator(stream);\n\nwhile (await streamIterator.moveNext()) {\n    for (final result in streamIterator.current) {\n        // Use pattern matching for mixed streams\n        switch (result) {\n            case final UserSearchResult user:\n            break;\n\n            case final TrackSearchResult track:\n            break;\n\n            case final PlaylistSearchResult playlist:\n            break;\n        }\n    }\n}\n```\n\nAlternatively, use one of the specialised functions, such as `getUsers(...)`, `getTracks(...)`, etc., which casts each item in the returned `Iterable\u003cE\u003e` to the specified type.\n\n### Querying users\n\nRetrieve metadata about specific users:\n\n```dart\nimport 'soundcloud_explode_dart/soundcloud_explode_dart.dart';\n\nfinal client = SoundcloudClient();\n\n// Users can be retrieved via URL...\nfinal user1 = await client.users.getByUrl('https://www.soundcloud.com/a-user');\n\n// ...or via their user ID.\nfinal user2 = await client.users.get(123456789);\n\n// Get the tracks/playlists/albums a specific user has uploaded...\nfinal trackStream = client.users.getTracks(user1.id);\nfinal playlistStream = client.users.getPlaylists(user1.id);\nfinal albumStream = client.users.getAlbums(user1.id);\n```\n\n### Querying tracks and streams\n\nMetadata about specific tracks can also be retrieved:\n\n```dart\nimport 'soundcloud_explode_dart/soundcloud_explode_dart.dart';\n\nfinal client = SoundcloudClient();\n\n// Tracks can also be retrieved via URL...\nfinal track1 = await client.tracks.getByUrl('https://www.soundcloud.com/a-user/a-track');\n\n// ...or via their track ID.\nfinal track2 = await client.tracks.get(123456789);\n```\n\nIn order to play a track, you need to resolve the streams available for it:\n\n```dart\nimport 'soundcloud_explode_dart/soundcloud_explode_dart.dart';\nimport 'some_audio_player/some_audio_player.dart';\n\nfinal client = SoundcloudClient();\nfinal audioPlayer = SomeAudioPlayer();\n\nfinal track = await client.tracks.getByUrl('https://www.soundcloud.com/a-user/a-track');\n\nfinal streams = await client.tracks.getStreams(track.id);\nfinal stream = streams.firstWhere((s) =\u003e s.container == Container.mp3);\n\nawait audioPlayer.play(stream.url);\n```\n\n\u003e Note: some tracks only provide a 30 second snippet and cannot be played in their entirety; those that require a SoundCloud Go subscription are one such example.\n\u003e\n\u003e To determine whether or not a track is fully playable:\n\u003e\n\u003e ```dart\n\u003e if (track.duration == track.fullDuration) {\n\u003e    // Track can be played until completion.\n\u003e    ...\n\u003e }\n\u003e ```\n\n### Querying playlists/albums\n\nTo retrieve metadata about a specific playlist:\n\n```dart\nimport 'soundcloud_explode_dart/soundcloud_explode_dart.dart';\n\nfinal client = SoundcloudClient();\n\n// Playlists can be retrieved via URL...\nfinal playlist1 = await client.playlists.getByUrl('https://www.soundcloud.com/a-user/sets/a-playlist');\n\n// ...or via their playlist ID.\nfinal playlist2 = await client.playlists.get(123456789);\n\n// Playlists and albums are effectively synonymous on SoundCloud,\n// with only a boolean property differentiating the two.\nfinal isAlbum = playlist1.isAlbum;\n\n// Get the tracks contained within a playlist...\nfinal tracks = client.playlists.getTracks(playlist1.id);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedbycurtis%2Fsoundcloud_explode_dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodedbycurtis%2Fsoundcloud_explode_dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedbycurtis%2Fsoundcloud_explode_dart/lists"}