# API

PDH.stat provides machine-to-machine accessibility to Pacific data through its RESTful API. A freely available SDMX-based web service is exposed on the Web at the following endpoint:

{% embed url="<https://stats-nsi-stable.pacificdata.org>" %}

![](https://3496061366-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MDSpD50SdXxsYnU7P9D%2F-MK7yGdpEuh5mHRmRAjf%2F-MK7zRP0AcciiPDbdeZ3%2Fimage.png?alt=media\&token=fae3f5a9-5062-48a8-9787-78011378cbe0)

![Overview of main queriable SDMX classes](https://3496061366-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MDSpD50SdXxsYnU7P9D%2F-MK8BWxx0p7jflfZKLf3%2F-MK8BrgPmDxI5XAGuG6W%2Fimage.png?alt=media\&token=cf59a464-c1f2-4767-b685-70874e0df8fa)

Sample API calls corresponding to particular data views can be produced from the Data Explorer, for more information on this see [dedicated section from the Data Explorer documentation](https://docs.pacificdata.org/dotstat/de).

For more information on SDMX web services see the following references:

* [SDMX official website](https://sdmx.org/)
* [SDMX information model](https://sdmx.org/wp-content/uploads/SDMX_2-1_SECTION_2_InformationModel_2020-07.pdf)
* [SDMX REST web services guidelines](https://github.com/sdmx-twg/sdmx-rest/) and its [SDMX 2.1 RESTful web services cheat sheet](https://github.com/sdmx-twg/sdmx-rest/blob/master/doc/rest_cheat_sheet.pdf?raw=true)


---

# 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.pacificdata.org/dotstat/api.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.
