---
title: Breach Directory
slug: homologacao-atmosphere/breach-directory
description: Learn about a powerful data breach detection API in this document. Discover the essential parameters needed to utilize the API, including the API key and host. Explore the various functions it offers, such as checking for compromised passwords, usernames,
createdAt: 2022-08-10T19:20:15.000Z
---

## Resumo

- Verifique se um e-mail, nome de usuário, senha ou número de telefone foi comprometido em uma violação de dados.

## Parâmetros

| **Parâmetro**       | **Requerido** | **Tipo** | **Escolhas \| Valor Padrão**                                                              | **Comentários**                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ------------------- | ------------- | -------- | ----------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| x\_rapidapi\_key    | sim           | string   |                                                                                           | Api key                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| x\_rapid\_api\_host | sim           | string   |                                                                                           | API host                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| func                | sim           | string   | Escolhas:<br />- auto(default)<br />- sources<br />- password<br />- domain<br />- dehash | Select the function you wish to use from the following:<br /><br />auto - Returns passwords, SHA-1 hashes, and sources given any username or email.<br /><br />sources - Returns sources given username or email.<br />password - Returns how many times a given password has been leaked.<br /><br />domain - Returns passwords, SHA-1 hashes, and sources given any domain (Limited to 1000 results for security).<br /><br />dehash - Attempts to decrypt a given hash. |
| term                | sim           | string   |                                                                                           | email, username, password, or phone number                                                                                                                                                                                                                                                                                                                                                                                                                                 |



## Exemplos

```yaml
- name:
  breach_directory:
    x_rapidapi_key: 2fb704f3******************************************
    x_rapid_api_host: breachdirectory.p.rapidapi.com
    func: auto
    term: email@email.com
  register: result
- debug:
    var: "{{ result }}"
```

## Valores retornados

| **Chave** | **Tipo** | **Retornado quando** | **Descrição** |
| --------- | -------- | -------------------- | ------------- |
| sucess    | boolean  | sempre               |               |
| found     | integer  | sucess = true        |               |
| result    | dict     | sucess = true        |               |

