Reading in API JSON Response

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

jaylamb20
Posts: 37
Joined: Mon Mar 17, 2014 10:07 am

Reading in API JSON Response

Postby jaylamb20 » Thu Sep 24, 2015 9:19 am

Hello,

I have dutifully searched the documentation, add-ins, and forums and have not found an answer to this question:

Is it possible to send a GET request to a web API and store the response (in JSON) in a an EViews object (most likely a string)? I don't expect EViews to parse the object...if I could just read it into a string, I can write my own parser.

wfopen(), import(), and read() have not been successful thus far.

Thank you,

-James

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13317
Joined: Tue Sep 16, 2008 5:38 pm

Re: Reading in API JSON Response

Postby EViews Gareth » Thu Sep 24, 2015 9:31 am

Not easily.
Follow us on Twitter @IHSEViews

jaylamb20
Posts: 37
Joined: Mon Mar 17, 2014 10:07 am

Re: Reading in API JSON Response

Postby jaylamb20 » Thu Sep 24, 2015 10:00 am

No worries. To R, then!

-James

surabius
Posts: 2
Joined: Tue Jul 26, 2016 8:25 am

Re: Reading in API JSON Response

Postby surabius » Tue Jul 26, 2016 8:32 am

GET request to a web API and store the response (in JSON) and parse it. Is this still possible in the latest version?. If so, please direct me to the documentation.

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: Reading in API JSON Response

Postby startz » Tue Jul 26, 2016 8:54 am

You might think about using the new Python to EViews interface for this job.

surabius
Posts: 2
Joined: Tue Jul 26, 2016 8:25 am

Re: Reading in API JSON Response

Postby surabius » Tue Jul 26, 2016 11:57 am

Thank you for the response. Can you provide me some tips on how can i get started?. Looking for more detail please.

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: Reading in API JSON Response

Postby startz » Tue Jul 26, 2016 1:15 pm

EViews has a white paper on their website about hot to connect Python to EViews. The details of JSON are beyond me I'm afraid.


Return to “Data Manipulation”

Who is online

Users browsing this forum: Google [Bot] and 18 guests