Sonarr Metadata API

The Metadata API from Sonarr — 12 operation(s) for metadata.

Operations 18

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 Get api metadata #
POST /api/v5/metadata Create api metadata #
PUT /api/v5/metadata/{id} Replace api metadata by id #
DELETE /api/v5/metadata/{id} Delete api metadata by id #
GET /api/v5/metadata/{id} Get api metadata by id #
GET /api/v5/metadata/schema Get api metadata schema #
POST /api/v5/metadata/test Create api metadata test #
POST /api/v5/metadata/testall Create api metadata testall #
POST /api/v5/metadata/action/{name} Create api metadata action by name #

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. 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:
    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
    PrivacyLevel:
      enum:
      - normal
      - password
      - apiKey
      - userName
      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
    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
    SkipValidation:
      enum:
      - none
      - warnings
      - all
      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
    Severity:
      enum:
      - error
      - warning
      - info
      type: string
    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
  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