{"id":19440515,"url":"https://github.com/devinit/datahub-api-documentation","last_synced_at":"2026-05-15T17:03:08.698Z","repository":{"id":72842335,"uuid":"153648645","full_name":"devinit/datahub-api-documentation","owner":"devinit","description":"Documentation for how to access the Datahub API","archived":false,"fork":false,"pushed_at":"2018-10-18T17:17:46.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-07T21:46:54.639Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devinit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-18T15:43:44.000Z","updated_at":"2018-10-18T17:17:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"6ccb7257-e9ce-4a51-9282-160cab6669e6","html_url":"https://github.com/devinit/datahub-api-documentation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devinit%2Fdatahub-api-documentation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devinit%2Fdatahub-api-documentation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devinit%2Fdatahub-api-documentation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devinit%2Fdatahub-api-documentation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devinit","download_url":"https://codeload.github.com/devinit/datahub-api-documentation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240621326,"owners_count":19830516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T15:29:32.652Z","updated_at":"2026-05-15T17:03:03.666Z","avatar_url":"https://github.com/devinit.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Datahub API Documentation\n\n### Introduction\n\nThe Datahub is Development Initiative’s user data portal, containing a comprehesive set of visualisations and dashboards meant to inform users about all dimensions of development and humanitarian activity. Behind the Datahub is a database, known as the Development Data Warehouse (DDW). The following is a guide for how to access the public-facing API of the DDW. At present, all of our API functions are built to power various features of the Datahub, but will be expanded over time.\n\n### Technology Stack\n\nThe DDW is a stock PostgresQL database. Access to this database is available through a GraphQL server hosted on port 3000 of 212.111.41.68. By sending POST requests with small query parameters, it is possible for a technical user of the DDW to gain access to the live data within the DDW.\n\nFor an introduction to Graphql, please see https://graphql.org/learn/\n\n\n### Using the API\n\nGraphQL queries can be sent via POST request to http://212.111.41.68:3000. A very simple query for `name`, `year`, and `value` for humanitarian flows to the module responsible for colouring the Datahub's world map might look like so:\n\n```\n'{\n    mapData(id: \"data_series.in_ha\") {\n      map {\n        name\n        year\n        value\n      }\n    }\n  }'\n```\n\nAll of the datasets available via the `mapData` module are defined within this concept file from the `datahub-cms` repository: https://github.com/devinit/datahub-cms/blob/master/global-picture/concept.csv (Note: `subnational_p20` and `survey_p20` are placeholder datasets only for more complicated data stored within DI's tileserver itself.) You can see an example of how this query might be operationalized in this repo here  https://github.com/devinit/datahub-api-documentation/blob/master/graphql.R or here https://github.com/devinit/datahub-api-documentation/blob/master/graphql.py\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevinit%2Fdatahub-api-documentation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevinit%2Fdatahub-api-documentation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevinit%2Fdatahub-api-documentation/lists"}