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

# Discord Lookup

> Search leaked Discord account records

Searches leaked Discord account records. The query matches partially on the user ID, username, e-mail, phone, IP address, Steam ID and license. Up to 100 records are returned.

> [!NOTE]
>
> While the Discord index is under maintenance the endpoint answers `503` with an empty `results` list; nothing is charged.

## Parameters

**query** `string` *required*

A Discord user ID, username, e-mail, phone number, IP address, Steam ID or license.

## Headers

**X-API-KEY** `string` *required*

Your API key.

## Usage

Counts as one lookup against your plan's daily allowance (Max: unlimited). When the allowance is used up, the lookup can continue at a per-lookup price charged to your balance (the module's page in the dashboard shows the price). The price applies even when the lookup finds nothing; a lookup that fails because of an error on our side is not charged.

## Example request

```bash cURL theme={null}
curl "https://www.osintcat.net/api/discord?query=80351110224678912" \
     -H "X-API-KEY: YOUR_API_KEY"
```

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

url = "https://www.osintcat.net/api/discord"
params = {"query": "80351110224678912"}
headers = {"X-API-KEY": "YOUR_API_KEY"}

response = requests.get(url, params=params, headers=headers, timeout=60)
print(response.status_code, response.json())
```

```javascript JS & TS theme={null}
const response = await fetch("https://www.osintcat.net/api/discord?query=80351110224678912", {
  headers: { "X-API-KEY": "YOUR_API_KEY" },
});
console.log(response.status, await response.json());
```

```php PHP theme={null}
<?php
$curl = curl_init("https://www.osintcat.net/api/discord?query=80351110224678912");
curl_setopt_array($curl, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ["X-API-KEY: YOUR_API_KEY"],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_RESPONSE_CODE);
curl_close($curl);
echo $status . " " . $response;
```

```go Go theme={null}
package main

import (
    "fmt"
    "io"
    "net/http"
)

func main() {
    req, _ := http.NewRequest("GET", "https://www.osintcat.net/api/discord?query=80351110224678912", nil)
    req.Header.Set("X-API-KEY", "YOUR_API_KEY")
    resp, err := http.DefaultClient.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()
    body, _ := io.ReadAll(resp.Body)
    fmt.Println(resp.StatusCode, string(body))
}
```

## Response

**query** `string`

The query searched for.

**count** `number`

Number of records.

**results** `array`

Matching records.

**properties**

**user\_id** `string`

Discord user ID.

**username** `string`

Username.

**discriminator** `string`

Legacy discriminator, if any.

**email** `string`

E-mail.

**phone** `string`

Phone number.

**password** `string`

Password, if the record has one.

**ip** `string`

IP address.

**token** `string`

Token, if the record has one.

**steam** `string`

Linked Steam ID.

**license** `string`

Game license identifier.

**source** `string`

Collection the record came from.

**added\_at** `string`

When the record was added.

```json 200 theme={null}
{
  "query": "80351110224678912",
  "count": 1,
  "results": [
    {
      "user_id": "80351110224678912",
      "username": "example",
      "discriminator": "0",
      "email": "user@example.com",
      "phone": null,
      "password": null,
      "ip": "203.0.113.7",
      "token": null,
      "steam": null,
      "license": null,
      "source": "example-2024",
      "added_at": "2025-02-11 08:00:00"
    }
  ]
}
```

## Errors

| Status | Error | When |
| - | - | - |
| 424 | `Discord search service temporarily unavailable` | The search failed. |
| 503 | `(maintenance)` | The Discord index is under maintenance. |

See [Errors](https://docs.osintcat.net/api-reference/introduction.md#errors) for the responses every endpoint can return.


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