Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spotify-artist-api

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spotify-artist-api

Get all info from a Artist from Spotify in one JSON

  • 1.0.0-beta.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by400%
Maintainers
1
Weekly downloads
 
Created
Source

Spotify Artist Scraper

With this scraper, you can get the top tracks, albums, and related artists of a Spotify artist with a single command.

All information is stored in a JSON file.

Installation

Add the api to your project:

npm i spotify-artist-api

Create a new app in your Spotify account to get the Client ID and Client Secret.

And add your Spotify Client ID and Client Secret to the System Variables!

CLIENT_ID=your_client_id
CLIENT_SECRET=your_client_secret

Usage

const getAllTracks = require('./index');

const allTracks = getAllTracks(<Artist ID>, 'NL')

console.log(allTracks);

Output:

{
  href: 'https://api.spotify.com/v1/artists/02Qk9K9AJwyQWcZ5BrSgd7/albums?offset=0&limit=20&include_groups=album,single,compilation,appears_on',
  items: [
    {
      album_group: 'single',
      album_type: 'single',
      artists: [Array],
      available_markets: [Array],
      external_urls: [Object],
      href: 'https://api.spotify.com/v1/albums/5idoCzo25wmEPm4zkzSi2H',
      id: '5idoCzo25wmEPm4zkzSi2H',
      images: [Array],
      name: 'Like Blood',
      release_date: '2022-07-17',
      release_date_precision: 'day',
      total_tracks: 1,
      type: 'album',
      uri: 'spotify:album:5idoCzo25wmEPm4zkzSi2H'
    }
  ],
  limit: 50,
  next: null,
  offset: 0,
  previous: null,
  total: 1
}

Keywords

FAQs

Package last updated on 21 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc