Jodi

v0.2.1
io.github.pipeworx-io/jodi Checked 1 day ago Published 1 month ago

JODI Oil + Gas — monthly production, consumption, imports, exports and closing stocks by country…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

jodi_oil_series

Monthly JODI-Oil series for one country — production, imports, exports, direct use, refinery intake, stock change or closing stocks, for crude oil/NGL/other/total-crude or a refined product (LPG, gasoline, kerosene, jet fuel, gas/diesel, fuel oil). Answers "Saudi crude oil production over the last two years", "UAE crude exports vs a year ago", "Iraq refinery intake trend". A month with no JODI submission comes back as {reported:false, value:null} — NEVER 0 — because JODI is self-reported and countries skip or delay months. Example: jodi_oil_series({country:"Saudi Arabia", flow:"exports",…

ParameterTypeDescription
country *stringISO2 code ("SA") or name ("Saudi Arabia")
end_monthstringLast month of the window as YYYY-MM; defaults to the latest month JODI has published for anyone
flowstringproduction (default), imports, exports, closing_stocks, stock_change, direct_use, refinery_intake, statistical_difference, other_sources, transfers (crude); or refinery_output, receipts, products_tran…
monthsnumberHow many trailing months (default 24, max 120)
productstringcrude (default), ngl, other, total, or a refined product: lpg, naphtha, gasoline, kerosene, jet_fuel, gas_diesel, fuel_oil, other_products, total_products

jodi_gas_series

Monthly JODI-Gas series for one country — production, imports/exports (total, or LNG vs pipeline split out), demand, stock change or closing stocks, natural gas only. Answers "Qatar LNG exports over the last 3 years", "Iran gas production trend", "UAE gas imports by pipeline vs LNG". A month with no JODI submission comes back as {reported:false, value:null} — NEVER 0. Example: jodi_gas_series({country:"Qatar", flow:"exports_lng", months:36}). Keyless.

ParameterTypeDescription
country *stringISO2 code ("QA") or name ("Qatar")
end_monthstringLast month of the window as YYYY-MM; defaults to the latest month JODI has published for anyone
flowstringproduction (default), imports, imports_lng, imports_pipeline, exports, exports_lng, exports_pipeline, closing_stocks, stock_change, demand, demand_calculated, electricity_generation, statistical_diffe…
monthsnumberHow many trailing months (default 24, max 120)

jodi_oil_compare

Compare JODI-Oil countries on one series, at the latest reported month AND against N months earlier — ranked by change. This is the tool for "which Gulf producers raised crude output most this quarter" (pass months_back:3) and "Saudi crude exports vs a year ago" (pass countries:["Saudi Arabia"], months_back:12) — both are the same comparison, just different country lists. Defaults to the Gulf/Persian-Gulf producers (Saudi Arabia, UAE, Kuwait, Qatar, Oman, Bahrain, Iraq, Iran) if no countries are given. A country missing a compared month is marked reported:false and excluded from the rankin…

ParameterTypeDescription
countriesarrayISO2 codes or names; defaults to the Gulf producer set
end_monthstringLatest month to compare from, as YYYY-MM; defaults to the newest month anyone in the list has reported
flowstringproduction (default), imports, exports, closing_stocks, stock_change, etc — see jodi_oil_series
months_backnumberHow many months before the latest to compare against (default 12 = year-over-year; use 3 for quarter-over-quarter)
productstringcrude (default), ngl, other, total, or a refined product — see jodi_oil_series

jodi_gas_compare

Compare JODI-Gas countries on one series, at the latest reported month AND against N months earlier — ranked by change. Answers "which Gulf gas producers grew LNG exports most this year", "Qatar gas production vs last year". Defaults to the Gulf/Persian-Gulf producers if no countries are given. A country missing a compared month is marked reported:false and excluded from the ranking rather than treated as a zero. Example: jodi_gas_compare({flow:"exports_lng", months_back:12}). Keyless.

ParameterTypeDescription
countriesarrayISO2 codes or names; defaults to the Gulf producer set
end_monthstringLatest month to compare from, as YYYY-MM; defaults to the newest month anyone in the list has reported
flowstringproduction (default), imports, imports_lng, exports, exports_lng, closing_stocks, demand, etc — see jodi_gas_series
months_backnumberHow many months before the latest to compare against (default 12 = year-over-year; use 3 for quarter-over-quarter)

jodi_countries

List the countries JODI-Oil and/or JODI-Gas cover, with each one's earliest and latest reported month. Use this before jodi_oil_series/jodi_gas_series to confirm a country actually reports the commodity, or to answer "which countries does JODI cover", "does JODI have Iran gas data". Example: jodi_countries({}); jodi_countries({commodity:"gas"}). Keyless.

ParameterTypeDescription
commoditystring"oil", "gas", or omit for both