zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
On this page
  • Playground
  • Code examples
  • Full reference
  • Related APIs
Finance/Census
Logo Census

Census

Dated values for any Census economic-indicator series.

Endpoints
3
Requests
1.0k
Updated
5 hours ago
For LLMs
llms.txt
Endpoint healthnot yet measured
  • seriesnot measured
  • programsnot measured
  • programnot measured
no measurements yetdaily 01:00 WIB

Playground

3 endpoints
GET/v1/finance:census/series6h cache10 paramschecking key…
Parameters
programstringrequired

Program code. programs lists all 21.

categorystringrequired

Category code from program — 44X72 is retail trade and food services in MARTS.

dataTypestringrequired

Data-type code from program — SM is sales in MARTS, MPCSM the monthly percent change.

geoLevelstring

Geography level from program. Default US.

adjustedenum

Seasonally adjusted. Word-valued upstream — 1 is silently read as no. Default yes.

errorDataenum

Return the sampling-variability series instead of the estimate. Default no.

includeUnreleasedenum

Keep the pre-allocated months past the last release, which the bureau publishes as NA. Default false.

fromstring

First year, YYYY. Default five years ago.

tostring

Last year, YYYY. Default the current year.

lengthnumber

Observations to return, newest first. Default 120, max 2000.

·
Response
EXAMPLE
{
  "to": "2026",
  "from": "2021",
  "unit": "Millions of Dollars",
  "count": 67,
  "items": [
    {
      "label": "Jul-2026",
      "value": 763602,
      "period": "2026-07"
    },
    {
      "label": "Jun-2026",
      "value": 768072,
      "period": "2026-06"
    },
    {
      "label": "May-2026",
      "value": 766192,
      "period": "2026-05"
    },
    {
      "label": "Apr-2026",
      "value": 759097,
      "period": "2026-04"
    },
    {
      "label": "Mar-2026",
      "value": 754013,
      "period": "2026-03"
    },
    {
      "label": "Feb-2026",
      "value": 741278,
      "period": "2026-02"
    },
    {
      "label": "Jan-2026",
      "value": 734503,
      "period": "2026-01"
    },
    {
      "label": "Dec-2025",
      "value": 734717,
      "period": "2025-12"
    }
  ],
  "total": 67,
  "source": "Advance Monthly Sales for Retail and Food Services",
  "dataset": "series",
  "program": "MARTS",
  "adjusted": "yes",
  "category": "44X72",
  "dataType": "SM",
  "geoLevel": "US",
  "provider": "census",
  "errorData": "no",
  "seriesName": "Seasonally Adjusted Sales - Monthly",
  "unreleased": 5,
  "extractedAt": "August 20, 2026 (10:23 pm)",
  "latestValue": 763602,
  "categoryName": "44X72: Retail Trade and Food Services: U.S. Total",
  "latestPeriod": "2026-07"
}

Code examples

Series
zpi-sdkrecommended
// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";

const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });

const data = await client.run("finance:census", "series", {
  "program": "MARTS",
  "category": "44X72",
  "dataType": "SM",
  "geoLevel": "US",
  "adjusted": "yes",
  "errorData": "no",
  "includeUnreleased": "false",
  "from": "2020",
  "to": "2026",
  "length": 24
});
console.log(data);
Full SDK reference →
request.sh
curl -X GET "https://api.zpi.web.id/v1/finance:census/series?program=MARTS&category=44X72&dataType=SM&geoLevel=US&adjusted=yes&errorData=no&includeUnreleased=false&from=2020&to=2026&length=24" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Full reference

3 endpoints · plain text
GETSeries/v1/finance:census/seriesDated values for any Census economic-indicator series.

Parameters

programstringrequired
Program code. programs lists all 21.
categorystringrequired
Category code from program — 44X72 is retail trade and food services in MARTS.
dataTypestringrequired
Data-type code from program — SM is sales in MARTS, MPCSM the monthly percent change.
geoLevelstringoptional
Geography level from program. Default US.
adjustedenumoptional
Seasonally adjusted. Word-valued upstream — 1 is silently read as no. Default yes. Values: yes, no.
errorDataenumoptional
Return the sampling-variability series instead of the estimate. Default no. Values: yes, no.
includeUnreleasedenumoptional
Keep the pre-allocated months past the last release, which the bureau publishes as NA. Default false. Values: true, false.
fromstringoptional
First year, YYYY. Default five years ago.
tostringoptional
Last year, YYYY. Default the current year.
lengthnumberoptional
Observations to return, newest first. Default 120, max 2000.

Request

curl -X GET "https://api.zpi.web.id/v1/finance:census/series?program=MARTS&category=44X72&dataType=SM&geoLevel=US&adjusted=yes&errorData=no&includeUnreleased=false&from=2020&to=2026&length=24" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "to": "2026",
  "from": "2021",
  "unit": "Millions of Dollars",
  "count": 67,
  "items": [
    {
      "label": "Jul-2026",
      "value": 763602,
      "period": "2026-07"
    },
    {
      "label": "Jun-2026",
      "value": 768072,
      "period": "2026-06"
    },
    {
      "label": "May-2026",
      "value": 766192,
      "period": "2026-05"
    },
    {
      "label": "Apr-2026",
      "value": 759097,
      "period": "2026-04"
    },
    {
      "label": "Mar-2026",
      "value": 754013,
      "period": "2026-03"
    },
    {
      "label": "Feb-2026",
      "value": 741278,
      "period": "2026-02"
    },
    {
      "label": "Jan-2026",
      "value": 734503,
      "period": "2026-01"
    },
    {
      "label": "Dec-2025",
      "value": 734717,
      "period": "2025-12"
    }
  ],
  "total": 67,
  "source": "Advance Monthly Sales for Retail and Food Services",
  "dataset": "series",
  "program": "MARTS",
  "adjusted": "yes",
  "category": "44X72",
  "dataType": "SM",
  "geoLevel": "US",
  "provider": "census",
  "errorData": "no",
  "seriesName": "Seasonally Adjusted Sales - Monthly",
  "unreleased": 5,
  "extractedAt": "August 20, 2026 (10:23 pm)",
  "latestValue": 763602,
  "categoryName": "44X72: Retail Trade and Food Services: U.S. Total",
  "latestPeriod": "2026-07"
}
GETPrograms/v1/finance:census/programsThe Census Bureau's economic indicator programs — the vocabulary every other

Parameters

querystringoptional
Case-insensitive filter over the program code and name.

Request

curl -X GET "https://api.zpi.web.id/v1/finance:census/programs?query=retail" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "count": 3,
  "items": [
    {
      "name": "Advance Monthly Sales for Retail and Food Services",
      "bulkUrl": "https://www.census.gov/econ_getzippedfile/?programCode=MARTS",
      "program": "MARTS"
    },
    {
      "name": "Advance Retail Inventories",
      "bulkUrl": "https://www.census.gov/econ_getzippedfile/?programCode=MRTSADV",
      "program": "MRTSADV"
    },
    {
      "name": "Monthly Retail Trade and Food Services",
      "bulkUrl": "https://www.census.gov/econ_getzippedfile/?programCode=MRTS",
      "program": "MRTS"
    }
  ],
  "query": "retail",
  "total": 21,
  "dataset": "programs",
  "provider": "census"
}
GETProgram/v1/finance:census/programOne Census economic indicator program's whole code vocabulary — categories,

Parameters

programstringrequired
Program code — MARTS, MRTS, M3, M3ADV, RESCONST, FTD and 15 more. programs lists them.
querystringoptional
Case-insensitive filter over the category code and description.
lengthnumberoptional
Categories to return. Default 200, max 2000.

Request

curl -X GET "https://api.zpi.web.id/v1/finance:census/program?program=MARTS&query=grocery&length=50" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "count": 21,
  "items": [
    {
      "indent": 0,
      "category": "44X72",
      "description": "44X72: Retail Trade and Food Services",
      "categoryIndex": 1
    },
    {
      "indent": 0,
      "category": "44Y72",
      "description": "44Y72: Retail Trade and Food Services, ex Auto",
      "categoryIndex": 2
    },
    {
      "indent": 0,
      "category": "44Z72",
      "description": "44Z72: Retail Trade and Food Services, ex Gas",
      "categoryIndex": 3
    },
    {
      "indent": 0,
      "category": "44W72",
      "description": "44W72: Retail Trade and Food Services, ex Auto and Gas",
      "categoryIndex": 4
    },
    {
      "indent": 0,
      "category": "44000",
      "description": "44000: Retail Trade",
      "categoryIndex": 5
    },
    {
      "indent": 0,
      "category": "441",
      "description": "441: Motor Vehicle and Parts Dealers",
      "categoryIndex": 6
    },
    {
      "indent": 0,
      "category": "441X",
      "description": "4411,4412: Auto and Other Motor Vehicles",
      "categoryIndex": 7
    },
    {
      "indent": 0,
      "category": "442",
      "description": "442: Furniture and Home Furnishings Stores",
      "categoryIndex": 8
    }
  ],
  "query": null,
  "total": 21,
  "dataset": "program",
  "periods": 420,
  "program": "MARTS",
  "provider": "census",
  "dataTypes": [
    {
      "unit": "MLN$",
      "dataType": "SM",
      "description": "Sales - Monthly",
      "dataTypeIndex": 1
    },
    {
      "unit": "PCT",
      "dataType": "MPCSM",
      "description": "Sales - Monthly Percent Change",
      "dataTypeIndex": 2
    }
  ],
  "footnotes": [
    "For the Advance Monthly Retail Trade Survey, estimates for the most recent month are advance estimates that are based on data from a subsample of firms from the larger Monthly Retail Trade Survey. The advance estimates will be superseded in following months by revised estimates derived from the larger Monthly Retail Trade Survey.",
    "For information on the reliability and use of the data, including important notes on estimation and sampling variance, seasonal adjustment, measures of sampling variability, and other information pertinent to this economic indicator, go to the (https://www.census.gov/retail/index.html) website.",
    "Estimated measures of sampling variability for totals are expressed as coefficients of variation (CV). Standard errors (SE) are provided for month-to-month change and ratio estimates.",
    "Estimated measures of sampling variability are based on data not adjusted for seasonal variation, and should be used when drawing inferences about both adjusted and not adjusted estimates.",
    "NA = Not available.  Z = Estimates round to zero."
  ],
  "geoLevels": [
    {
      "geoIndex": 1,
      "geoLevel": "US",
      "description": "U.S. Total"
    }
  ],
  "periodEnd": "Dec-2026",
  "updatedAt": "Friday, 14-Aug-26 07:31:07 EDT",
  "errorTypes": [
    {
      "unit": "PCT",
      "errorType": "E_SM",
      "description": "CV of Sales - Monthly",
      "errorTypeIndex": 1
    },
    {
      "unit": "PCT",
      "errorType": "E_MPCSM",
      "description": "SE of Sales - Monthly Percent Change",
      "errorTypeIndex": 2
    }
  ],
  "periodStart": "Jan-1992",
  "observations": 58730
}

Related APIs

More in finance

Pluang

finance/pluang

Data pasar Pluang lintas aset: order book, running trade, tradebook dan ringkasan broker per saham IDX, plus saham Amerika, emas, kripto, sinyal analis dan berita.

27.9K calls·1d cache

Binance Vision

finance/binance-vision

Binance's public bulk archive: klines, 5-minute open-interest and long/short metrics, funding, book depth and liquidations, back to 2017.

7.9K calls·1d cache

TradingView

finance/tradingview

Screener, charts, technical indicators, fundamentals, news and the macro calendar across 16 markets — Indonesian equities, US equities, crypto, forex and futures.

57K calls·1d cache

Stockbit

finance/stockbit

Data saham IDX dari Stockbit: harga, chart intraday, profil emiten, diskusi komunitas, dan kamus investasi.

17.8K calls·1d cache

Mempool Space

finance/mempool-space

Recommended fee tiers in sat/vB, as mempool.space's own estimator sees them.

1.1K calls·2m cache

Etherscan

finance/etherscan

Current gas price tiers and base fee, from Etherscan's V2 multichain API.

683 calls·30s cache
Browse APIsPricingDocsMCP serverGet an API key
zapi.One key, one response shape.
TermsPrivacyCookiesAUPRefunds© 2026