# File download endpoint

## Introduction

The File URL endpoint allows you to download data from HDX directly in a programmatic way, without needing to use the HDX website. Leveraging additional endpoints like the HDX metadata endpoints further lets you access data without using the HDX UI. This approach is well suited for batch processing, scheduled pipelines, and integration with external tools that consume complete data resources directly. (For large data handling or filtering, use the Tabular Data Endpoints, link [here](https://docs.humdata.org/build/hdx-apis/tabular-data-endpoints)).

The HDX File URL endpoint is powered by the CKAN core API and relies on resource metadata to identify downloadable files.

The following documentation is intended for analysts and technical audiences who want to retrieve data files in a reproducible way, troubleshoot common issues, and integrate HDX data into automated workflows and tools.

## Building a File URL query

The file URL query is reproducible, granted you know the dataset ID and resource ID along with the format type.

<div data-with-frame="true"><figure><img src="/files/6GGgYdzBH7l6j2nx8k93" alt=""><figcaption></figcaption></figure></div>

See sample URL below. Replace the `dataset_id`, `resource_id`, `resource_name`, and `format` with your desired dataset.&#x20;

`https://data.humdata.org/dataset/<DATASET_ID>/resource/<RESOURCE_ID>/download/<RESOURCE_NAME>.`

## Feedback and support

We are always adding new data and features into the HDX API endpoints. If you would like to request either a new feature or think a critical dataset is missing, please let us know!

Report bugs and request features by emailing [hdx@un.org](mailto:undefined).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.humdata.org/build/hdx-apis/file-download-endpoint.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
