Skip to content

Locations and provider dictionaries

ProxyRequest separates the location a customer asks for from the value an upstream provider expects. The canonical catalog gives customers one stable vocabulary. A provider dictionary translates that vocabulary into the provider’s country, region, city, and ASN grammar.

The installation bootstrap imports the platform’s canonical continents, countries, regions, cities, ASNs, and ISPs. The locations service then keeps normalized snapshots available to the gateway and refreshes them when the source hash changes. You do not need to recreate the global country list for every provider.

After first startup:

  1. open Locations → Countries and confirm that the canonical rows exist;
  2. open Locations → Location dictionaries and check which provider dictionaries are already present;
  3. import a provider’s current vocabulary from its API when an adapter is available, or create the mapping manually;
  4. attach that dictionary when importing or editing the provider;
  5. test the narrowest location you intend to sell before enabling it on a package.
Countries page showing the current canonical country columns and recordsOpen full size

The canonical country catalog is installed once and is shared by provider dictionaries and customer targeting.

  1. Use the page controls to search, sort, create, or export the canonical catalog.
  2. The table exposes the real country contract: name, original name, alpha-2, alpha-3, and numeric codes.
Location Dictionaries page showing provider coverage countsOpen full size

A dictionary shows which providers use it and how much vocabulary it currently covers.

  1. Create a manual dictionary or start the provider API import from the page controls.
  2. Coverage columns make missing countries, regions, cities, or ASN mappings visible before launch.

Use one dictionary per provider grammar unless two integrations are proven to accept exactly the same values. A dictionary can be reused by multiple provider records when their location syntax is identical.

Choose Create location dictionary and Ready-made settings when a supported provider adapter can read its location catalog. Use Advanced Settings for a manual dictionary. The ready-made flow also lets you schedule repeat synchronization; only provider-sourced ready-made dictionaries support that schedule.

  1. Select ready-made settings and the provider adapter.
  2. Enter the authentication method required by that provider.
  3. Choose a synchronization interval when locations should refresh automatically, then set a bounded timeout and retry count.
  4. Review the source and secret-handling summary.
  5. Start the import and wait for a success result before attaching the dictionary to production routing.
Create location dictionary Overview with ready-made and advanced settings and provider adaptersOpen full size

Overview selects the provider integration or a manual advanced dictionary.

  1. Choose ready-made settings and the adapter that reads the provider location API.
  2. The stepper makes the four import decisions explicit before any write occurs.
Location dictionary import wizard authentication stepOpen full size

Step 2 supplies provider credentials and selects how often the catalog refreshes.

  1. Use a provider token or credential pair with the smallest practical scope; select a refresh interval or Never.
  2. For periodic synchronization, credentials are encrypted and saved with this dictionary.
Location dictionary import settings with timeout and retry controlsOpen full size

Step 3 bounds each provider API attempt with timeout and retry settings.

  1. Set a bounded timeout and retry count for each provider API request.
  2. The summary confirms the adapter and authentication mode before review.
Location dictionary import review and start actionOpen full size

Step 4 is the final write boundary. Confirm the source before starting the import.

  1. Review source, authentication mode, timeout, and retry settings together.
  2. Start the provider API import only after the summary matches the intended account.

After import, compare counts with the provider’s own catalog and test examples from every advertised level. A successful import proves that data was read and normalized; it does not prove that every location currently has usable proxy inventory.

For a ready-made dictionary, open its detail page to change the periodic synchronization interval or authentication later. The panel shows the last attempt, last success, next scheduled run, and any recent error. Selecting Never disables automatic synchronization and removes saved synchronization credentials. Manual dictionaries do not have this provider-backed refresh option.

Use Advanced Settings when no adapter exists, the provider publishes a static mapping, or you need a controlled override. Give the dictionary a name, then enter the provider vocabulary and replacements in the same advanced configuration step. Start with country mappings, verify them, then add region, city, and ASN only as required.

Create location dictionary Advanced Settings with its name and editable provider vocabularyOpen full size

Advanced Settings keeps identity and provider translation fields together.

  1. Name the dictionary after the provider grammar and environment, not after a customer package.
  2. The same step contains the provider vocabulary and replacement mappings.
Advanced dictionary settings focused on country vocabulary and canonical replacementsOpen full size

Vocabulary records accepted values; replacements translate canonical values into provider-specific tokens.

  1. List provider country vocabulary using values confirmed by its API or documentation.
  2. Map each canonical country to the exact provider replacement sent in upstream credentials.

The same pattern applies to region, city, and ASN. Preserve parent context: a city mapping without the correct country and region can be ambiguous. Avoid silent fallbacks that widen a request from city to country unless that is an explicit product rule.

canonical customer target
↓
package exposes the dimension
↓
routing filters eligible providers
↓
provider dictionary translates the value
↓
provider credential builder sends its grammar upstream

The locations service uses normalized, versioned snapshots so gateways can read a consistent dataset. Provider-specific formats stay at the translation boundary; customers and packages continue to use canonical values.

Catalog

Canonical countries and the required child locations exist after startup.

Translation

Provider values and replacements match real upstream examples.

Availability

Package-visible targets are backed by an eligible provider and protocol.

Live test

Exit IP and reported geography match a broad and narrow requested target.

If an import fails, keep the last known-good dictionary attached, check provider credentials and API reachability, and retry with a bounded policy. If the provider changed its grammar, test a replacement dictionary before switching live routes.

Continue with provider configuration to connect endpoints and credentials to the verified dictionary.