TVmaze API

Get TVmaze data as clean JSON with one key: 14 endpoints, 1 to 5 credits per call, the same response shape as every other platform.

What you get#

Onekey exposes TVmaze as 14 endpoints behind one API key: 6 endpoints return one record (data is an object) and 8 endpoints return a list (data is an array). Every answer uses the same envelope (success, data, metadata, error), the cost is reported in metadata.credits_charged, and fields are mapped onto the unified schema so the code you write for TVmaze also works for the rest of the entertainment, art & culture category.

Endpoints#

EndpointWhat it doesParametersCreditsStatus
episodeOne episode by season and number.id*, season*, number*1stable
episode_by_idEpisode by TVmaze episode id.id*1stable
people_searchSearch people in TV.q*5stable
personPerson (actor/crew) by TVmaze id.id*1stable
person_cast_creditsCast credits (shows) of a person.id*5stable
scheduleTV schedule for a country and date.date*, country5stable
searchSearch TV shows.q*5stable
showTV show by TVmaze id.id*1stable
show_by_imdbTV show by IMDb id.imdb*1stable
show_castCast of a TV show.id*5stable
show_crewCrew of a TV show.id*5stable
show_episodesAll episodes of a TV show.id*5stable
show_seasonsSeasons of a TV show.id*5stable
show_single_searchBest-matching TV show for a name.q*1stable

A * marks a required parameter. Each endpoint name links to its reference page with the full parameter table, caching window and a recorded response.

Make a request#

This calls tvmaze.episode (1 credit, stable). Replace YOUR_API_KEY with your key; sign up, no card. 1,000 free credits cover the open-platform endpoints. Hard-to-reach platforms (X, TikTok, Instagram, Reddit, and others marked on their page) need a verified email and a purchased pack.

curl "https://api.onekey.dev/v1/tvmaze/episode?id=169&season=1&number=1" \
  -H "x-api-key: YOUR_API_KEY"

Fields you get back#

These unified fields come back from TVmaze, with the same names as on every other platform. The count is how many of its 14 mapped endpoints return the field; a field the source lacks is null, never missing. 12 platform-specific fields (ext.<name>) come on top, documented on each endpoint page.

FieldTypeEndpoints
media.thumbnailUrlURL9
content.idstring5
content.urlURL5
entity.idstring5
entity.namestring5
entity.urlURL5
author.avatarUrlURL4
author.birthDateISO 8601 date4
author.countrystring4
author.displayNamestring4
author.idstring4
author.urlURL4
content.createdAtISO 8601 date4
content.textstring4
content.titlestring4
entity.categorystring4
entity.descriptionstring4
entity.languagestring4
entity.stats.ratingnumber4
entity.statusstring4
media.urlURL4
entity.stats.scorenumber1

The full schema is in Unified schema.

Pricing#

TVmaze calls cost 1 to 5 credits, flat per endpoint. Free when served from cache (0.2 credit for a cached response over 100 KB). Invalid, failed or not-found calls are not charged. See pricing for credit packs.