Skip to content

Is filtering in gd2.Search() Function possible? #80

@ElNino9495

Description

@ElNino9495

Hi,

I'm using gdeltPyR to query the GDELT events table. I can successfully filter using fields like actor1countrycode or actor1code.
I would like to know if it's possible to directly query/filter events based on actor-specific geographic fields, such as Actor1CountryCode or Actor2CountryCode (or whatever the GDELT API query syntax might be for these fields).

For example, is a query like actor1geocountrycode:US or actor2geocountrycode:IND supported? If so, what is the correct syntax?

The GDELT documentation lists fields like Actor1CountryCode and Actor2CountryCode. I'm trying to understand if these can be used as direct filters in the API query string that gdeltPyR passes to the GDELT API, or if filtering on these fields must be done client-side after retrieving a broader set of results.
As I need data from 2008 - 2023, simply querying every single event and then filtering is too time consuming.
Any guidance on this would be appreciated. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions