Get started with the Humanitarian Action GraphQL API
The API provides read-only access to humanitarian planning and response data, including plans, projects, emergencies, sectors, requirements and organizations. With GraphQL, you choose the fields you need and can request related data in one query.
1. Sign in
2. Get a subscription key
3. Use the API
Sign in
OCHA users: On the sign-in page, select Entra ID and use your
@un.orgaccount.Other users: Sign up with your email address and password. Activate your account using the link sent by email, then sign in.
Get a subscription Key - Subscribe to Evaluation
Open Products and select Evaluation. Enter a name for your subscription, such as YourName-Evaluation, and click Subscribe. Your subscription is active immediately.
Evaluation allows up to 5 API requests per minute and 100 requests per 24-hour period, per subscription. You can use it from the portal or from your own tools and applications. If you need higher limits, contact the SPPB-Tools team.
To use the API in another tool, open your profile and copy one of your subscription keys.
Explore the API in the portal
Open APIs, select the GraphQL API, and choose Try it. Paste this query into the test console and send the request:
query {plans(first: 5) {items {IdName}}}
The JSON response contains up to five plans. See the query documentation for more examples.
Use the API in your application
Use this endpoint from Python, C#, Node.js, Postman, Excel, an ETL or another client:
https://api.humanitarianaction.info/graphql/v1
Send a POST request with a JSON body containing your GraphQL query. Include these headers:
Content-Type: application/jsonOcp-Apim-Subscription-Key: <your-subscription-key>
Use the API in your application
Contact the SPPB-Tools team. For higher limits, describe what you are building, the data you need and your expected request volume. For help with a query, share the query and error message, but do not send your subscription key.