SYNOPSIS
my $ind = WebService::OurWorldInData::Indicators->new();
my $result = $ind->query('gdp');
DESCRIPTION
Queries the Our World in Data Indicators api which provides data and metadata in CSV format. The Indicators object can be created with the following attributes:
- limit - the number of results to return
- min_popularity - filter results based on popularity score, value between 0 and 1
as described by the OWiD API.
my $ind = WebService::OurWorldInData::Indicators->new();
Methods
query
Search for indicators using semantic similarity.
my $json_response = $ind->query('gdp');
health
Runs a health check on the endpoint and returns a hashref with the status. It will warn if the status is not 'ok'.
Notes
Results returned in the JSON structure provided by OWID. No Perl object handling.