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

itunes-search-api

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

itunes-search-api

iTunes Search API

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

itunes-search-api Build Status

iTunes Search API

Install

$ npm install --save itunes-search-api

Usage

const fs = require('fs');
const itunesSearchApi = require('itunes-search-api');

const opts = {
	query: {
		entity: 'musicArtist',
		limit: 1
	}
};

itunesSearchApi('deftones', opts).then(res => {
	console.log(res.body);
	//=> {resultCount: 1, results: [{...}]}
});

// Stream
itunesSearchApi.stream('deftones', opts).pipe(fs.createWriteStream('data.json'));

API

itunesSearchApi(input, [options])

input

Type: string

options
query

Type: object

CLI

$ npm install -g itunes-search-api
$ itunes-search-api --help

  Usage
    itunes-search-api <input>

  Options
    --country  Two-letter country code [Default: us]
    --entity  Type of results returned [Default: album]
    --limit  Number of results to return [Default: 25]

  Example
    $ itunes-search-api deftones
    {resultCount: 19, results: [{...}]}

License

MIT © Alex Cross

Keywords

FAQs

Package last updated on 25 Jun 2017

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