Skip to main content
Learn how to work more efficiently with Phrase Strings API v2 with these workflow-oriented examples. Most examples use the q parameter, which accepts a qualifier-based search syntax. Qualifiers let you filter keys and translations by tag, verification status, date range, and more. Qualifiers can be combined in a single query string (space-separated). Note that search results are drawn from an index and may lag behind recent writes by a few minutes on large projects. Use these examples as starting points for bulk operations such as verifying, tagging, or exporting filtered subsets of your localization data.
To authenticate, pass your access token in the Authorization header. See Authentication for how to obtain a token.

Find excluded translations with a certain content

List excluded translations for the given project which start with the term PhraseApp.

Parameters

Example Request

Response (200 OK)

Find unverified translations with a certain content

List unverified translations for the given project which start with the term PhraseApp and are not verified.

Parameters

Example Request

Response (200 OK)

Verify translations selected by query

Verify all translations that are matching the query my dog.

Parameters

Example Request

Response (200 OK)

Find recently updated keys

Find updated keys with with the updated_at qualifier like updated_at:>=2013-02-21T00:00:00Z. This example returns keys that have been updated on or after 2013-02-21.

Parameters

Example Request

Response (200 OK)

Find keys with a certain tag

Keys with certain tags can be filtered with the qualifier tags:.

Parameters

Example Request

Response (200 OK)

Add tags to collection of keys

Add the tags landing-page and release-1.2 to all keys that start with dog and are translated in the locale abcd1234abcd1234abcd1234abcd1234.

Parameters

Example Request

Response (200 OK)

Remove tags from collection of keys

Remove the tags landing-page and release-1.2 from all keys that start with dog and are translated in the locale abcd1234abcd1234abcd1234abcd1234.

Parameters

Example Request

Response (200 OK)

Find keys with broad text match

Example query my dog.

Parameters

Matches

My dog is lazy my dog is lazy angry dog in my house

Example Request

Response (200 OK)

Find keys with exact text match

Example query "my dog is lazy" (note backslashes before any whitespace character in the example query)

Parameters

Matches

My dog is lazy my dog is lazy angry dog in my house

Example Request

Response (200 OK)

Find keys with wildcard character matching

Example query *dog is*

Parameters

Matches

My dog is lazy my dog is lazy angry dog in my house

Example Request

Response (200 OK)

Upload an Excel file with several translations

Suppose you have an excel file where the ‘A’ column contains the key names, the ‘B’ column contains English translations, the ‘C’ column contains German translations and the ‘D’ column contains comments. Furthermore, the actual content starts in the second row, since the first row is reserved for a header. You can upload this file and import all translations at once!

Parameters

Example Request

Response (200 OK)

Errors