> ## 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.

# Sparked.lol

> Fetch sparked.lol user profiles with bio, links, badges, and premium status.

# Sparked.lol

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

<AccordionGroup>
  <Accordion title="GET /profile/:username" icon="user">
    Fetch a sparked.lol user profile including bio, links, badges, and premium status.

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

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

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

      ```javascript JavaScript theme={null}
      const res = await fetch("https://drain.lat/api/v1/sparked/profile/sparked", {
        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/sparked/profile/sparked",
          headers={"x-api-key": "YOUR_API_KEY"}
      )
      print(res.json())
      ```
    </CodeGroup>

    <ResponseField name="username" type="string">sparked.lol username.</ResponseField>
    <ResponseField name="uuid" type="string">User unique identifier.</ResponseField>
    <ResponseField name="displayName" type="string">Display name.</ResponseField>
    <ResponseField name="bio" type="string">User bio text.</ResponseField>
    <ResponseField name="avatarUrl" type="string">Avatar image URL.</ResponseField>
    <ResponseField name="isPremium" type="boolean">Whether the user has premium status.</ResponseField>
    <ResponseField name="profileViews" type="number">Total profile views.</ResponseField>
    <ResponseField name="joinedAt" type="string">Account creation date (ISO 8601).</ResponseField>
    <ResponseField name="location" type="string">User location.</ResponseField>

    <ResponseField name="colors" type="object">
      <Expandable title="colors object">
        <ResponseField name="primary" type="string">Primary color hex code.</ResponseField>
        <ResponseField name="secondary" type="string">Secondary color hex code.</ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="backgroundUrl" type="string">Background image URL.</ResponseField>
    <ResponseField name="backgroundImages" type="array">Array of background image URLs.</ResponseField>

    <ResponseField name="discordPresence" type="object">
      <Expandable title="discordPresence object">
        <ResponseField name="status" type="string">Discord status (e.g. `online`, `idle`, `dnd`, `offline`).</ResponseField>
        <ResponseField name="activity" type="string">Current Discord activity.</ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="links" type="array">
      <Expandable title="link object">
        <ResponseField name="id" type="string">Link ID.</ResponseField>
        <ResponseField name="title" type="string">Link title.</ResponseField>
        <ResponseField name="url" type="string">Link URL.</ResponseField>
        <ResponseField name="sortOrder" type="number">Display order.</ResponseField>
        <ResponseField name="icon" type="string">Icon identifier.</ResponseField>
        <ResponseField name="copyOnClick" type="boolean">Whether clicking copies the URL.</ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="badges" type="array">
      <Expandable title="badge object">
        <ResponseField name="id" type="string">Badge identifier.</ResponseField>
        <ResponseField name="color" type="string">Badge color hex code.</ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="profileUrl" type="string">Link to the sparked.lol profile.</ResponseField>

    ```json Response theme={null}
    {
      "username": "sparked",
      "uuid": "abc123-def456-...",
      "displayName": "Sparked",
      "bio": "User bio text here",
      "avatarUrl": "https://...",
      "isPremium": true,
      "profileViews": 12345,
      "joinedAt": "2024-01-01T00:00:00Z",
      "location": "Earth",
      "colors": {
        "primary": "#ff0000",
        "secondary": "#00ff00"
      },
      "backgroundUrl": "https://...",
      "backgroundImages": ["https://...", "https://..."],
      "discordPresence": {
        "status": "online",
        "activity": "Playing a game"
      },
      "links": [
        {
          "id": "link1",
          "title": "Twitter",
          "url": "https://twitter.com/...",
          "sortOrder": 1,
          "icon": "twitter",
          "copyOnClick": false
        }
      ],
      "badges": [
        {
          "id": "verified",
          "color": "#0099ff"
        }
      ],
      "profileUrl": "https://sparked.lol/sparked",
      "scrapedAt": "2026-05-31T00:00:00Z"
    }
    ```
  </Accordion>
</AccordionGroup>
