---
updatedAt: 2026-09-30T13:48:00.000Z
agentTools:
  projectIndex: https://developers.localizejs.com/llms.txt
---

# Export a File using cURL

```curl cURL
curl --request GET \
     --url 'https://api.localizejs.com/v2.0/projects/YOUR_PROJECT_KEY/resources?language=es&format=CSV&filter=machine-translations&type=phrase' \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer YOUR_PRIVATE_API_KEY'
```

```json Response Example
{"success":true}
```

# Install cURL



Find the relevant cURL package or installer for your type of computer and install it.

# Open a Terminal Window



Open a terminal window
* Use the Terminal app on a Mac
* Windows Terminal on Windows

# Use cURL to export your file

<!-- curl@1-4 -->

Call the "Export content" endpoint using cURL by entering the sample code in your terminal window.

You'll need to provide the following:
* Your Project Key
* Your API Key
* The language code for the content you are exporting.
* The format of file being exported (case-sensitive).
* Any optional filters that you might want to specify.

Get more details on the parameters <a href="https://developers.localizejs.com/reference/api-projects-resources-get" target="_blank">here</a>.

# Results



The contents of the export will be displayed in the terminal window.

If you wish to capture the contents into a file, then you would want to pipe the data into a file by adding " > your-filename" to the end of the cURL call.