[127070] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: Upcoming Improvements to ARIN's Directory Service

daemon@ATHENA.MIT.EDU (John Curran)
Sat Jun 12 10:26:04 2010

From: John Curran <jcurran@arin.net>
To: Randy Bush <randy@psg.com>
Date: Sat, 12 Jun 2010 10:25:20 -0400
In-Reply-To: <m2vd9owe9w.wl%randy@psg.com>
Cc: "nanog@nanog.org" <nanog@nanog.org>
Errors-To: nanog-bounces+nanog.discuss=bloom-picayune.mit.edu@nanog.org

> john,
>=20
> today, a research batch script running periodic bulk whois work has a
> line something like
>=20
>    ncftpget ftp://user:pass@ftp.arin.net/arin_db.txt.gz
>=20
> well, it can actually be simpler.
>=20
> for the web 9.3 impaired of us, could you describe the simple batch
> script line under the new improved system?

Randy - You're going to have to get on ARIN Online at least=20
once to generate an key (this means after June 26), but then
accessing the data should be just as simple for a batch script
(i.e. use curl or wget for this purpose).  I've extracted the=20
relevant draft info from the June 26 release documents and=20
attached below.  This is obviously subject to change until=20
the release actually comes out...

/John

---- DOWNLOADING USING AN API KEY ----

The report can be downloaded directly without logging into=20
ARIN Online using a RESTful HTTP request containing your=20
API key.  The URL must look like:

https://www.arin.net/public/rest/downloads/nvpr?apikey=3DYOUR-API-KEY

There are a variety of ways to automate the retrieval of=20
this report.  For example, on a Linux system, where your=20
API key is API-1111-2222-3333-4444, you can use the=20
following 'curl' command to download the report file:

curl https://www.arin.net/public/rest/downloads/nvpr?apikey=3DAPI-1111-2222=
-3333-4444 > arin_nvpr.zip

You can manage your API keys on the when logged into your=20
ARIN Online account.




home help back first fref pref prev next nref lref last post