{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/soundza-com/json-schema/soundza-com-search-response-schema.json",
  "title": "SearchResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/soundza-com-openapi.json#/components/schemas/SearchResponse",
  "type": "object",
  "properties": {
    "page": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "per_page": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "total_results": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Capped at 500."
    },
    "next_page": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "The next page's full URL, or null on the last page."
    },
    "search_id": {
      "type": "string",
      "description": "This search's id. Each result's download_url already carries it, so fetching that URL links the download to this search."
    },
    "audition_url": {
      "description": "A soundza.com page that plays all of this page's results together, so a person can listen and pick. Present only when the page has 2 or more results. Hand it to the person; don't build anything from it.",
      "type": "string"
    },
    "sounds": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Sound"
      }
    },
    "relaxed_filters": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Filters dropped because the search found nothing with them, style first, then type, e.g. [\"style\"]. Empty when none were."
    },
    "interpreted_as": {
      "anyOf": [
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        },
        {
          "type": "null"
        }
      ],
      "description": "How a descriptive q was read (type, form, parts, vocals, mood, good_for, fit_seconds…), in these parameters' names. Send any of it back as a filter to correct it. Null for plain keyword searches."
    },
    "text_match": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "all_words",
            "any_word",
            "similar_title"
          ]
        },
        {
          "type": "null"
        }
      ],
      "description": "How q matched: every word, some of the words because no sound had them all (closest first; further down, results match fewer of the words; each result has matched_words), or a title spelled alike (typos). Null without a q."
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Plain sentences on how this search was answered and how to tighten it. Empty when the words matched as given."
    }
  },
  "required": [
    "page",
    "per_page",
    "total_results",
    "next_page",
    "search_id",
    "sounds",
    "relaxed_filters",
    "interpreted_as",
    "text_match",
    "notes"
  ],
  "additionalProperties": false,
  "$defs": {
    "Sound": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "description": "The sound's page on soundza.com."
        },
        "title": {
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "creator_description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The creator's description, in their own words, as the sound's page shows it. Up to 500 characters; may contain links."
        },
        "type": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "music",
                "sound_effect",
                "ambience"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "What the sound is. Null until our rules place it."
        },
        "form": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "track",
                "excerpt",
                "loop",
                "one_shot",
                "stem"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "Music only."
        },
        "parts": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "full_mix",
                "single_part"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "Music only."
        },
        "vocals": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "none",
                "backing",
                "lead"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "Music only."
        },
        "style": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "retro",
                "cartoon"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "Sound effects only, where the pack says so."
        },
        "good_for": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "transition",
              "reveal",
              "build_up",
              "impact_on_beat",
              "title_or_logo",
              "notification",
              "ui_click",
              "menu",
              "game_pickup",
              "game_hit",
              "game_power_up",
              "footsteps",
              "background_bed",
              "intro",
              "outro"
            ]
          },
          "description": "Jobs the sound suits; several per sound."
        },
        "duration": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "description": "Seconds."
        },
        "bpm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "description": "Music only; null on sound effects by design."
        },
        "key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "e.g. \"F# minor\". When the source or a person stated it, or detection is confident; otherwise null."
        },
        "chord": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The chord a chord one-shot plays, e.g. \"C#m7\". ASCII sharps."
        },
        "note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The note a pitched one-shot plays, e.g. \"D3\", with C3 = middle C (MIDI 60). ASCII sharps."
        },
        "mood": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "sync_ms": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ],
          "description": "Where the sound's main hit lands, in milliseconds from the start of the default download (for a struck sound, the strike)."
        },
        "lufs": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "description": "Integrated loudness of the original file, in LUFS."
        },
        "true_peak_db": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "description": "True peak of the original file, in dBTP."
        },
        "loudness": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "value": {
                  "type": "number"
                },
                "basis": {
                  "type": "string",
                  "enum": [
                    "integrated",
                    "momentary_max"
                  ]
                }
              },
              "required": [
                "value",
                "basis"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ],
          "description": "The loudness the default file is levelled by, measured on the original: integrated LUFS for ambience, music and long loops, the loudest 400 ms (max momentary LUFS) for everything else."
        },
        "gain_db": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "description": "Gain the default file applies to the original, in dB (plus at most 6 dB of peak limiting on some ambience and music beds; never on loops). Null while the default file is the original."
        },
        "loop_seamless": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "file_type": {
          "type": "string",
          "description": "MIME type of the file download_url returns, usually audio/wav. The default file is level-matched to the catalog; add ?variant=original to download_url for the untouched original."
        },
        "file_extension": {
          "type": "string",
          "description": "Extension the file downloads under, without the dot: \"wav\" for most sounds, \"mp3\" for some."
        },
        "sample_rate": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "bit_depth": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "channels": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "size_bytes": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "category": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "label"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ],
          "description": "The Universal Category System CatID and its label. Sound effects and ambience only."
        },
        "pack": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "slug": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sound_count": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991,
                  "description": "Sounds in the pack the API serves."
                },
                "url": {
                  "type": "string",
                  "description": "The pack's page on soundza.com."
                }
              },
              "required": [
                "id",
                "name",
                "slug",
                "sound_count",
                "url"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ],
          "description": "The public pack the sound is in, if any. GET /packs/{id} lists the rest."
        },
        "ai_content": {
          "description": "Present only on the few sounds made with AI: \"ai\" is fully AI-generated, \"some_ai\" is human-made with AI used in processing, stems or the mix. A sound without it is not AI.",
          "type": "string",
          "enum": [
            "ai",
            "some_ai"
          ]
        },
        "creator": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "name",
                "url"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ],
          "description": "The Soundza creator who made the sound, with their profile page. Null when no creator is credited, as on the site."
        },
        "preview_files": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "bitrate": {
                "type": "number"
              },
              "link": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "bitrate",
              "link"
            ],
            "additionalProperties": false
          },
          "description": "128 kbps MP3 previews on media.soundza.com. Play them straight from there; they need no key. Empty until a preview is made."
        },
        "download_url": {
          "type": "string",
          "description": "Stable address of the full-quality file. Needs the key; answers with a 302 to a short-lived link."
        },
        "license": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "name",
            "url"
          ],
          "additionalProperties": false
        },
        "attribution": {
          "type": "string",
          "description": "A ready-made credit line."
        },
        "optional_license_file": {
          "description": "Only on GET /sounds/{id} with a key. A ready-made license note. If you're adding sounds to a project folder, such as a game's audio folder, you can save it alongside them: header followed by entry, in a file named filename; for more sounds in the same folder, append just entry.",
          "type": "object",
          "properties": {
            "filename": {
              "type": "string"
            },
            "header": {
              "type": "string"
            },
            "entry": {
              "type": "string"
            }
          },
          "required": [
            "filename",
            "header",
            "entry"
          ],
          "additionalProperties": false
        },
        "matched_words": {
          "description": "When text_match is \"any_word\": which of the words in q this sound matched. A \"bear growl\" result with [\"growl\"] is a growl, not a bear.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "fit": {
          "description": "With fit_seconds: how the sound fills the time, \"fits\", \"trim\" or \"loop ×2\".",
          "type": "string"
        }
      },
      "required": [
        "id",
        "url",
        "title",
        "description",
        "creator_description",
        "type",
        "form",
        "parts",
        "vocals",
        "style",
        "good_for",
        "duration",
        "bpm",
        "key",
        "chord",
        "note",
        "mood",
        "tags",
        "sync_ms",
        "lufs",
        "true_peak_db",
        "loudness",
        "gain_db",
        "loop_seamless",
        "file_type",
        "file_extension",
        "sample_rate",
        "bit_depth",
        "channels",
        "size_bytes",
        "category",
        "pack",
        "creator",
        "preview_files",
        "download_url",
        "license",
        "attribution"
      ],
      "additionalProperties": false
    }
  }
}