Operations 4
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/sonarr:sonarr-episode-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Sonarr Episode API
description: Sonarr API docs - The v5 API docs apply to Sonarr v5 only.
license:
name: GPL-3.0
url: https://github.com/Sonarr/Sonarr/blob/develop/LICENSE
version: 5.0.0
servers:
- url: '{protocol}://{hostpath}'
variables:
protocol:
default: http
enum:
- http
- https
hostpath:
default: localhost:8989
security:
- X-Api-Key: []
- apikey: []
tags:
- name: Episode
paths:
/api/v5/episode:
get:
tags:
- Episode
parameters:
- name: seriesId
in: query
schema:
type: integer
format: int32
- name: seasonNumber
in: query
schema:
type: integer
format: int32
- name: episodeIds
in: query
schema:
type: array
items:
type: integer
format: int32
- name: episodeFileId
in: query
schema:
type: integer
format: int32
- name: includeSubresources
in: query
schema:
type: array
items:
$ref: '#/components/schemas/EpisodeSubresource'
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/EpisodeResource'
'400':
description: Bad Request
summary: Get api episode
x-summary-source: derived
operationId: getApiV5Episode
x-operation-id-source: derived
/api/v5/episode/{id}:
put:
tags:
- Episode
parameters:
- name: id
in: path
required: true
schema:
type: integer
format: int32
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/EpisodeResource'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/EpisodeResource'
summary: Replace api episode by id
x-summary-source: derived
operationId: putApiV5EpisodeById
x-operation-id-source: derived
get:
tags:
- Episode
parameters:
- name: id
in: path
required: true
schema:
type: integer
format: int32
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/EpisodeResource'
'404':
description: Not Found
summary: Get api episode by id
x-summary-source: derived
operationId: getApiV5EpisodeById
x-operation-id-source: derived
/api/v5/episode/monitor:
put:
tags:
- Episode
parameters:
- name: includeSubresources
in: query
schema:
type: array
items:
$ref: '#/components/schemas/EpisodeSubresource'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/EpisodesMonitoredResource'
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/EpisodeResource'
summary: Replace api episode monitor
x-summary-source: derived
operationId: putApiV5EpisodeMonitor
x-operation-id-source: derived
components:
schemas:
MonitorTypes:
enum:
- unknown
- all
- future
- missing
- existing
- firstSeason
- lastSeason
- latestSeason
- pilot
- recent
- monitorSpecials
- unmonitorSpecials
- none
- skip
type: string
Language:
type: object
properties:
id:
type: integer
format: int32
name:
type:
- string
- 'null'
additionalProperties: false
NewItemMonitorTypes:
enum:
- all
- none
type: string
Quality:
type: object
properties:
id:
type: integer
format: int32
name:
type:
- string
- 'null'
source:
$ref: '#/components/schemas/QualitySource'
resolution:
type: integer
format: int32
additionalProperties: false
SeriesTranslationResource:
type: object
properties:
language:
$ref: '#/components/schemas/Language'
title:
type:
- string
- 'null'
overview:
type:
- string
- 'null'
additionalProperties: false
MediaCoverTypes:
enum:
- unknown
- poster
- banner
- fanart
- screenshot
- headshot
- clearlogo
type: string
PrivacyLevel:
enum:
- normal
- password
- apiKey
- userName
type: string
AlternateTitleResource:
type: object
properties:
title:
type:
- string
- 'null'
seasonNumber:
type:
- integer
- 'null'
format: int32
sceneSeasonNumber:
type:
- integer
- 'null'
format: int32
sceneOrigin:
type:
- string
- 'null'
comment:
type:
- string
- 'null'
additionalProperties: false
SeriesResource:
type: object
properties:
id:
type: integer
format: int32
title:
type:
- string
- 'null'
alternateTitles:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/AlternateTitleResource'
sortTitle:
type:
- string
- 'null'
status:
$ref: '#/components/schemas/SeriesStatusType'
ended:
type: boolean
readOnly: true
profileName:
type:
- string
- 'null'
overview:
type:
- string
- 'null'
nextAiring:
type:
- string
- 'null'
format: date-time
previousAiring:
type:
- string
- 'null'
format: date-time
network:
type:
- string
- 'null'
airTime:
type:
- string
- 'null'
images:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/MediaCover'
language:
$ref: '#/components/schemas/Language'
originalLanguage:
$ref: '#/components/schemas/Language'
remotePoster:
type:
- string
- 'null'
seasonType:
type:
- string
- 'null'
seasons:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/SeasonResource'
seasonTypes:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/SeasonTypeResource'
translations:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/SeriesTranslationResource'
year:
type: integer
format: int32
path:
type:
- string
- 'null'
pendingPath:
type:
- string
- 'null'
qualityProfileId:
type: integer
format: int32
seasonFolder:
type: boolean
monitored:
type: boolean
monitorNewItems:
$ref: '#/components/schemas/NewItemMonitorTypes'
useSceneNumbering:
type: boolean
runtime:
type: integer
format: int32
tvdbId:
type: integer
format: int32
tvRageId:
type: integer
format: int32
tvMazeId:
type: integer
format: int32
tmdbId:
type: integer
format: int32
malIds:
uniqueItems: true
type:
- array
- 'null'
items:
type: integer
format: int32
aniListIds:
uniqueItems: true
type:
- array
- 'null'
items:
type: integer
format: int32
firstAired:
type:
- string
- 'null'
format: date-time
lastAired:
type:
- string
- 'null'
format: date-time
seriesType:
$ref: '#/components/schemas/SeriesTypes'
originalTitle:
type:
- string
- 'null'
cleanTitle:
type:
- string
- 'null'
cleanOriginalTitle:
type:
- string
- 'null'
imdbId:
type:
- string
- 'null'
titleSlug:
type:
- string
- 'null'
rootFolderPath:
type:
- string
- 'null'
folder:
type:
- string
- 'null'
folders:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/SeriesFolderResource'
certification:
type:
- string
- 'null'
genres:
type:
- array
- 'null'
items:
type: string
originalCountry:
type:
- string
- 'null'
tags:
uniqueItems: true
type:
- array
- 'null'
items:
type: integer
format: int32
added:
type: string
format: date-time
addOptions:
$ref: '#/components/schemas/AddSeriesOptions'
ratings:
$ref: '#/components/schemas/Ratings'
statistics:
$ref: '#/components/schemas/SeriesStatisticsResource'
episodesChanged:
type:
- boolean
- 'null'
additionalProperties: false
SeasonStatisticsResource:
type: object
properties:
nextAiring:
type:
- string
- 'null'
format: date-time
previousAiring:
type:
- string
- 'null'
format: date-time
episodeFileCount:
type: integer
format: int32
episodeCount:
type: integer
format: int32
totalEpisodeCount:
type: integer
format: int32
monitoredEpisodeCount:
type: integer
format: int32
sizeOnDisk:
type: integer
format: int64
releaseGroups:
type:
- array
- 'null'
items:
type: string
releaseTypes:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/ReleaseType'
episodeFileQualities:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/Quality'
percentOfEpisodes:
type: number
format: double
readOnly: true
additionalProperties: false
Ratings:
type: object
properties:
votes:
type: integer
format: int32
value:
type: number
format: double
additionalProperties: false
CustomFormatResource:
type: object
properties:
id:
type: integer
format: int32
name:
type:
- string
- 'null'
includeCustomFormatWhenRenaming:
type:
- boolean
- 'null'
specifications:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/CustomFormatSpecificationSchema'
additionalProperties: false
SeriesStatisticsResource:
type: object
properties:
seasonCount:
type: integer
format: int32
episodeFileCount:
type: integer
format: int32
episodeCount:
type: integer
format: int32
totalEpisodeCount:
type: integer
format: int32
monitoredEpisodeCount:
type: integer
format: int32
sizeOnDisk:
type: integer
format: int64
releaseGroups:
type:
- array
- 'null'
items:
type: string
releaseTypes:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/ReleaseType'
episodeFileQualities:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/Quality'
percentOfEpisodes:
type: number
format: double
readOnly: true
additionalProperties: false
AddSeriesOptions:
type: object
properties:
ignoreEpisodesWithFiles:
type: boolean
ignoreEpisodesWithoutFiles:
type: boolean
monitor:
$ref: '#/components/schemas/MonitorTypes'
searchForMissingEpisodes:
type: boolean
searchForCutoffUnmetEpisodes:
type: boolean
additionalProperties: false
MediaInfoSubtitleStreamResource:
type: object
properties:
language:
type:
- string
- 'null'
format:
type:
- string
- 'null'
title:
type:
- string
- 'null'
forced:
type:
- boolean
- 'null'
hearingImpaired:
type:
- boolean
- 'null'
additionalProperties: false
EpisodeSubresource:
enum:
- series
- episodeFile
- images
type: string
SelectOption:
type: object
properties:
value:
type: integer
format: int32
name:
type:
- string
- 'null'
order:
type: integer
format: int32
hint:
type:
- string
- 'null'
additionalProperties: false
ReleaseType:
enum:
- unknown
- singleEpisode
- multiEpisode
- seasonPack
type: string
Field:
type: object
properties:
order:
type: integer
format: int32
name:
type:
- string
- 'null'
label:
type:
- string
- 'null'
unit:
type:
- string
- 'null'
helpText:
type:
- string
- 'null'
helpTextWarning:
type:
- string
- 'null'
helpLink:
type:
- string
- 'null'
value: {}
type:
type:
- string
- 'null'
advanced:
type: boolean
selectOptions:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/SelectOption'
selectOptionsProviderAction:
type:
- string
- 'null'
section:
type:
- string
- 'null'
hidden:
type:
- string
- 'null'
privacy:
$ref: '#/components/schemas/PrivacyLevel'
placeholder:
type:
- string
- 'null'
isFloat:
type: boolean
additionalProperties: false
SeriesStatusType:
enum:
- continuing
- ended
- upcoming
- deleted
type: string
MediaCover:
type: object
properties:
coverType:
$ref: '#/components/schemas/MediaCoverTypes'
url:
type:
- string
- 'null'
remoteUrl:
type:
- string
- 'null'
additionalProperties: false
QualityModel:
type: object
properties:
quality:
$ref: '#/components/schemas/Quality'
revision:
$ref: '#/components/schemas/Revision'
additionalProperties: false
SeriesTypes:
enum:
- standard
- daily
- anime
type: string
Revision:
type: object
properties:
version:
type: integer
format: int32
real:
type: integer
format: int32
isRepack:
type: boolean
additionalProperties: false
EpisodesMonitoredResource:
required:
- episodeIds
type: object
properties:
episodeIds:
type:
- array
- 'null'
items:
type: integer
format: int32
monitored:
type: boolean
additionalProperties: false
EpisodeResource:
type: object
properties:
id:
type: integer
format: int32
seriesId:
type: integer
format: int32
tvdbId:
type: integer
format: int32
episodeFileId:
type: integer
format: int32
seasonNumber:
type: integer
format: int32
episodeNumber:
type: integer
format: int32
title:
type:
- string
- 'null'
airDate:
type:
- string
- 'null'
airDateUtc:
type:
- string
- 'null'
format: date-time
lastSearchTime:
type:
- string
- 'null'
format: date-time
runtime:
type: integer
format: int32
finaleType:
type:
- string
- 'null'
overview:
type:
- string
- 'null'
episodeFile:
$ref: '#/components/schemas/EpisodeFileResource'
hasFile:
type: boolean
monitored:
type: boolean
absoluteEpisodeNumber:
type:
- integer
- 'null'
format: int32
sceneAbsoluteEpisodeNumber:
type:
- integer
- 'null'
format: int32
sceneEpisodeNumber:
type:
- integer
- 'null'
format: int32
sceneSeasonNumber:
type:
- integer
- 'null'
format: int32
unverifiedSceneNumbering:
type: boolean
endTime:
type:
- string
- 'null'
format: date-time
grabDate:
type:
- string
- 'null'
format: date-time
series:
$ref: '#/components/schemas/SeriesResource'
images:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/MediaCover'
additionalProperties: false
SeasonResource:
type: object
properties:
seasonNumber:
type: integer
format: int32
monitored:
type: boolean
title:
type:
- string
- 'null'
statistics:
$ref: '#/components/schemas/SeasonStatisticsResource'
images:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/MediaCover'
additionalProperties: false
EpisodeFileResource:
type: object
properties:
id:
type: integer
format: int32
seriesId:
type: integer
format: int32
seasonNumber:
type: integer
format: int32
relativePath:
type:
- string
- 'null'
path:
type:
- string
- 'null'
size:
type: integer
format: int64
dateAdded:
type: string
format: date-time
sceneName:
type:
- string
- 'null'
releaseGroup:
type:
- string
- 'null'
languages:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/Language'
quality:
$ref: '#/components/schemas/QualityModel'
customFormats:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/CustomFormatResource'
customFormatScore:
type: integer
format: int32
indexerFlags:
type:
- integer
- 'null'
format: int32
releaseType:
$ref: '#/components/schemas/ReleaseType'
mediaInfo:
$ref: '#/components/schemas/MediaInfoResource'
qualityCutoffNotMet:
type: boolean
additionalProperties: false
SeasonTypeResource:
type: object
properties:
name:
type:
- string
- 'null'
type:
type:
- string
- 'null'
seasonNumbers:
type:
- array
- 'null'
items:
type: integer
format: int32
episodeCount:
type: integer
format: int32
additionalProperties: false
SeriesFolderResource:
required:
- folder
- language
type: object
properties:
language:
$ref: '#/components/schemas/Language'
folder:
type:
- string
- 'null'
additionalProperties: false
QualitySource:
enum:
- unknown
- television
- televisionRaw
- web
- webRip
- dvd
- bluray
- blurayRaw
type: string
MediaInfoResource:
type: object
properties:
id:
type: integer
format: int32
videoBitDepth:
type: integer
format: int32
videoBitrate:
type: integer
format: int64
videoCodec:
type:
- string
- 'null'
videoFps:
type: number
format: double
videoDynamicRange:
type:
- string
- 'null'
videoDynamicRangeType:
type:
- string
- 'null'
resolution:
type:
- string
- 'null'
runTime:
type:
- string
- 'null'
scanType:
type:
- string
- 'null'
audioStreams:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/MediaInfoAudioStreamResource'
subtitleStreams:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/MediaInfoSubtitleStreamResource'
additionalProperties: false
CustomFormatSpecificationSchema:
required:
- fields
- implementation
- implementationName
- infoLink
- name
type: object
properties:
id:
type: integer
format: int32
name:
type:
- string
- 'null'
implementation:
type:
- string
- 'null'
implementationName:
type:
- string
- 'null'
infoLink:
type:
- string
- 'null'
negate:
type: boolean
required:
type: boolean
fields:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/Field'
presets:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/CustomFormatSpecificationSchema'
additionalProperties: false
MediaInfoAudioStreamResource:
type: object
properties:
language:
type:
- string
- 'null'
codec:
type:
- string
- 'null'
profile:
type:
- string
- 'null'
bitrate:
type: integer
format: int64
channels:
type: number
format: double
channelPositions:
type:
- string
- 'null'
title:
type:
- string
- 'null'
additionalProperties: false
securitySchemes:
X-Api-Key:
type: apiKey
description: Apikey passed as header
name: X-Api-Key
in: header
apikey:
type: apiKey
description: Apikey passed as query parameter
name: apikey
in: query