Introduction
Welcome to the GBADs Data Portal and API. Through this portal you can retrieve any data contained in the GBADs public databases. This public data portal does not require a login or API tokens. The Portal currently contains data from OIE, FAOSTAT, and the Central Statistical Agency of Ethiopia. Other data will be added in the future. This introductory page contains information on how to use the Portal and has a Quick API Guide with common API calls that you can use and adapt.
Using the API
You can use the API in three (3) different ways:
country,year,species,population
"Canada","2017","Beehives","701033"
"Canada","2017","Cattle","11535000"
"Canada","2017","Chickens","170120000"
"Canada","2017","Ducks","1499000"
"Canada","2017","Geese and guinea fowls","323000"
"Canada","2017","Goats","30050"
"Canada","2017","Horses","397870"
"Canada","2017","Mules","4000"
"Canada","2017","Pigs","13935000"
"Canada","2017","Sheep","813900"
"Canada","2017","Turkeys","5687000"
"Canada","2017","Cattle and Buffaloes","11535000"
"Canada","2017","Poultry Birds","177629000"
"Canada","2017","Sheep and Goats","843950"
Quick API Guide
These commands are designed to make specific population queries of OIE and FAOSTAT population data and return "country, year, species, population"
API Commands Reference
https://gbadske.org/api/dataportal/
https://gbadske.org/api/GBADsTables/public?format=html | text
https://gbadske.org/api/GBADsTable/public?table_name=table_name&format=html | text
https://gbadske.org/api/GBADsLivestockPopulation/data_source{faostat | oie}
https://gbadske.org/api/GBADsPublicQuery/{table_name}