newsflash icon indicating copy to clipboard operation
newsflash copied to clipboard

Updated API Info

Open MikeGruz opened this issue 6 years ago • 5 comments

It looks like the GDELT Project has provided documentation for the 2.0 API - I'm working on a project that makes use of this data, so I'm already almost finished updating the query_tv function to work with the changes (documentation can be found here).

I'll submit a pull request in the next day or so with changes. Mostly these involve names of API parameters, date formatting (they're now requiring date-time for date ranges) and the like.

MikeGruz avatar Feb 23 '18 20:02 MikeGruz

Many thanks!

Do you know if they have they fixed some of the issues with the other API parameters? I recall there being severe issues with choosing stations and station groupings (e.g. "National" was generating errors on their back-end even in their web tools).

Def make sure you add yourself to the DESCRIPTION for this (pls). I'll get this on CRAN ASAP after the PR.

hrbrmstr avatar Feb 23 '18 21:02 hrbrmstr

Yep! I think the National search is working again - albeit in a wonky fashion (unlike station parameters, "National" has to be surrounded by quotes - think it has to do with sub-markets such as San Francisco being two words).

I should already be in the DESCRIPTION - added that the last go-round. Will be in touch!

MikeGruz avatar Feb 23 '18 21:02 MikeGruz

Brief update: I have emailed GDELT about their dates - for some reason JSON results for date spans under a week don't include times. Hopefully can get some resolution on that soon, otherwise short time periods really aren't worth much using the API.

MikeGruz avatar Feb 26 '18 21:02 MikeGruz

Is it my imagination or did GDELT stop returning the text for everything but video clips?

hrbrmstr avatar Apr 17 '18 12:04 hrbrmstr

Yeah - it kind of looks like it. I wonder what's going on there, if it's an error or they just changed the overall operation of the API.

MikeGruz avatar Apr 18 '18 12:04 MikeGruz