> ## Documentation Index
> Fetch the complete documentation index at: https://docs.magnific.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search sound effects

> Search the sound effects library by `query` and category, a page at a time. Free.



## OpenAPI

````yaml openapi/magnific-api-v2-stock-openapi.yaml GET /v2/stock/sound-effects
openapi: 3.1.0
info:
  title: Magnific API v2 — Stock
  version: 2.0.0
  description: >-
    Search, read and download stock under `/v2/stock`: images and templates,
    icons and videos (same items, licences and billing as API v1), and music and
    sound effects (free, as on the web).
servers:
  - url: https://api.magnific.com
    description: Production V2
security:
  - magnificApiKey: []
  - bearerAuth: []
tags:
  - name: Videos
    description: >-
      Generate and edit videos. Add `?dry_run=true` to get the price of a
      request first.
paths:
  /v2/stock/sound-effects:
    get:
      tags:
        - Stock audio
      summary: Search sound effects
      description: |-
        Search and browse the sound effects library.

        A personal token needs `api:read`.
      operationId: stock_sound_effects_search
      parameters:
        - name: query
          in: query
          required: false
          description: Free text to search for. Leave it out to browse.
          schema:
            type: string
        - name: category
          in: query
          required: false
          description: >-
            A category slug (`rain-and-storm`); a parent category includes its
            subcategories.
          schema:
            type: string
        - name: order_by
          in: query
          required: false
          description: >-
            Sort order; `-` for descending. `relevance` when `query` is given,
            `-popularity` otherwise.
          schema:
            type: string
            enum:
              - relevance
              - popularity
              - '-popularity'
              - download_count
              - '-download_count'
              - created_at
              - '-created_at'
              - duration
              - '-duration'
              - title
              - '-title'
        - name: limit
          in: query
          required: false
          description: >-
            Items per page, up to 100 (20 when absent). It may change between
            pages.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
        - name: cursor
          in: query
          required: false
          description: >-
            The `next_cursor` of the previous page; absent for the first.
            Opaque: send it as given.
          schema:
            type: string
            maxLength: 64
      responses:
        '200':
          description: >-
            A page of items. Premium items appear only when your plan includes
            them.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - meta
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/AudioSoundEffect'
                  meta:
                    $ref: '#/components/schemas/AudioListMeta'
        '401':
          description: '`unauthenticated`: no valid token or API key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AudioError'
        '403':
          description: >-
            `forbidden`, or what is missing: `magnific_api_disabled` (the key
            may not use the Magnific API), `tool_disabled` (the organization
            turned the audio library off), `key_not_supported`,
            `api_key_wallet_unavailable` (the key's creator is no longer in its
            organization).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AudioError'
        '422':
          description: >-
            `validation_failed`: `details.errors` lists the problems by
            parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AudioError'
        '429':
          description: '`rate_limited`: wait the `Retry-After` header, in seconds.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AudioError'
        '500':
          description: '`internal_error`: give `request_id` to support.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AudioError'
        '503':
          description: >-
            `service_unavailable`: the entitlement could not be checked. Retry
            later.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AudioError'
      security:
        - magnificApiKey: []
        - bearerAuth: []
components:
  schemas:
    AudioSoundEffect:
      type: object
      properties:
        id:
          type: integer
        title:
          type: string
        tags:
          type: array
          items:
            type: string
        category:
          type:
            - object
            - 'null'
          properties:
            id:
              type:
                - integer
                - 'null'
            name:
              type: string
            parent:
              type: object
              properties:
                id:
                  type: integer
                name:
                  type: string
        duration:
          type: number
          description: Seconds.
        is_premium:
          type: boolean
        popularity:
          type: number
        download_count:
          type: integer
        file_url:
          type:
            - string
            - 'null'
        created_at:
          type:
            - string
            - 'null'
          format: date-time
    AudioListMeta:
      type: object
      required:
        - pagination
      properties:
        pagination:
          type: object
          required:
            - has_more
          properties:
            has_more:
              type: boolean
              description: 'More items follow: send `next_cursor` as `cursor`.'
            next_cursor:
              type: string
              description: Absent on the last page.
    AudioError:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: 'Stable, for code: each status lists the codes it carries.'
        message:
          type: string
          description: For people.
        details:
          type: object
          properties:
            errors:
              type: object
              description: Validation messages by parameter.
              additionalProperties:
                type: array
                items:
                  type: string
        request_id:
          type: string
          description: Give it to support.
  securitySchemes:
    magnificApiKey:
      type: apiKey
      in: header
      name: x-magnific-api-key
      description: >-
        Your Magnific API key. [Learn how to obtain an API
        key](https://docs.magnific.com/quickstart)
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        A personal access token, sent as `Authorization: Bearer <token>`. [How
        to get one](/api-reference/v2/overview#get-a-personal-access-token)

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.