{"id":49406,"library":"soundcloud-key-fetch","title":"soundcloud-key-fetch","description":"Scrapes a SoundCloud API key from the SoundCloud website without requiring a developer account or app registration. v1.0.13, released sporadically, no semver tracking. Key differentiator: no dependencies, works out-of-the-box. However, scraping mechanism is fragile and may break if SoundCloud changes their site structure. Alternative: official SoundCloud API registration.","status":"active","version":"1.0.13","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","soundcloud","soundcloud api","soundcloud api key","soundcloud key","soundcloud token","soundcloud api token"],"install":[{"cmd":"npm install soundcloud-key-fetch","lang":"bash","label":"npm"},{"cmd":"yarn add soundcloud-key-fetch","lang":"bash","label":"yarn"},{"cmd":"pnpm add soundcloud-key-fetch","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM and CommonJS both supported. The package exports a single object with fetchKey and testKey methods.","wrong":"const sckey = require('soundcloud-key-fetch')","symbol":"default export (module object)","correct":"import sckey from 'soundcloud-key-fetch'"},{"note":"Named export available. Note that the package's default export is the module itself, so named import works.","wrong":"import { fetchKey } from 'soundcloud-key-fetch'","symbol":"fetchKey","correct":"import { fetchKey } from 'soundcloud-key-fetch'"},{"note":"Named export. Both fetchKey and testKey return Promises.","wrong":"import { testKey } from 'soundcloud-key-fetch'","symbol":"testKey","correct":"import { testKey } from 'soundcloud-key-fetch'"},{"note":"CommonJS require is supported. No wrong pattern for require.","wrong":null,"symbol":"module (default)","correct":"const sckey = require('soundcloud-key-fetch')"}],"quickstart":{"code":"import sckey from 'soundcloud-key-fetch';\n\nasync function main() {\n  try {\n    const key = await sckey.fetchKey();\n    console.log('Fetched key:', key);\n    const isValid = await sckey.testKey(key);\n    console.log('Key valid:', isValid);\n  } catch (err) {\n    console.error('Error:', err.message);\n  }\n}\n\nmain();","lang":"javascript","description":"Fetches a SoundCloud API key, tests its validity, and logs results. Demonstrates both async/await usage and error handling."},"warnings":[{"fix":"Use official SoundCloud API registration if elevated access is required.","message":"The fetched key has no special privileges (e.g., SoundCloud GO access). It provides the same access as an anonymous user.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"No fix; monitor package updates or use official API.","message":"Scraping method is fragile and may break if SoundCloud changes their web page structure.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Consider using official SoundCloud API and obtaining a key legally.","message":"The package may violate SoundCloud's Terms of Service. Use at your own risk.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'account':18 'altern':52 'api':8,55,60,62,69 'app':20 'box':37 'break':45 'chang':48 'depend':31 'develop':17 'differenti':29 'fetch':4 'fragil':42 'howev':38 'javascript':57 'key':3,9,28,63,65 'may':44 'mechan':40 'offici':53 'out-of-the-box':33 'registr':21,56 'releas':23 'requir':15 'scrape':5,39 'semver':26 'site':50 'soundcloud':2,7,12,47,54,58,59,61,64,66,68 'soundcloud-key-fetch':1 'sporad':24 'structur':51 'token':67,70 'track':27 'v1.0.13':22 'websit':13 'without':14 'work':32","created_at":"2026-06-07T17:01:37.086287+00:00","updated_at":"2026-06-07T17:01:37.086287+00:00","problems":[{"fix":"Retry later or check if the package has been updated to handle site changes.","cause":"SoundCloud may have blocked scraping or the key is invalid.","error":"Error: Request failed with status code 403"},{"fix":"Ensure proper import: const sckey = require('soundcloud-key-fetch') for CJS or import sckey from 'soundcloud-key-fetch' for ESM.","cause":"Incorrect import (e.g., import sckey from 'soundcloud-key-fetch' without default import or using wrong module system).","error":"TypeError: sckey.fetchKey is not a function"},{"fix":"Use default import: import sckey from 'soundcloud-key-fetch' then sckey.fetchKey().","cause":"Using named import incorrectly or the package failed to load.","error":"fetchKey is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://gitlab.com/sylviiu/soundcloud-key-fetch#readme","github":null,"docs":null,"changelog":null,"pypi":null,"npm":"soundcloud-key-fetch","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}