Skip to content
OSINTtools.io

9Ghz API

Data breach search engine covering over a thousand breached sites, searchable by email, name, username, phone or IP.

Base URL
https://9ghz.com/api/v1
Sign-in
API key
Format
REST
Endpoints
5

Compiled by OSINTtools.io editors from 9ghz.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

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.

Quick start

  1. Get a key

    Create an account with 9Ghz and copy your api key. Where to get it

  2. Make your first request

    List the breaches 9Ghz indexes, optionally for one region.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://9ghz.com/api/v1/breach_list' \
      -H 'X-Auth-Key: YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "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"
        }
      ]
    }

Authentication

Send your API key in the X-Auth-Key header of every request.

The docs show the key on the detail, batch and domain endpoints, not on breach_list or query.

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs

Breaches

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

Query parameters

regionstring

Two-letter ISO 3166 country code. Omit for all regions.

Example: US
Response fields · 12Show

codeinteger

0 on success

msgstring

Status message

idstring

Breach id

titlestring

Breach name

domainstring

Domain of the breached service

breach_datestring

Date of the breach

index_datestring

Date it was indexed

record_countinteger

Number of records

regionstring

Region code

leaked_info[]string

Kinds of data leaked

source_urlstring

Source link

logostring

Logo of the service

curl 'https://9ghz.com/api/v1/breach_list' \
  -H 'X-Auth-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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

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

Request body (JSON) · 1Show

keywordstringalways present

Email, username, phone number or similar identifier

Response fields · 7Show

total_countinteger

Number of matching breaches

idstring

Breach id

titlestring

Breach name

domainstring

Breached service domain

breach_datestring

Date of the breach

record_countinteger

Records in the breach

leaked_info[]string

Kinds of data leaked

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"}'
Replace YOUR_API_KEY with your key
Response
{
  "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"
        ]
      }
    ]
  }
}

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.

Request body (JSON) · 2Show

keywordstringalways present

Identifier to search

scopes[]string

Optional. One or more of email, phone, real_name, user_name, id_number, ip

Response fields · 9Show

total_countinteger

Number of records

realnamestring

Name in the record

usernamestring

Username in the record

emailstring

Email in the record

date_of_birthstring

Date of birth

genderstring

Gender

ip_addressstring

IP address

breach_sourcestring

Breach the record came from

breach_datestring

Date of the breach

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"]}'
Replace YOUR_API_KEY with your key
Response
{
  "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"
      }
    ]
  }
}

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.

Request body (JSON) · 2Show

keywords[]stringalways present

Identifiers to search, at most 100

scopes[]string

Optional. email, phone, real_name, user_name, id_number, ip

Response fields · 4Show

total_countinteger

Records for that result

emailstring

Email in the record

usernamestring

Username in the record

breach_sourcestring

Breach name

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"]}'
Replace YOUR_API_KEY with your key
Response
{
  "code": 0,
  "msg": "ok",
  "data": [
    {
      "total_count": 1,
      "data": [
        {
          "email": "jane.doe@example.com",
          "username": "jdoe",
          "breach_source": "Example Forum"
        }
      ]
    }
  ]
}

Domain lookups

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

Request body (JSON) · 1Show

keywordstringalways present

Domain name

Response fields · 1Show

data[]string

Email address on the domain

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"}'
Replace YOUR_API_KEY with your key
Response
{
  "code": 0,
  "msg": "ok",
  "data": [
    "jane.doe@example.com",
    "info@example.com"
  ]
}