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

# Stealer Logs (Legacy)

Search stealer log collections and breach compilations by email or domain.

<Warning>
  This is a legacy endpoint. Use the [Breach Lookup](/api-reference/endpoint/breach) endpoint for newer indexed data.
</Warning>

## Parameters

<ParamField query="query" type="string" required>
  The search term (email address or domain name)
</ParamField>

<ParamField query="type" type="string" default="email">
  The search type. Accepted values: email, domain.
  If not provided, the type is auto-detected based on the query format (presence of @ = email, otherwise domain).
</ParamField>

## Headers

<ParamField header="X-API-KEY" type="string" required>
  Your API key
</ParamField>

## Response

Returns matching records found across the stealer log database collection.

## Example Request

<CodeGroup>
  ```bash cURL theme={null}
  curl "https://www.osintcat.net/api/database-search?query=example@email.com&type=email" \
       -H "X-API-KEY: YOUR_API_KEY"
  ```

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

  url = "https://www.osintcat.net/api/database-search"
  params = {"query": "example@email.com", "type": "email"}
  headers = {"X-API-KEY": "YOUR_API_KEY"}

  response = requests.get(url, params=params, headers=headers)

  if response.ok:
      print(response.json())
  else:
      print(f"Error: {response.status_code}")
  ```

  ```javascript Node.js theme={null}
  fetch('https://www.osintcat.net/api/database-search?query=example@email.com&type=email', {
      headers: { 'X-API-KEY': 'YOUR_API_KEY' }
  })
      .then(res => res.json())
      .then(json => console.log(json))
      .catch(err => console.error('error:' + err));
  ```

  ```php PHP theme={null}
  <?php

   = curl_init();
   = "https://www.osintcat.net/api/database-search?query=example@email.com&type=email";

  curl_setopt_array(, [
      CURLOPT_URL => ,
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_HTTPHEADER => ["X-API-KEY: YOUR_API_KEY"],
  ]);

   = curl_exec();
   = curl_error();
  curl_close();

  if () {
      echo "cURL Error #:" . ;
  } else {
      echo ;
  }
  ```

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

  import (
      "encoding/json"
      "fmt"
      "io"
      "net/http"
      "net/url"
  )

  func main() {
      baseURL := "https://www.osintcat.net/api/database-search"
      params := url.Values{}
      params.Add("query", "example@email.com")
      params.Add("type", "email")

      req, _ := http.NewRequest("GET", baseURL+"?"+params.Encode(), nil)
      req.Header.Set("X-API-KEY", "YOUR_API_KEY")

      client := &http.Client{}
      resp, err := client.Do(req)
      if err != nil {
          fmt.Printf("Error: %v\n", err)
          return
      }
      defer resp.Body.Close()

      body, _ := io.ReadAll(resp.Body)
      var result map[string]interface{}
      json.Unmarshal(body, &result)
      fmt.Printf("%+v\n", result)
  }
  ```
</CodeGroup>
