Skip to content

Commit ef07c24

Browse files
committed
fix: docs readme
1 parent aff0e87 commit ef07c24

File tree

1 file changed

+47
-35
lines changed

1 file changed

+47
-35
lines changed

README.md

Lines changed: 47 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -10,53 +10,65 @@
1010

1111
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.
1212

13-
1413
## Endpoint da API
1514

1615
Sendo a data do dia: exemplo 09-11-2024.json
1716

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"
2021
```
2122

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)
2328

2429
Abaixo, a estrutura de dados retornada pela API:
2530

2631
```json
27-
[
32+
{
33+
"Date": "09-11-2024",
34+
"ResolvedHosts": [
2835
{
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"
3846
},
39-
"protocols": {
40-
"https": true,
41-
"http": false
47+
"Protocols": {
48+
"Https": true,
49+
"Http": true
4250
},
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"
4654
},
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+
}
6068
},
61-
...
62-
]
69+
.......
70+
]
71+
}
72+
```
73+
74+
# Essa API é pública e gratuita

0 commit comments

Comments
 (0)