From eeed3e27cd158aa573714776bbf5609951ec4508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 14 Nov 2019 16:33:55 +0100 Subject: [PATCH] Update README.md --- README.md | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4c6491d..ad188b0 100644 --- a/README.md +++ b/README.md @@ -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/)