Yes, you can change the language of your search results when using the Pexels API by adding the locale
parameter to your API request.
Include the locale
parameter in your search query like this:
https://api.pexels.com/v1/search?query=cafe&locale=fr-FR
In the example above, locale=fr-FR
will return results that match the term "cafe" as it's understood in French.
If you don’t include a locale
, the default is English (en-US).
Supported Languages and Locale Codes
-
English: en-US
-
Portuguese: pt-BR
-
Spanish: es-ES
-
Catalan: ca-ES
-
German: de-DE
-
Italian: it-IT
-
French: fr-FR
-
Swedish: sv-SE
-
Indonesian: id-ID
-
Polish: pl-PL
-
Japanese: ja-JP
-
Traditional Chinese: zh-TW
-
Simplified Chinese: zh-CN
-
Korean: ko-KR
-
Thai: th-TH
-
Dutch: nl-NL
-
Hungarian: hu-HU
-
Vietnamese: vi-VN
-
Czech: cs-CZ
-
Danish: da-DK
-
Finnish: fi-FI
-
Ukrainian: uk-UA
-
Greek: el-GR
-
Romanian: ro-RO
-
Norwegian: no-NO
-
Slovak: sk-SK
-
Turkish: tr-TR
-
Russian: ru-RU
For more details, please refer to our API documentation: https://www.pexels.com/api/