
Research
/Security News
60 Malicious Ruby Gems Used in Targeted Credential Theft Campaign
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
itunes-store-api
Advanced tools
💿 Query Apple store catalogs using the iTunes Search API.
itunes-store-api
is a typed iTunes Search API client which adds support for looking items up from their store URLs.
import { search, lookup } from "https://cdn.skypack.dev/itunes-store-api"
yarn add itunes-store-api
npm install itunes-store-api
search
Import search
.
import { search } from "itunes-store-api"
Invoke it asynchronously and access results in return.
const { results } = await search("M83")
// results: [Result, Result, Result…]
lookup
Import lookup
.
import { lookup } from "itunes-store-api"
Invoke it asynchronously using a lookup type ("id"
, "isbn"
, "upc"
, "url"
, "amgAlbumId"
, "amgArtistId"
or "amgVideoId"
) and access a result in return.
const { results } = await lookup("id", 1007596731)
// results: [Result]
"url"
A variety of store catalog URLs are supported when using the "url"
lookup type.
Both search
and lookup
support a trailing options
argument.
country
A two-letter country code where the queried store catalog will be from. Defaults to "us"
.
await lookup("id", 1491051628, { country: "fr" })
limit
Limit the number of results. Defaults to 50
.
await search("C418", { limit: 10 })
sort
Whether to sort results by popularity ("popular"
) or recentness ("recent"
). Defaults to "popular"
.
await search("Twitter", { sort: "popular" })
media
The media type to search for—see Table 2-1. Defaults to "all"
.
await search("Lost in Translation", { media: "movie" })
entity
The type of results returned, relative to the specified media type—see Table 2-1.
const album = await lookup("id", 1007596648)
const songs = await lookup("id", 1007596648, { entity: "song" })
// album: { results: [ResultAlbum] }
// songs: { results: [ResultMusicTrack, ResultMusicTrack, ResultMusicTrack…] }
attribute
Which attribute to search for, relative to the specified media type—see Table 2-2.
await search("Greta Gerwig", { entity: "movieArtist", attribute: "actorTerm" })
explicit
Whether to include explicit content. Defaults to true
.
await search("My Beautiful Dark Twisted Fantasy", { explicit: true })
FAQs
Query Apple store catalogs using the iTunes Search API.
We found that itunes-store-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.