# 9Ghz API reference

> 9Ghz is a breach-search service. Its API lists known data breaches, tells you which breaches an identifier (email, username, phone number and similar) appears in, and returns the matching records, including emails found for a domain. All endpoints are under https://9ghz.com/api/v1/. Detail, batch…

Source: https://osinttools.io/apis/9ghz/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/9ghz/

- Base URL: https://9ghz.com/api/v1
- Authentication: API key in the `X-Auth-Key` header. The docs show the key on the detail, batch and domain endpoints, not on breach_list or query.
- Rate limits: Not stated in the docs
- Vendor docs: https://9ghz.com/openapi

## Overview

9Ghz is a breach-search service. Its API lists known data breaches, tells you which breaches an identifier (email, username, phone number and similar) appears in, and returns the matching records, including emails found for a domain.

All endpoints are under `https://9ghz.com/api/v1/`. Detail, batch and domain endpoints take an API key in the `X-Auth-Key` header; the docs show no key on the breach list and the account query. Responses are JSON with `code`, `msg` and `data`; success is `code: 0` with `msg: "ok"`.

The docs also describe a file-upload batch endpoint (`/api/v1/query_file`, multipart, newline-delimited JSON answers); it is not covered here. Pricing, rate limits and error codes are not stated on the API page.

## Breaches

### List the breaches 9Ghz indexes, optionally for one region.

`GET /breach_list`

- Footprint: passive (the target is not contacted)

Returns an array of breach objects with title, domain, dates, record count, region and the kinds of information leaked.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `region` | query | string | no | Two-letter ISO 3166 country code. Omit for all regions. Example: US |

Response fields:

- `code` (integer): 0 on success
- `msg` (string): Status message
- `data[].id` (string): Breach id
- `data[].title` (string): Breach name
- `data[].domain` (string): Domain of the breached service
- `data[].breach_date` (string): Date of the breach
- `data[].index_date` (string): Date it was indexed
- `data[].record_count` (integer): Number of records
- `data[].region` (string): Region code
- `data[].leaked_info[]` (string): Kinds of data leaked
- `data[].source_url` (string): Source link
- `data[].logo` (string): Logo of the service

```bash
curl 'https://9ghz.com/api/v1/breach_list' \
  -H 'X-Auth-Key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "code": 0,
  "msg": "ok",
  "data": [
    {
      "id": "1001",
      "title": "Example Forum",
      "domain": "example.com",
      "breach_date": "2020-01-15",
      "index_date": "2021-03-02",
      "record_count": 120000,
      "region": "US",
      "leaked_info": [
        "email",
        "username"
      ],
      "source_url": "https://example.com/",
      "logo": "https://example.com/logo.png"
    }
  ]
}
```

## Breach lookups

### Find which breaches an email, username, phone or other identifier appears in.

`POST /query`

- Takes: Email, Username, Phone number, Name
- Footprint: passive (the target is not contacted)

Returns breach metadata for matches and a total count. No match returns an empty array.

Response fields:

- `data.total_count` (integer): Number of matching breaches
- `data.data[].id` (string): Breach id
- `data.data[].title` (string): Breach name
- `data.data[].domain` (string): Breached service domain
- `data.data[].breach_date` (string): Date of the breach
- `data.data[].record_count` (integer): Records in the breach
- `data.data[].leaked_info[]` (string): Kinds of data leaked

```bash
curl -X POST 'https://9ghz.com/api/v1/query' \
  -H 'X-Auth-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"keyword":"jane.doe@example.com"}'
```

Example response (200):

```json
{
  "code": 0,
  "msg": "ok",
  "data": {
    "total_count": 1,
    "data": [
      {
        "id": "1001",
        "title": "Example Forum",
        "domain": "example.com",
        "breach_date": "2020-01-15",
        "record_count": 120000,
        "leaked_info": [
          "email",
          "username"
        ]
      }
    ]
  }
}
```

### Return the breach records that match an identifier.

`POST /query_detail`

- Takes: Email, Username, Phone number, Name, IP address
- Footprint: passive (the target is not contacted)

Returns records with fields such as name, username, email, date of birth, gender, IP address and breach source; some include a password. The docs describe results as unmasked but their example shows masked values.

Response fields:

- `data.total_count` (integer): Number of records
- `data.data[].realname` (string): Name in the record
- `data.data[].username` (string): Username in the record
- `data.data[].email` (string): Email in the record
- `data.data[].date_of_birth` (string): Date of birth
- `data.data[].gender` (string): Gender
- `data.data[].ip_address` (string): IP address
- `data.data[].breach_source` (string): Breach the record came from
- `data.data[].breach_date` (string): Date of the breach

```bash
curl -X POST 'https://9ghz.com/api/v1/query_detail' \
  -H 'X-Auth-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"keyword":"jane.doe@example.com","scopes":["email"]}'
```

Example response (200):

```json
{
  "code": 0,
  "msg": "ok",
  "data": {
    "total_count": 1,
    "data": [
      {
        "realname": "Jane Doe",
        "username": "jdoe",
        "email": "jane.doe@example.com",
        "ip_address": "203.0.113.7",
        "breach_source": "Example Forum",
        "breach_date": "2020-01-15"
      }
    ]
  }
}
```

### Return breach records for up to 100 identifiers in one call.

`POST /query_detail_batch`

- Takes: Email, Username, Phone number, Name, IP address
- Footprint: passive (the target is not contacted)

Returns an array of result objects, each with data and total_count. The docs do not say how each result maps back to its keyword.

Response fields:

- `data[].total_count` (integer): Records for that result
- `data[].data[].email` (string): Email in the record
- `data[].data[].username` (string): Username in the record
- `data[].data[].breach_source` (string): Breach name

```bash
curl -X POST 'https://9ghz.com/api/v1/query_detail_batch' \
  -H 'X-Auth-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"keywords":["jane.doe@example.com","jdoe"],"scopes":["email","user_name"]}'
```

Example response (200):

```json
{
  "code": 0,
  "msg": "ok",
  "data": [
    {
      "total_count": 1,
      "data": [
        {
          "email": "jane.doe@example.com",
          "username": "jdoe",
          "breach_source": "Example Forum"
        }
      ]
    }
  ]
}
```

## Domain lookups

### List email addresses associated with a domain in breach data.

`POST /query_domain_email_list`

- Takes: Domain
- Footprint: passive (the target is not contacted)

Takes a domain name and returns an array of email addresses.

Response fields:

- `data[]` (string): Email address on the domain

```bash
curl -X POST 'https://9ghz.com/api/v1/query_domain_email_list' \
  -H 'X-Auth-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"keyword":"example.com"}'
```

Example response (200):

```json
{
  "code": 0,
  "msg": "ok",
  "data": [
    "jane.doe@example.com",
    "info@example.com"
  ]
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
