datafloe Get a key

A record, in full

US grocery prices by area (USDA F-MAP, historical)

Schema, a real sample, a live query box, snippets, and the machine-readable license.

GET /v1/datafloe/grocery-prices

US grocery prices by area (USDA F-MAP, historical)

source USDA ERS — Food-at-Home Monthly Area Prices  ·  license U.S. Government public domain  ·  retrieved 2018-12-01
redistribution unrestricted, commercial use permitted, no attribution required
rows113,400
columns18
version2018-12
sourcelicensed
License PD public domain CLEARED FOR REUSE · REC 2018-12

Schema

columntypenull %
id integer 0.0
year integer 0.0
month integer 0.0
efpg_code integer 0.0
efpg_name text 0.0
tier1_group text 0.0
tier2_group text 0.0
region_code integer 0.0
region_name text 0.0
purchase_dollars_wtd real 0.0
purchase_grams_wtd real 0.0
purchase_dollars_unwtd real 0.0
purchase_grams_unwtd real 0.0
number_stores real 0.0
unit_value_mean_wtd real 0.0
unit_value_se_wtd real 0.0
unit_value_mean_unwtd real 0.0
price_index_geks real 0.0

Sample · 5 rows

idyearmonthefpg_codeefpg_nametier1_grouptier2_groupregion_coderegion_namepurchase_dollars_wtdpurchase_grams_wtdpurchase_dollars_unwtdpurchase_grams_unwtdnumber_storesunit_value_mean_wtdunit_value_se_wtdunit_value_mean_unwtdprice_index_geks
11340020181278000Infant formulaOther foodsInfant formula37980Philadelphia-Camden-Wilmington, PA-NJ-DE-MD7242991.843273925920.84701417.722185089805.89572.6441425560.0568167542.5400738311.017085438
11331620181278000Infant formulaOther foodsInfant formula35620New York-Newark-Jersey City, NY-NJ-PA25241988.77102901284810121100.13489473678.121002.4530295070.1436430422.0677516651.075809791
11323220181278000Infant formulaOther foodsInfant formula33100Miami-Fort Lauderdale-West Palm Beach, FL7979975.565287353864.96731990.51250105851.28552.7770552410.0387661432.6916565441.021283249
11314820181278000Infant formulaOther foodsInfant formula31080Los Angeles-Long Beach-Anaheim, CA11933047.46621819186.88193391.252402096511.313721.9190542390.0489211422.0376678291.033998362
11306420181278000Infant formulaOther foodsInfant formula26420Houston-The Woodlands-Sugar Land, TX10431731.45404208210.36007905.031243965143.37112.5807816830.0498637722.4626079581.020259945

Query it — live

Use it

# every response carries x-license
curl "https://api.datafloe.dev/v1/datafloe/grocery-prices?year=2018" \
  -H "Authorization: Bearer datafloe_live_…"
const r = await fetch(
  "https://api.datafloe.dev/v1/datafloe/grocery-prices?year=2018",
  { headers: { Authorization: "Bearer datafloe_live_…" } }
);
const { data, meta } = await r.json();
import httpx
r = httpx.get(
  "https://api.datafloe.dev/v1/datafloe/grocery-prices",
  params={"year": "2018"},
  headers={"Authorization": "Bearer datafloe_live_…"},
)
data = r.json()["data"]

License · machine-readable

{
  "license_id": "us-public-domain@1",
  "spdx_analog": null,
  "rights": {
    "commercial_use": true,
    "redistribution": true,
    "raw_download": true,
    "ai_training": false
  },
  "attribution_required": false,
  "attribution_text": "U.S. Department of Agriculture, Economic Research Service. (2024). Food-at-Home Monthly Area Prices.",
  "provenance": {
    "uploader": "datafloe",
    "declared_origin": "licensed",
    "source_url": "https://www.ers.usda.gov/data-products/food-at-home-monthly-area-prices",
    "version": "2018-12",
    "content_hash": "sha256:27f9450b747e8f1f63821165ae31c3746a0c35afc11caaf66e7c2df15c485940",
    "published_at": "2018-12-01"
  },
  "price": {
    "model": "free",
    "monthly_usd": 0
  },
  "terms_url": "https://www.usa.gov/government-works"
}

ai_training is false on every dataset by design — you learn we're license-explicit before training rights are ever sold.