Exports and object of Apple Podcasts Connect categories.
$ npm install podcast-categories
const podcastCategories = require('podcast-categories')
const get = require('lodash.get')
function isValidCategory(category, subcategory) {
return !!get(podcastCategories, `${category}.${subcategory}`)
}
Literally exports an object of all valid Apple podcast categories.
// https://help.apple.com/itc/podcasts_connect/?lang=en#/itc9267a2f12
module.exports = {
Arts: {
Books: true,
Design: true,
'Fashion & Beauty': true,
Food: true,
'Performing Arts': true,
'Visual Arts': true
},
Business: {
Careers: true,
Entrepreneurship: true,
Investing: true,
Management: true,
Marketing: true,
'Non-Profit': true
},
Comedy: {
'Comedy Interviews': true,
Improv: true,
'Stand-Up': true
},
Education: {
Courses: true,
'How To': true,
'Language Learning': true,
'Self-Improvement': true
},
'Games & Hobbies': {
Automotive: true,
Aviation: true,
Hobbies: true,
'Other Games': true,
'Video Games': true
},
Fiction: {
'Comedy Fiction': true,
Drama: true,
'Science Fiction': true
},
Government: {},
History: {},
'Health & Fitness': {
'Alternative Health': true,
Fitness: true,
Medicine: true,
'Mental Health': true,
Nutrition: true,
Sexuality: true
},
'Kids & Family': {
'Education for Kids': true,
Parenting: true,
'Pets & Animals': true,
'Stories for Kids': true
},
Leisure: {
'Animation & Manga': true,
Automotive: true,
Aviation: true,
Crafts: true,
Games: true,
Hobbies: true,
'Home & Garden': true,
'Video Games': true
},
Music: {
'Music Commentary': true,
'Music History': true,
'Music Interviews': true
},
News: {
'Business News': true,
'Daily News': true,
'Entertainment News': true,
'News Commentary': true,
Politics: true,
'Sports News': true,
'Tech News': true
},
'Religion & Spirituality': {
Buddhism: true,
Christianity: true,
Hinduism: true,
Islam: true,
Judaism: true,
Religion: true,
Spirituality: true
},
Science: {
Astronomy: true,
Chemistry: true,
'Earth Sciences': true,
'Life Sciences': true,
Mathematics: true,
'Natural Sciences': true,
Nature: true,
Physics: true,
'Social Sciences': true
},
'Society & Culture': {
Documentary: true,
'Personal Journals': true,
Philosophy: true,
'Places & Travel': true,
Relationships: true
},
Sports: {
Baseball: true,
Basketball: true,
Cricket: true,
'Fantasy Sports': true,
Football: true,
Golf: true,
Hockey: true,
Rugby: true,
Running: true,
Soccer: true,
Swimming: true,
Tennis: true,
Volleyball: true,
Wilderness: true,
Wrestling: true
},
Technology: {},
'True Crime': {},
'TV & Film': {
'After Shows': true,
'Film History': true,
'Film Interviews': true,
'Film Reviews': true,
'TV Reviews': true
}
}