API documentation
US Oil Production API
Since 1920Both official cadences in one API: the weekly national estimate (WPSR) and the monthly EIA-914 survey — US total since 1920, Alaska since 1960, key states since 1981.
500 req/mo · No credit card required · One key, every API on the platform
- Checking status…
- US monthly since 1920 (weekly 1983)
- 8 areas: US + 7 states/regions
- Unit: thousand barrels per day
- Weekly release Wednesdays 10:30 ET; monthly ~2-month lag
Base URL & authentication
All endpoints live under one base URL. Authenticate every request with your key
in the X-Api-Key header — no OAuth, no signing. The same key works
on every API of the platform.
# Base URL {{GATEWAY_URL}} # Every request X-Api-Key: sk_live_YOUR_KEY
Missing or invalid keys return 401 — see
errors. The demo endpoint is the only keyless route.
Endpoints
All paths relative to the base URL. Every 200 ships ETag,
Cache-Control and RateLimit-* headers.
| Method | Path | Summary |
|---|---|---|
| GET | /oil-production/latest Free+ | Latest production of every area (weekly estimate + monthly survey) |
| GET | /oil-production/{area} Free+ | Latest production of a single area |
| GET | /oil-production/{area}/history Free+ | Paginated production history for an area |
{area}: us | texas | new-mexico | north-dakota | alaska | colorado | oklahoma | federal-gulf. Query frequency: weekly | monthly (default: weekly for us, monthly for states — weekly exists only for us). History: start/end in the frequency format, keyset via meta.next_end, limit 1–100.
Sample — 200 /oil-production/latest
{
"data": [
{ "area": "us", "frequency": "weekly", "period": "2026-07-10", "value": 13861, "unit": "thousand barrels per day", "source": "EIA" },
{ "area": "us", "frequency": "monthly", "period": "2026-04", "value": 13934, "unit": "thousand barrels per day", "source": "EIA" }
],
"meta": { "source": "U.S. Energy Information Administration" }
}
Errors, auth & limits
One uniform error contract everywhere:
{ "error": { "code", "message" } } with stable,
machine-readable codes — shared by every API on the platform.
| Status | Code | When |
|---|---|---|
| 401 | UNAUTHORIZED | Missing X-Api-Key header, or invalid/revoked key. |
| 400 | VALIDATION_ERROR | Bad query/path parameters. |
| 404 | AREA_NOT_FOUND · NO_DATA · NOT_FOUND | Unknown value for the path parameter (the message lists the valid ones), no data for the requested range yet, or unknown route. |
| 429 | RATE_LIMITED | Per-minute limit of your plan exceeded — check Retry-After. |
| 429 | QUOTA_EXCEEDED | Monthly cap reached. Nothing is billed on top — resets on the 1st (UTC). |
| 502 | UPSTREAM_ERROR | The origin API was unreachable — retry shortly. |
Data provenance
Two official EIA sources: the Weekly Petroleum Status Report national estimate and the EIA-914 monthly survey (via Petroleum Supply Monthly). History: US monthly since 1920, Alaska since 1960, other states since 1981, US weekly since 1983. Zero is a legitimate value. This product is not endorsed by or affiliated with the EIA.
Example
curl -H "X-Api-Key: sk_live_YOUR_KEY" \ https://api.synergicapis.com/oil-production/latest
import requests
r = requests.get(
"https://api.synergicapis.com/oil-production/latest",
headers={"X-Api-Key": "sk_live_YOUR_KEY"},
)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://api.synergicapis.com/oil-production/latest", { headers: { "X-Api-Key": "sk_live_YOUR_KEY" }, }); const { data } = await res.json(); console.log(data);
Live demo
Real request against the production API — no key needed here (demo endpoint, 5 requests/minute).
Press the button to fetch the latest official figures.