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

# Get a List of Phrases Filtered by Labels

```node Node
var myLabelsArray = ['contact-form', 'other-label'];
var myLabels = myLabelsArray.toString();

const projectKey = 'YOUR_PROJECT_KEY';
const apiKey = 'YOUR_API_KEY';

const fetch = require('node-fetch');

const url = 'https://api.localizejs.com/v2.0/projects/' + projectKey + '/phrases?skip=0&state=active&type=phrase&labels=' + myLabels;
const options = {
  method: 'GET',
  headers: {
    Accept: 'application/json', 
    Authorization: 'Bearer ' + apiKey
  }
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
```

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

# Create a list of Label(s)

<!-- node@1-2 -->

Create a list of 1 or more labels that you'd like to use to filter the list of phrases returned.

# Define Auth Tokens

<!-- node@4-5 -->

Enter the Project Key and API Key from your Localize dashboard.

# Get Phrases

<!-- node@7-21 -->

Call the Get Phrases endpoint to retrieve the filtered list of active phrases.