Provider Gateway Examples
These examples show the lower-level gateway route shape for provider-backed reads. Prefer capability routes or route planning for repeated product workflows. Use provider gateway routes when you are inspecting adapter behavior, debugging a provider-specific path, or validating a new capability mapping.Boundary
- Clients send only a PubFi API key.
- Upstream provider credentials stay server-side.
- Provider inclusion in Discovery does not imply gateway availability.
- Gateway examples are route-shape examples, not public pricing, uptime, ranking, or citation proof.
Auth
Route Shape
{provider} and {network} segments are provider-specific gateway routing inputs. The
{endpoint...} segment maps to the upstream path supported by the adapter.
The examples below are public route-shape examples and certified readiness examples where noted.
They are not a promise that every OpenAPI-listed provider path is certified or path-complete.
Subscan Gateway Example
Subscan examples use the network segment to select the upstream chain host, such aspolkadot or
acala.
Example routes:
DeGov Gateway Example
DeGov uses a fixed upstream base URL, so PubFi usesglobal as the gateway network placeholder.
Example routes:
World Bank Gateway Example
World Bank uses a generated generic HTTP/OpenAPI adapter with a fixedglobal network placeholder.
The public example covers the World Bank population indicator path. The adapter applies the
upstream format=json static query server-side; client requests should send only caller-supported
query parameters such as per_page and date. It does not publish a PubFi copy of the World Bank
OpenAPI schema or any private provider credential material.
Example route:
USGS Earthquake Gateway Example
USGS Earthquake Catalog uses a generated generic HTTP/OpenAPI adapter with a fixedglobal network
placeholder. The public example covers the earthquake event query path with the adapter’s
server-applied upstream format=geojson static query requirement. Client requests should send only
caller-supported query parameters such as limit. It does not publish a PubFi copy of the USGS
OpenAPI schema or any private provider credential material.
For automated earthquake display use cases, evaluate the provider’s real-time GeoJSON feed guidance
before using the query gateway for high-volume or continuously refreshed displays.
Example route:
National Weather Service Alerts Gateway Example
National Weather Service Alerts uses a generated generic HTTP/OpenAPI adapter with a fixedglobal
network placeholder. The public example covers the active alerts path. It does not publish a
PubFi-hosted provider OpenAPI snapshot, private provider credential material, or a claim that every
upstream NWS API path is certified.
Example route:
Research Metadata Gateway Examples
Crossref, ROR, and DataCite use generated generic HTTP/OpenAPI adapters with a fixedglobal
network placeholder. These examples cover certified metadata list endpoints only. They do not
publish PubFi-hosted provider OpenAPI snapshots, private provider credential material, or a claim
that every upstream metadata path is certified.
Example routes:
Federal Register Gateway Example
Federal Register Documents API uses a generated generic HTTP/OpenAPI adapter with a fixedglobal
network placeholder. The public example covers the document list endpoint. It does not publish a
PubFi-hosted provider OpenAPI snapshot, private provider credential material, or a claim that every
upstream Federal Register path is certified.
Example route:
Public Data Gateway Examples
openFDA, USGS Water Data APIs, and BLS Public Data API use generated generic HTTP/OpenAPI adapters with a fixedglobal network placeholder. These examples cover certified no-upstream-auth
sample endpoints only. They do not publish PubFi-hosted provider OpenAPI snapshots, private
provider credential material, or a claim that every upstream public-data path is certified.
Example routes:
Gateway Response Shape
Successful gateway responses use a PubFi envelope around the provider payload:data value is the provider JSON payload returned for the routed endpoint, so its nested shape
differs by provider and route. The exact payload and upstream metadata belong to the provider
endpoint. Use the interactive API reference and current route
readiness before treating a route as executable in production.
Common Gateway Outcomes
| HTTP status | Code | When it happens |
|---|---|---|
200 | ok: true | Gateway authenticated the request and the upstream provider returned success. |
401 | pubfi.unauthorized | No PubFi API key was sent, or the key is invalid, revoked, or inactive. |
402 | gateway.insufficient_credits | The account linked to the API key has no credits left. |
403 | pubfi.forbidden | The API key is valid but does not include the scope required for provider invocation. |
502 | pubfi.gateway_failed | Route decision, provider dispatch, or upstream gateway execution failed. |
503 | pubfi.provider_credentials_not_configured | The provider route needs a server-side credential that is not configured. |
503 | pubfi.provider_credentials_unavailable | Provider credentials are temporarily unavailable. |
What This Page Does Not Publish
- Real PubFi API keys.
- Upstream provider keys.
- Server-side credential administration details.
- Account ids, usage rows, or billing records.
- A claim that every listed provider route is always callable.
- A claim that a gateway route is a stable public capability when a PubFi capability exists.