Search strings by key name, prefix, text, file, or tag
curl --request POST \
--url https://public-api.hyperlocalise.com/v1/projects/{projectId}/strings/search \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"keys": [
"<string>"
],
"keyPrefix": "<string>",
"search": "<string>",
"filePath": "<string>",
"tags": [
"<string>"
],
"includeHidden": false,
"limit": 100,
"offset": 0
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
keys: ['<string>'],
keyPrefix: '<string>',
search: '<string>',
filePath: '<string>',
tags: ['<string>'],
includeHidden: false,
limit: 100,
offset: 0
})
};
fetch('https://public-api.hyperlocalise.com/v1/projects/{projectId}/strings/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://public-api.hyperlocalise.com/v1/projects/{projectId}/strings/search"
payload = {
"keys": ["<string>"],
"keyPrefix": "<string>",
"search": "<string>",
"filePath": "<string>",
"tags": ["<string>"],
"includeHidden": False,
"limit": 100,
"offset": 0
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://public-api.hyperlocalise.com/v1/projects/{projectId}/strings/search"
payload := strings.NewReader("{\n \"keys\": [\n \"<string>\"\n ],\n \"keyPrefix\": \"<string>\",\n \"search\": \"<string>\",\n \"filePath\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"includeHidden\": false,\n \"limit\": 100,\n \"offset\": 0\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"strings": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "<string>",
"sourceText": "<string>",
"context": "<string>",
"type": "<string>",
"maxLength": 123,
"hidden": true,
"filePath": "<string>",
"tags": [
"<string>"
],
"designUrl": "<string>",
"customMetadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"missingKeys": [
"<string>"
],
"pagination": {
"offset": 1,
"limit": 50,
"total": 1
}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Strings
Search strings by key name, prefix, text, file, or tag
Requires strings:read. The list endpoint’s filters in a JSON body, so one call can look up to 1,000 key names and return up to 1,000 strings. Filters combine with AND. missingKeys lists, in request order, the keys that name no string in the project, in any file and whether hidden or not.
POST
https://public-api.hyperlocalise.com
/
v1
/
projects
/
{projectId}
/
strings
/
search
Search strings by key name, prefix, text, file, or tag
curl --request POST \
--url https://public-api.hyperlocalise.com/v1/projects/{projectId}/strings/search \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"keys": [
"<string>"
],
"keyPrefix": "<string>",
"search": "<string>",
"filePath": "<string>",
"tags": [
"<string>"
],
"includeHidden": false,
"limit": 100,
"offset": 0
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
keys: ['<string>'],
keyPrefix: '<string>',
search: '<string>',
filePath: '<string>',
tags: ['<string>'],
includeHidden: false,
limit: 100,
offset: 0
})
};
fetch('https://public-api.hyperlocalise.com/v1/projects/{projectId}/strings/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://public-api.hyperlocalise.com/v1/projects/{projectId}/strings/search"
payload = {
"keys": ["<string>"],
"keyPrefix": "<string>",
"search": "<string>",
"filePath": "<string>",
"tags": ["<string>"],
"includeHidden": False,
"limit": 100,
"offset": 0
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://public-api.hyperlocalise.com/v1/projects/{projectId}/strings/search"
payload := strings.NewReader("{\n \"keys\": [\n \"<string>\"\n ],\n \"keyPrefix\": \"<string>\",\n \"search\": \"<string>\",\n \"filePath\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"includeHidden\": false,\n \"limit\": 100,\n \"offset\": 0\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"strings": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "<string>",
"sourceText": "<string>",
"context": "<string>",
"type": "<string>",
"maxLength": 123,
"hidden": true,
"filePath": "<string>",
"tags": [
"<string>"
],
"designUrl": "<string>",
"customMetadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"missingKeys": [
"<string>"
],
"pagination": {
"offset": 1,
"limit": 50,
"total": 1
}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Body
application/json
Was this page helpful?

