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

# Search for Track

> Search Spotify for a specific query.

### Request Headers

<ParamField header="api-key" type="string" required>
  Must match the API key set in the Spoofify environment variables
</ParamField>

### Path Parameters

<ParamField path="query" type="string" required>
  URL-encoded search query.
</ParamField>

### JSON Response

<Tabs>
  <Tab title="Success">
    A Spotify search result object

    #### Example Response

    [https://developer.spotify.com/documentation/web-api/reference/search](https://developer.spotify.com/documentation/web-api/reference/search)
  </Tab>

  <Tab title="Error">
    A Spotify error response

    ### Example Response

    ```typescript theme={null}
    {
      error: {
          status: 400,
          message: "string"
      }
    }
    ```

    [https://developer.spotify.com/documentation/web-api/reference/search](https://developer.spotify.com/documentation/web-api/reference/search)
  </Tab>
</Tabs>
