API Reference
Languages
List the response languages accepted by the `lang` query parameter on every i18n-aware endpoint. Use to populate language pickers, validate user input, or auto-detect available locales in agent integrations.
Get field labels for a language
https://roxyapi.com/api/v2/languages/field-labelsReturns the display label for every request field name and every selectable option across the API, in the requested language. Use this to build a birth-data form, a chart widget, or an admin picker that reads in your customer language without hardcoding a word: look a field name up in `fields`, and an option up in `enums` under `{fieldName}.{value}`. Values a caller sends stay the canonical English identifier, so a translated form still submits a valid request. Labels a language has not been translated into yet return English, and the whole payload is stable enough to cache for a day.
Call it
import { createRoxy } from '@roxyapi/sdk'
const roxy = createRoxy(process.env.ROXY_API_KEY!)
const { data } = await roxy.languages.getFieldLabels()Install: npm install @roxyapi/sdk
from roxy_sdk import create_roxy
roxy = create_roxy("YOUR_API_KEY")
result = roxy.languages.get_field_labels()Install: pip install roxy-sdk
use function RoxyAPI\Sdk\createRoxy;
$roxy = createRoxy(getenv('ROXY_API_KEY'));
$result = $roxy->languages->getFieldLabels();Install: composer require roxyapi/sdk
using RoxyApi;
var roxy = new RoxyClient(Environment.GetEnvironmentVariable("ROXY_API_KEY")!);
var result = await roxy.Languages.FieldLabels.GetAsync();Install: dotnet add package RoxyApi.Sdk
import roxyapi "github.com/RoxyAPI/sdk-go"
roxy, _ := roxyapi.NewRoxy(os.Getenv("ROXY_API_KEY"))
resp, _ := roxy.Languages.GetFieldLabels(ctx, nil)Install: go get github.com/RoxyAPI/sdk-go
use roxyapi::{Roxy, types};
async fn call(roxy: &Roxy, params: &types::GetFieldLabelsParams) -> Result<(), roxyapi::Error> {
let result = roxy.languages().get_field_labels(params).await?;
println!("{result:?}");
Ok(())
}Install: cargo add roxyapi
curl "https://roxyapi.com/api/v2/languages/field-labels" \
-H "X-API-Key: YOUR_KEY"Typed SDKs in 6 languages.
Parameters
Response fields
| Field | Type | Description |
|---|---|---|
langrequired | string enum | Language these labels resolved to. Echoes the `lang` query parameter, or `en` when it is omitted. |
fieldsrequired | object | Label per request field or parameter name. Keys are the wire names used in request bodies, query parameters and path parameters, such as `birthDate`, `timezone` or `houseSystem`. |
enumsrequired | object | Label per selectable option, keyed `{fieldName}.{value}` so the same value can read differently under different fields. For example `nodeType.mean`, `houseSystem.whole-sign` and `id.rat`. An id shared by collections with different display names is omitted. Split on the first dot: the field name is before it, and everything after it is the value you send back unchanged. |
Example response
{
"lang": "es",
"fields": {},
"enums": {}
}List supported response languages
https://roxyapi.com/api/v2/languagesReturns the language codes accepted by the `lang` query parameter on every i18n-aware endpoint. Use this to populate language pickers, validate user input before calling chart or reading endpoints, or auto-detect which languages an agent integration can offer. Codes follow ISO 639-1. Endpoints without a translation for the requested language fall back to English silently.
Call it
import { createRoxy } from '@roxyapi/sdk'
const roxy = createRoxy(process.env.ROXY_API_KEY!)
const { data } = await roxy.languages.listLanguages()Install: npm install @roxyapi/sdk
from roxy_sdk import create_roxy
roxy = create_roxy("YOUR_API_KEY")
result = roxy.languages.list_languages()Install: pip install roxy-sdk
use function RoxyAPI\Sdk\createRoxy;
$roxy = createRoxy(getenv('ROXY_API_KEY'));
$result = $roxy->languages->listLanguages();Install: composer require roxyapi/sdk
using RoxyApi;
var roxy = new RoxyClient(Environment.GetEnvironmentVariable("ROXY_API_KEY")!);
var result = await roxy.Languages.GetAsync();Install: dotnet add package RoxyApi.Sdk
import roxyapi "github.com/RoxyAPI/sdk-go"
roxy, _ := roxyapi.NewRoxy(os.Getenv("ROXY_API_KEY"))
resp, _ := roxy.Languages.ListLanguages(ctx, nil)Install: go get github.com/RoxyAPI/sdk-go
use roxyapi::Roxy;
async fn call(roxy: &Roxy) -> Result<(), roxyapi::Error> {
let result = roxy.languages().list_languages().await?;
println!("{result:?}");
Ok(())
}Install: cargo add roxyapi
curl "https://roxyapi.com/api/v2/languages" \
-H "X-API-Key: YOUR_KEY"Typed SDKs in 6 languages.
Response fields
Example response
{
"languages": [
{
"code": "en",
"name": "English",
"nativeName": "English"
}
]
}Hi, I am Rosie, your guide to the RoxyAPI insight tools.
Ask me to read your birth chart, pull a card, or map your numbers, and I will interpret what it means for you. Unlike most AIs, I never make the numbers up: every reading runs on real, verified calculations. Curious about the API, pricing, or docs instead? Ask me that too.
