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

# SoundCloud

> Fetch public SoundCloud profiles including follower counts and track info.

# SoundCloud

**Base URL:** `https://drain.lat/api/v1/soundcloud`

<AccordionGroup>
  <Accordion title="GET /profile/:username" icon="user">
    Fetch a public SoundCloud profile.

    ```
    GET /api/v1/soundcloud/profile/:username
    ```

    <ParamField path="username" type="string" required>
      The SoundCloud username to look up.
    </ParamField>

    <CodeGroup>
      ```bash cURL theme={null}
      curl "https://drain.lat/api/v1/soundcloud/profile/deadmau5" \
        -H "x-api-key: YOUR_API_KEY"
      ```

      ```javascript JavaScript theme={null}
      const res = await fetch("https://drain.lat/api/v1/soundcloud/profile/deadmau5", {
        headers: { "x-api-key": "YOUR_API_KEY" }
      });
      const data = await res.json();
      ```

      ```python Python theme={null}
      import requests

      res = requests.get(
          "https://drain.lat/api/v1/soundcloud/profile/deadmau5",
          headers={"x-api-key": "YOUR_API_KEY"}
      )
      print(res.json())
      ```
    </CodeGroup>

    <ResponseField name="username" type="string">SoundCloud username.</ResponseField>
    <ResponseField name="displayName" type="string">Display name.</ResponseField>
    <ResponseField name="bio" type="string">Profile bio.</ResponseField>
    <ResponseField name="avatarUrl" type="string">Avatar image URL.</ResponseField>
    <ResponseField name="followers" type="number">Follower count.</ResponseField>
    <ResponseField name="tracks" type="number">Total number of tracks.</ResponseField>
    <ResponseField name="profileUrl" type="string">Link to the SoundCloud profile.</ResponseField>

    ```json Response theme={null}
    {
      "username": "deadmau5",
      "displayName": "deadmau5",
      "bio": "just makin music.",
      "avatarUrl": "https://i1.sndcdn.com/avatars-...",
      "followers": 4800000,
      "tracks": 312,
      "profileUrl": "https://soundcloud.com/deadmau5",
      "scrapedAt": "2026-05-05T12:00:00.000Z"
    }
    ```
  </Accordion>
</AccordionGroup>
