Sonarr Metadata API

The Metadata API from Sonarr, for metadata.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 18

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

GET /api/v3/metadata Get api metadata #
POST /api/v3/metadata Create api metadata #
PUT /api/v3/metadata/{id} Replace api metadata by id #
DELETE /api/v3/metadata/{id} Delete api metadata by id #
GET /api/v3/metadata/{id} Get api metadata by id #
GET /api/v3/metadata/schema Get api metadata schema #
POST /api/v3/metadata/test Create api metadata test #
POST /api/v3/metadata/testall Create api metadata testall #
POST /api/v3/metadata/action/{name} Create api metadata action by name #
GET /api/v5/metadata List metadata plugins · Get api metadata #
Ask an LLM
“Which metadata plugins are installed and enabled?”
“How do I see all metadata source plugins?”
Tell an agent
List all metadata plugins.
Show every metadata source plugin.
POST /api/v5/metadata Create a metadata plugin · Create api metadata #
Ask an LLM
“How do I add a new metadata source plugin?”
“Can I create a metadata plugin with presets and tags?”
Tell an agent
Create metadata plugin {name} with fields {fields}.
Add a new metadata source {name} using implementation {implementation}.
PUT /api/v5/metadata/{id} Replace a metadata plugin · Replace api metadata by id #
Ask an LLM
“How do I replace an existing metadata source plugin?”
“Can I update a metadata plugin's fields without testing?”
Tell an agent
Replace metadata plugin {id} with fields {fields}.
Update metadata source {id} with implementation {implementation}, skip-testing {skipTesting}.
DELETE /api/v5/metadata/{id} Delete a metadata plugin · Delete api metadata by id #
Ask an LLM
“How do I remove a metadata source plugin?”
“Can I delete a metadata plugin by id?”
Tell an agent destructive · confirm first
Delete metadata plugin {id}.
Remove metadata source {id}.
GET /api/v5/metadata/{id} Get a metadata plugin · Get api metadata by id #
Ask an LLM
“How do I look up one metadata plugin by id?”
“What fields does a specific metadata plugin expose?”
Tell an agent
Get metadata plugin {id}.
Show metadata source {id}.
GET /api/v5/metadata/schema Get the metadata plugin schema · Get api metadata schema #
Ask an LLM
“What fields does a metadata plugin config contract require?”
“Where is the metadata plugin schema?”
Tell an agent
Get the metadata plugin schema.
Show the config contract for metadata plugins.
POST /api/v5/metadata/test Test a metadata plugin · Create api metadata test #
Ask an LLM
“How do I test a metadata source plugin?”
“Can I test a metadata plugin without saving it?”
Tell an agent
Test metadata plugin {name} with fields {fields}.
Run a test on metadata source {name} using implementation {implementation}.
POST /api/v5/metadata/testall Test all metadata plugins · Create api metadata testall #
Ask an LLM
“How do I test every metadata source plugin at once?”
“Can I run a full metadata plugin test suite?”
Tell an agent
Test all metadata plugins.
Run the full metadata source test suite.
POST /api/v5/metadata/action/{name} Run a metadata plugin action · Create api metadata action by name #
Ask an LLM
“How do I trigger a named action on a metadata plugin?”
“Can I call a metadata source action by name?”
Tell an agent
Run metadata action {name}.
Trigger the {name} action on metadata source {id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sonarr:sonarr-metadata-api"
All apis
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.

Get an API 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 Specification

sonarr-metadata-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sonarr Metadata API
  license:
    name: GPL-3.0
    url: https://github.com/Sonarr/Sonarr/blob/develop/LICENSE
  version: '1.0'
  description: 'Operations tagged Metadata across 2 of this provider''s published API definitions: openapi_v3.json, openapi_v5.json. Each path carries the servers of the definition it was published in.'
servers:
- url: '{protocol}://{hostpath}'
  variables:
    protocol:
      default: http
      enum:
      - http
      - https
    hostpath:
      default: localhost:8989
security:
- X-Api-Key: []
- apikey: []
tags:
- name: Metadata
paths:
  /api/v3/metadata:
    get:
      tags:
      - Metadata
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MetadataResource'
      summary: Get api metadata
      x-summary-source: derived
      operationId: getApiV3Metadata
      x-operation-id-source: derived
    post:
      tags:
      - Metadata
      parameters:
      - name: forceSave
        in: query
        schema:
          type: boolean
          default: false
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MetadataResource'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetadataResource'
      summary: Create api metadata
      x-summary-source: derived
      operationId: postApiV3Metadata
      x-operation-id-source: derived
    servers:
    - url: '{protocol}://{hostpath}'
      variables:
        protocol:
          default: http
          enum:
          - http
          - https
        hostpath:
          default: localhost:8989
  /api/v3/metadata/{id}:
    put:
      tags:
      - Metadata
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          format: int32
      - name: forceSave
        in: query
        schema:
          type: boolean
          default: false
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MetadataResource'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetadataResource'
      summary: Replace api metadata by id
      x-summary-source: derived
      operationId: putApiV3MetadataById
      x-operation-id-source: derived
    delete:
      tags:
      - Metadata
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
      summary: Delete api metadata by id
      x-summary-source: derived
      operationId: deleteApiV3MetadataById
      x-operation-id-source: derived
    get:
      tags:
      - Metadata
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetadataResource'
        '404':
          description: Not Found
      summary: Get api metadata by id
      x-summary-source: derived
      operationId: getApiV3MetadataById
      x-operation-id-source: derived
    servers:
    - url: '{protocol}://{hostpath}'
      variables:
        protocol:
          default: http
          enum:
          - http
          - https
        hostpath:
          default: localhost:8989
  /api/v3/metadata/schema:
    get:
      tags:
      - Metadata
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MetadataResource'
      summary: Get api metadata schema
      x-summary-source: derived
      operationId: getApiV3MetadataSchema
      x-operation-id-source: derived
    servers:
    - url: '{protocol}://{hostpath}'
      variables:
        protocol:
          default: http
          enum:
          - http
          - https
        hostpath:
          default: localhost:8989
  /api/v3/metadata/test:
    post:
      tags:
      - Metadata
      parameters:
      - name: forceTest
        in: query
        schema:
          type: boolean
          default: false
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MetadataResource'
      responses:
        '200':
          description: OK
      summary: Create api metadata test
      x-summary-source: derived
      operationId: postApiV3MetadataTest
      x-operation-id-source: derived
    servers:
    - url: '{protocol}://{hostpath}'
      variables:
        protocol:
          default: http
          enum:
          - http
          - https
        hostpath:
          default: localhost:8989
  /api/v3/metadata/testall:
    post:
      tags:
      - Metadata
      responses:
        '200':
          description: OK
      summary: Create api metadata testall
      x-summary-source: derived
      operationId: postApiV3MetadataTestall
      x-operation-id-source: derived
    servers:
    - url: '{protocol}://{hostpath}'
      variables:
        protocol:
          default: http
          enum:
          - http
          - https
        hostpath:
          default: localhost:8989
  /api/v3/metadata/action/{name}:
    post:
      tags:
      - Metadata
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MetadataResource'
      responses:
        '200':
          description: OK
      summary: Create api metadata action by name
      x-summary-source: derived
      operationId: postApiV3MetadataActionByName
      x-operation-id-source: derived
    servers:
    - url: '{protocol}://{hostpath}'
      variables:
        protocol:
          default: http
          enum:
          - http
          - https
        hostpath:
          default: localhost:8989
  /api/v5/metadata:
    get:
      tags:
      - Metadata
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MetadataResource'
      summary: Get api metadata
      x-summary-source: derived
      operationId: getApiV5Metadata
      x-operation-id-source: derived
    post:
      tags:
      - Metadata
      parameters:
      - name: skipTesting
        in: query
        schema:
          type: boolean
          default: false
      - name: skipValidation
        in: query
        schema:
          $ref: '#/components/schemas/SkipValidation'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MetadataResource'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetadataResource'
        '404':
          description: Not Found
      summary: Create api metadata
      x-summary-source: derived
      operationId: postApiV5Metadata
      x-operation-id-source: derived
    servers:
    - url: '{protocol}://{hostpath}'
      variables:
        protocol:
          default: http
          enum:
          - http
          - https
        hostpath:
          default: localhost:8989
  /api/v5/metadata/{id}:
    put:
      tags:
      - Metadata
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          format: int32
      - name: skipTesting
        in: query
        schema:
          type: boolean
          default: false
      - name: skipValidation
        in: query
        schema:
          $ref: '#/components/schemas/SkipValidation'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MetadataResource'
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetadataResource'
        '404':
          description: Not Found
      summary: Replace api metadata by id
      x-summary-source: derived
      operationId: putApiV5MetadataById
      x-operation-id-source: derived
    delete:
      tags:
      - Metadata
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '204':
          description: No Content
      summary: Delete api metadata by id
      x-summary-source: derived
      operationId: deleteApiV5MetadataById
      x-operation-id-source: derived
    get:
      tags:
      - Metadata
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetadataResource'
        '404':
          description: Not Found
      summary: Get api metadata by id
      x-summary-source: derived
      operationId: getApiV5MetadataById
      x-operation-id-source: derived
    servers:
    - url: '{protocol}://{hostpath}'
      variables:
        protocol:
          default: http
          enum:
          - http
          - https
        hostpath:
          default: localhost:8989
  /api/v5/metadata/schema:
    get:
      tags:
      - Metadata
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MetadataResource'
      summary: Get api metadata schema
      x-summary-source: derived
      operationId: getApiV5MetadataSchema
      x-operation-id-source: derived
    servers:
    - url: '{protocol}://{hostpath}'
      variables:
        protocol:
          default: http
          enum:
          - http
          - https
        hostpath:
          default: localhost:8989
  /api/v5/metadata/test:
    post:
      tags:
      - Metadata
      parameters:
      - name: skipValidation
        in: query
        schema:
          $ref: '#/components/schemas/SkipValidation'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MetadataResource'
      responses:
        '204':
          description: No Content
      summary: Create api metadata test
      x-summary-source: derived
      operationId: postApiV5MetadataTest
      x-operation-id-source: derived
    servers:
    - url: '{protocol}://{hostpath}'
      variables:
        protocol:
          default: http
          enum:
          - http
          - https
        hostpath:
          default: localhost:8989
  /api/v5/metadata/testall:
    post:
      tags:
      - Metadata
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ProviderTestAllResult'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ProviderTestAllResult'
      summary: Create api metadata testall
      x-summary-source: derived
      operationId: postApiV5MetadataTestall
      x-operation-id-source: derived
    servers:
    - url: '{protocol}://{hostpath}'
      variables:
        protocol:
          default: http
          enum:
          - http
          - https
        hostpath:
          default: localhost:8989
  /api/v5/metadata/action/{name}:
    post:
      tags:
      - Metadata
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MetadataResource'
      responses:
        '400':
          description: Bad Request
      summary: Create api metadata action by name
      x-summary-source: derived
      operationId: postApiV5MetadataActionByName
      x-operation-id-source: derived
    servers:
    - url: '{protocol}://{hostpath}'
      variables:
        protocol:
          default: http
          enum:
          - http
          - https
        hostpath:
          default: localhost:8989
components:
  schemas:
    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
    ProviderMessageType:
      enum:
      - info
      - warning
      - error
      type: string
    ProviderMessage:
      type: object
      properties:
        message:
          type:
          - string
          - 'null'
        type:
          $ref: '#/components/schemas/ProviderMessageType'
      additionalProperties: false
    PrivacyLevel:
      enum:
      - normal
      - password
      - apiKey
      - userName
      type: string
    MetadataResource:
      type: object
      properties:
        id:
          type: integer
          format: int32
        name:
          type:
          - string
          - 'null'
        fields:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/Field'
        implementationName:
          type:
          - string
          - 'null'
        implementation:
          type:
          - string
          - 'null'
        configContract:
          type:
          - string
          - 'null'
        infoLink:
          type:
          - string
          - 'null'
        message:
          $ref: '#/components/schemas/ProviderMessage'
        tags:
          uniqueItems: true
          type:
          - array
          - 'null'
          items:
            type: integer
            format: int32
        presets:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/MetadataResource'
        enable:
          type: boolean
      additionalProperties: false
    SelectOption:
      type: object
      properties:
        value:
          type: integer
          format: int32
        name:
          type:
          - string
          - 'null'
        order:
          type: integer
          format: int32
        hint:
          type:
          - string
          - 'null'
      additionalProperties: false
    ValidationFailure:
      type: object
      properties:
        propertyName:
          type:
          - string
          - 'null'
        errorMessage:
          type:
          - string
          - 'null'
        attemptedValue: {}
        customState: {}
        severity:
          $ref: '#/components/schemas/Severity'
        errorCode:
          type:
          - string
          - 'null'
        formattedMessageArguments:
          type:
          - array
          - 'null'
          items: {}
          deprecated: true
        formattedMessagePlaceholderValues:
          type:
          - object
          - 'null'
          additionalProperties: {}
      additionalProperties: false
    SkipValidation:
      enum:
      - none
      - warnings
      - all
      type: string
    Severity:
      enum:
      - error
      - warning
      - info
      type: string
    ProviderTestAllResult:
      type: object
      properties:
        id:
          type: integer
          format: int32
        isValid:
          type: boolean
          readOnly: true
        validationFailures:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/ValidationFailure'
      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
x-refined-from:
- openapi_v3.json
- openapi_v5.json