alex9smith / gdelt-doc-api

A Python client for the GDELT 2.0 Doc API
MIT License
91 stars 20 forks source link

Difference between "http" and "https" version of the api #3

Closed Sinha-Ujjawal closed 3 years ago

Sinha-Ujjawal commented 3 years ago

If you change "https://api.gdeltproject.org/api/v2/doc/doc?query={query_string}&mode={mode}&format=json" with "http://api.gdeltproject.org/api/v2/doc/doc?query={query_string}&mode={mode}&format=json" (notice http and https) in _query method, the code still works. Just wondering what's the difference?

alex9smith commented 3 years ago

The GDELT API endpoint responds to requests over both HTTP and HTTPS. This library will always use HTTPS so data's encrypted between the client and server, but the response from the API is identical so the library will still work. I wouldn't recommend that though.

If you've got any security concerns about the API responding on HTTP then you'd need to contact GDELT directly. This project's not affiliated with them in any way.