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

podcast-index-api

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

podcast-index-api

JS lib for the Podcast Index API

  • 1.1.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
216
increased by36.71%
Maintainers
1
Weekly downloads
 
Created
Source

Podcast Index API Javascript library

A Podcast Index API library for Node.js

pipeline status coverage report Install size npm Downloads

Homepage | Source | npm

Installation

Install with npm

npm install podcast-index-api --save

Configuration

Sign up for API credentials here: https://api.podcastindex.org/

Description of API endpoints, arguments and returned data: https://podcastindex-org.github.io/docs-api/

Require the lib from your javascript file

const api = require('podcast-index-api')("YOUR_API_KEY_HERE", "YOUR_API_SECRET_HERE")

Usage

Using Async/Await

const results = await api.searchByTerm('Joe Rogan Experience')

Using Promise

api.searchByTerm('Joe Rogan Experience').then(results => { console.log(results) })

Functions

  • Custom
    • Use for endpoints that don't have a specific function or if the function doesn't accept an argument for a desired parameter.
      • custom(path: String, queries: Object)
  • Search
    • searchByTerm(q: String, val: String, clean: Boolean, fullText: Boolean)
    • searchEpisodesByPerson(q: String, fullText: Boolean)
  • Podcasts
    • podcastsByFeedUrl(feedUrl: String)
    • podcastsByFeedId(feedId: Number)
    • podcastsByFeedItunesId(itunesId: Number)
    • podcastsByTag()
    • podcastsTrending(max: Number, since: Number, lang: String, cat: String, notcat: String)
    • podcastsDead()
  • Episodes
    • episodesByFeedId(feedId: Number, since: Number, max: Number, fullText: Boolean)
    • episodesByFeedUrl(feedUrl: String, since: Number, max: Number, fullText: Boolean)
    • episodesByItunesId(itunesId: Number, since: Number, max: Number, fullText: Boolean)
    • episodesById(id: Number, fullText: Boolean)
    • episodesRandom(max: Number, lang: String, cat: String, notcat: String, fullText: Boolean)
  • Recent
    • recentFeeds(max: Number, since: Number, cat: String, lang: String, notcat: String)
    • recentEpisodes(max: Number, excludeString: String, before: Number, fullText: Boolean)
    • recentNewFeeds(max: Number, since: Number)
    • recentSoundbites(max: Number)
  • Value
    • valueByFeedUrl(feedUrl: String)
    • valueByFeedId(feedId: Number)
  • Stats
    • statsCurrent()
  • Categories
    • categoriesList()
  • Notify Hub
    • hubPubNotify(feedId: Number, update: Boolean)
  • Add
    • addByFeedUrl(feedUrl: String, chash: String, itunesId: Number)
    • addByItunesId(itunesId: Number)

Keywords

FAQs

Package last updated on 17 May 2021

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