Yes this is exactly what I would need.

curl -i -X POST -H 'Content-Type: application/json' 
     -d '{"seriesid":["LEU0254555900", "APU0000701111"],
        "startyear":"2002", "endyear":"2012"}' 
        http://api.bls.gov/publicAPI/v1/timeseries/data/

You need the multiple series POST statement to be able to get more than three 
years of data, even if only pulling one series.

Thanks

> -----Original Message-----
> From: Riccardo (Jack) Lucchetti [mailto:r.lucchetti(a)univpm.it]
> Sent: Tuesday, April 22, 2014 7:32 AM
> To: Allin Cottrell
> Cc: Logan Kelly; Gretl development
> Subject: RE: [Gretl-devel] New function for retrieving data from BLS
> 
> On Tue, 22 Apr 2014, Allin Cottrell wrote:
> 
> > On Tue, 22 Apr 2014, Logan Kelly wrote:
> >
> >> A curl commamd is the only problem that I see as really difficult for
> >> me in the process of making a getBLS or getFRED in hansel.
> >
> > What features of curl would you need? Could you give a sample curl
> > command or two?
> 
> I guess this should be quite close to Logan's needs:
> 
> http://www.bls.gov/developers/api_unix.htm
> 
> Of course, in this special case the parameter to the -d option would probably
> be a JSON rendition of the contents of a bundle, so we may envision some
> special syntax for that; bearing in mind that we don't have generic arrays,
> that is (see previous discussion).
> 
> -------------------------------------------------------
>    Riccardo (Jack) Lucchetti
>    Dipartimento di Scienze Economiche e Sociali (DiSES)
> 
>    Università Politecnica delle Marche
>    (formerly known as Università di Ancona)
> 
>    r.lucchetti(a)univpm.it
>    http://www2.econ.univpm.it/servizi/hpp/lucchetti
> -------------------------------------------------------

Reply via email to