Update README.md

pull/12/head
Raphaël Vinot 2019-11-14 16:33:55 +01:00 committed by GitHub
parent 091ca24091
commit eeed3e27cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 43 additions and 1 deletions

View File

@ -81,7 +81,7 @@ curl -X POST -d '{"asn": "5577", "date": "2019-05-19"}' https://bgpranking-ng.ci
Note: `date` isn't required.
## Response
### Response
```json
{
@ -99,6 +99,48 @@ Note: `date` isn't required.
}
```
## Get historical information for an ASN
```
curl -X POST -d '{"asn": "5577", "period": 5}' https://bgpranking-ng.circl.lu/json/asn_history
```
### Response
```json
{
"meta": {
"asn": "5577",
"period": 5
},
"response": {
"asn_history": [
[
"2019-11-10",
0.00036458333333333335
],
[
"2019-11-11",
0.00036168981481481485
],
[
"2019-11-12",
0.0003761574074074074
],
[
"2019-11-13",
0.0003530092592592593
],
[
"2019-11-14",
0.0003559027777777778
]
]
}
}
```
# Server Installation (if you want to run your own)
**IMPORTANT**: Use [pipenv](https://pipenv.readthedocs.io/en/latest/)