Skip to main content
Rodz API
FR EN
v2.0.0

Reference / Enrichment / Validate a location filter value

Validate a location filter value

Validate a location name before you put it in a signal's locations or excludedLocations filter — so a typo fails fast here instead of silently producing a signal that matches no one.

GET https://api.rodz.io/api/v1/enrichment/validate-location

Documented from the OpenAPI contract, API version 2.0.0.

Read the full description

Validate a location name before you put it in a signal’s locations or excludedLocations filter — so a typo fails fast here instead of silently producing a signal that matches no one.

Input: name (query parameter) — a single country, region, or city name (e.g. France, Île-de-France, Paris). Optional signalType — set it to job_offers, republished_job_offers or recruitment_campaign when the name is for a job signal’s locations: job postings are searched against their own place directory, so validate them against that one. A qualifier is understood — Nantes (France), Berlin, Germany — and checked against the match. A continent is valid for a job signal and covers all of its countries: Europe, Asia, Africa, North America, South America, Oceania, in English or French (Asie, Amérique du Nord); name returns it in English.

Output: valid (boolean — whether the name is recognized), id (the matched location’s geo id, or null), name (the geo directory’s label for the match — use it to confirm your input resolved to the place you meant; null when not recognized), and message (why it was rejected, present only when valid is false).

Submit the plain name you intend (never a geo id) in a signal’s locations / excludedLocations; the filter matches on the name. Use this endpoint to catch two mistakes before writing a signal: an unrecognized name (valid: false), and a recognized-but-wrong match — e.g. uk matches Ukraine, so if you mean the United Kingdom, submit United Kingdom. The create and update endpoints reject any unrecognized name with a 400 INVALID_LOCATION listing the offending values.

Authentication and headers

Every route needs an API key. You create it in the dashboard, under Integrations then API. See how to get a key.

Authorization required

Bearer followed by your API key, for example Bearer USR_...

Parameters

name string query required

Location name to validate, e.g. 'France', 'Paris', 'Germany'.

example
"Germany"
signalType string query optional accepts null

Optional. The signal type the location is for. Pass job_offers, republished_job_offers or recruitment_campaign to validate a job signal's locations — job postings are searched against their own place directory, so a name can be valid for one and not the other.

example
"job_offers"

Responses

200 Validation result.
Response schema · LocationValidationResponse
valid boolean required

True if the name is a recognized location.

id string optional accepts null

Geo id for the recognized location (null when not recognized).

name string optional accepts null

The geo directory's label for the matched location — use it to confirm your input resolved to the place you meant (e.g. uk matches Ukraine). Null when not recognized.

message string optional accepts null

Human-readable reason when valid is false; null when valid.

403 Partner accounts only: this configuration helper answers API keys of accounts approved as partners. Ask support@rodz.io to enable an account.
422 Validation Error
Response schema · HTTPValidationError
detail object[] optional
5 fields in detail
loc string | integer[] required
msg string required
type string required
input any optional
ctx object optional
429 Configuration-helper limit reached (30 calls per minute per API key and 500 calls per account per UTC day). This route helps build signal configurations; it is not a data feed. Retry after the number of seconds in the Retry-After header.
503 The limit could not be checked. Retry in a minute.