|
10 | 10 |
|
11 | 11 | A API utiliza o método **GET** para listar os dados dos hosts, fornecendo informações detalhadas sobre cada domínio, incluindo seu nome, DNS, protocolos suportados, IPs associados e dados de regulamentação da Anatel. |
12 | 12 |
|
13 | | - |
14 | 13 | ## Endpoint da API |
15 | 14 |
|
16 | 15 | Sendo a data do dia: exemplo 09-11-2024.json |
17 | 16 |
|
18 | | -```txt |
19 | | -https://bet-blocker.com/api/v1/09-11-2024.json |
| 17 | +## Exemplo curl |
| 18 | + |
| 19 | +```bash |
| 20 | +curl --location "https://bet-blocker.com/api/v1/dns" |
20 | 21 | ``` |
21 | 22 |
|
22 | | -### Estrutura de Retorno (Callback) |
| 23 | +A parametro `date` corresponde a data que desejar obter o registro |
| 24 | +```txt |
| 25 | +https://bet-blocker.com/api/v1/dns?date=11-11-2024 |
| 26 | +``` |
| 27 | +### Estrutura de retorno previsto (Callback) |
23 | 28 |
|
24 | 29 | Abaixo, a estrutura de dados retornada pela API: |
25 | 30 |
|
26 | 31 | ```json |
27 | | -[ |
| 32 | +{ |
| 33 | +"Date": "09-11-2024", |
| 34 | +"ResolvedHosts": [ |
28 | 35 | { |
29 | | - "name": "001game9", |
30 | | - "host": "001game9.com", |
31 | | - "dns": { |
32 | | - "type": "CNAME", |
33 | | - "name": "001game9", |
34 | | - "reverse_dns": "", |
35 | | - "canonical_name": "", |
36 | | - "ttl": "", |
37 | | - "resolved_at": "" |
| 36 | + "Name": "a5sbet.com", |
| 37 | + "Host": "a5sbet.com", |
| 38 | + "DNS": { |
| 39 | + "Type": "InterNetwork", |
| 40 | + "Name": "a5sbet.com", |
| 41 | + "Host": "a5sbet.com", |
| 42 | + "ReverseDns": "104.21.42.168", |
| 43 | + "CanonicalName": "a5sbet.com", |
| 44 | + "TTl": "3600", |
| 45 | + "ResolvedAt": "2024-11-09T17:48:37.149205Z" |
38 | 46 | }, |
39 | | - "protocols": { |
40 | | - "https": true, |
41 | | - "http": false |
| 47 | + "Protocols": { |
| 48 | + "Https": true, |
| 49 | + "Http": true |
42 | 50 | }, |
43 | | - "ips": { |
44 | | - "ip": "127.0.0.1", |
45 | | - "resolved": "" |
| 51 | + "Ips": { |
| 52 | + "Ip": "104.21.42.168", |
| 53 | + "ResolvedAt": "2024-11-09T17:48:37.149204Z" |
46 | 54 | }, |
47 | | - "anatel": [ |
48 | | - { |
49 | | - "urlFull": "https://www.gov.br/anatel/pt-br/regulado/fiscalizacao/planilha_operacao_url20241011_09_10-1.pdf", |
50 | | - "url": "https://www.gov.br/anatel/pt-br/regulado/fiscalizacao", |
51 | | - "file": "planilha_operacao_url20241011_09_10-1.pdf", |
52 | | - "date": "20241011", |
53 | | - "hour": "09_10-1", |
54 | | - "mime": "pdf" |
55 | | - } |
56 | | - ], |
57 | | - "checked_at": "2024-11-08 00:00:00", |
58 | | - "insert_at": "2024-11-08 00:00:00", |
59 | | - "updated_at": "2024-11-08 00:00:00" |
| 55 | + "Anatel": { |
| 56 | + "AnatelInfo": { |
| 57 | + "UrlFull": null, |
| 58 | + "Url": null, |
| 59 | + "File": null, |
| 60 | + "Date": "11/9/2024", |
| 61 | + "Hour": "5:48PM", |
| 62 | + "Mime": "application/json" |
| 63 | + }, |
| 64 | + "CheckedAt": "2024-11-09T17:48:13.770764Z", |
| 65 | + "InsertAt": "2024-11-09T17:48:13.770765Z", |
| 66 | + "UpdatedAt": "2024-11-09T17:48:13.770765Z" |
| 67 | + } |
60 | 68 | }, |
61 | | - ... |
62 | | -] |
| 69 | + ....... |
| 70 | + ] |
| 71 | +} |
| 72 | +``` |
| 73 | + |
| 74 | +# Essa API é pública e gratuita |
0 commit comments