# CSV API

If you publish your insight such as Chart, Data, Analytics with the download option enabled, you can download the data from the server by using the CSV API. You can check the CSV API URL by selecting "API - CSV data" from the download button on the server insight page.

Example: [Exchange Rate - Japanese Yen vs U.S. Dollar](https://exploratory.io/viz/kanaugust/Exchange-Rate-Japanese-Yen-vs-U-S-Dollar-Fdt2eDO7CC?lang=en)

![](https://2850417076-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4HLCK3olgduYoe3RVS%2Fuploads%2Fgit-blob-8fbb250de36dc7fd8cf3c2e5386e66b82716979c%2Fcsvapi0.png?alt=media)

![](https://2850417076-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4HLCK3olgduYoe3RVS%2Fuploads%2Fgit-blob-2d67674c61abf8c52704ad0a80d33daee448d3bf%2Fcsvapi1.png?alt=media)

## Specification

The API specification is following. You need the API Key only if the insight is published privately.

```
https://exploratory.io/public/api/{User ID}/{Insight ID}/data?api_key={API Key}
```


---

# 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.exploratory.io/product-features/share/csvapi.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.
