Skip to content

seriesFilter

GET /v4/series/filter

This method returns a list of series records. For official documentation of the endpoint, please refer to the Swagger documentation.

Parameters

ParamsTypeRequiredDescription
queriesobjectOptionalSearch parameters to restrict the result
queries.countrystringOptionalCountry of origin
queries.langstringOptionalOriginal language
queries.companystringOptionalProduction company id
queries.contentRatingstringOptionalContent rating id
queries.genrestringOptionalGenre id
queries.sortstring: score, firstAired, name, lastAiredOptionalSort by results
queries.sortTypestring: asc, descOptionalSort by type
queries.statusstring: 1, 2, 3OptionalStatus of the record
queries.yearstringOptionalRelease year
queries.pagestringOptionalResctrict to a specific page

Examples

Filter without queries

import { TheTVDB } from '@untidy/thetvdb';
const client = new TheTVDB('access token');
const data = await client.seriesFilter();
Successful response output
{
status: 'success',
data: [
{
id: 70327,
name: 'Buffy the Vampire Slayer',
slug: 'buffy-the-vampire-slayer',
image: 'https://artworks.thetvdb.com/banners/posters/70327-1.jpg',
// ...
},
// ...
],
links: {
prev: null,
self: 'https://api4.thetvdb.com/v4/series/filter?page=0',
next: 'https://api4.thetvdb.com/v4/series/filter?page=1',
total_items: 149693,
page_size: 500,
},
};

Filter by country and language

import { TheTVDB } from '@untidy/thetvdb';
const client = new TheTVDB('access token');
const data = await client.seriesFilter({ country: 'usa', lang: 'eng' });
Successful response output
{
status: 'success',
data: [
{
id: 70327,
name: 'Buffy the Vampire Slayer',
slug: 'buffy-the-vampire-slayer',
image: 'https://artworks.thetvdb.com/banners/posters/70327-1.jpg',
// ...
},
// ...
],
links: {
prev: null,
self: 'https://api4.thetvdb.com/v4/series/filter?country=usa&lang=eng&page=0',
next: 'https://api4.thetvdb.com/v4/series/filter?country=usa&lang=eng&page=1',
total_items: 37254,
page_size: 500,
},
};

Filter by year and sort

import { TheTVDB } from '@untidy/thetvdb';
const client = new TheTVDB('access token');
const data = await client.seriesFilter({ country: 'usa', lang: 'eng', sort: 'lastAired', year: '2023' });
Successful response output
{
status: 'success',
data: [
{
id: 443245,
name: 'Demystifying Channeling',
slug: 'demystifying-channeling',
image: null,
nameTranslations: null,
overviewTranslations: null,
aliases: null,
firstAired: '2023-01-01',
lastAired: '2023-01-01',
// ...
},
// ...
],
links: {
prev: null,
self: 'https://api4.thetvdb.com/v4/series/filter?country=usa&lang=eng&sort=lastAired&year=2023&page=0',
next: 'https://api4.thetvdb.com/v4/series/filter?country=usa&lang=eng&sort=lastAired&year=2023&page=1',
total_items: 1118,
page_size: 500,
},
};