Aller au contenu principal
Rodz API
FR EN
v2.0.0

Référence / Enrichment / Resolve a job location ID

Resolve a job location ID

Les résumés et descriptions des routes viennent du contrat OpenAPI et restent en anglais.

Find the location ID for any city, region, or country to filter company job listings by geography — resolve location names without guessing or hardcoding IDs.

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

Documenté depuis le contrat OpenAPI, version 2.0.0 de l’API.

Lire la description complète

Find the location ID for any city, region, or country to filter company job listings by geography — resolve location names without guessing or hardcoding IDs.

Input: name (required) — a location name, e.g. 'Paris', 'Île-de-France', 'France', 'Texas'. Add a qualifier to pick between places that share a name, e.g. 'Paris (United States)' or 'Nantes, France'.

Output: A data object containing nb_results (1, or 0 when the name matches no place exactly) and results, the place the name designates: a country name resolves to the country, a city name to the city. Each result has an integer id (pass this as a value in the company-jobs endpoint’s locationIds filter), plus name, full_name, country, region, and type (location granularity, e.g. "city" or "country"). Its fields are snake_case (nb_results, full_name). Cost: Free.

Authentification et en-têtes

Toutes les routes demandent une clé d’API. Vous la créez dans le tableau de bord, sous Intégrations puis API. Voir comment obtenir une clé.

Authorization requis

Bearer suivi de votre clé d’API, par exemple Bearer USR_...

Paramètres

name string query requis

Location name to search (e.g. 'Paris', 'France')

Réponses

200 Matching job locations.
Schéma de la réponse
data object facultatif accepte null

Location lookup payload, or null if none found

  • additionalProperties: true
8 champs dans data
nb_results integer facultatif accepte null

Number of matching locations returned

results object[] facultatif accepte null

Matching locations

  • items.additionalProperties: true
id integer facultatif accepte null

Numeric location identifier

name string facultatif accepte null

Short location name, e.g. 'Paris (France)'

full_name string facultatif accepte null

Fully qualified location name

country string facultatif accepte null

Country name

region string facultatif accepte null

Region / administrative area name

type string facultatif accepte null

Location granularity, e.g. one of: city, region, country

requestId string facultatif accepte null

Unique request identifier

422 Validation Error
Schéma de la réponse · HTTPValidationError
detail object[] facultatif
5 champs dans detail
loc string | integer[] requis
msg string requis
type string requis
input any facultatif
ctx object facultatif
429 Rate limit exceeded. Retry after the number of seconds in the Retry-After response header.