API reference · v0.1.0

Munirichment API reference

21 REST endpoints that return JSON (and CSV for portfolio screens). Every value carries its source, and a value the API does not hold is reported as missing, never as zero.

Authentication

Requests go through RapidAPI. Subscribe to the API there, then send your key and the API host with every call. One key works for every endpoint; usage and billing are shown in your RapidAPI dashboard.

X-RapidAPI-Key: YOUR_KEY
X-RapidAPI-Host: munirichment2.p.rapidapi.com

Identifiers

Bond lookups take a complete 9-character CUSIP or a 12-character US ISIN. The check digit is validated first; a malformed identifier returns 422 before any data is read. Government units use a 6-digit government id, and counties also accept a 5-digit FIPS code.

Missing data and errors

A lookup that finds nothing returns 200 with a status such as not_found_in_observed_filings, which means no public source the API holds lists the bond, not that the bond does not exist. Per-measure statuses such as not_discovered say why a value is empty. 404 means the path names a unit or record that does not exist; 422 means the request is malformed, with the reason in detail.

Securities

Look up a bond by the CUSIP or ISIN you hold, alone or in a batch, and read its fund holdings.

Fund holdings by CUSIP

GET/v1/securities/by-cusip/{cusip}/institutional-holdings

Registered funds' holdings of the bond from their latest quarterly filings: holders, par held, the spread of fair-value marks and the largest holders.

Parameters

ParameterInTypeDescription
cusip requiredpathstringExact 9-character CUSIP with valid check digit.

Response fields

FieldTypeDescription
identifier_type requiredenumOne of cusip, isin.
identifier requiredstring
status requiredenumOne of available, not_found_in_observed_filings.
summaryInstitutionalHoldingsSummary | null

Other responses: 422.

curl --request GET \
  --url 'https://munirichment2.p.rapidapi.com/v1/securities/by-cusip/74529JPX7/institutional-holdings' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: munirichment2.p.rapidapi.com'

Fund holdings by ISIN

GET/v1/securities/by-isin/{isin}/institutional-holdings

The same holdings summary for a US ISIN.

Parameters

ParameterInTypeDescription
isin requiredpathstringExact 12-character ISIN with valid check digit.

Response fields

FieldTypeDescription
identifier_type requiredenumOne of cusip, isin.
identifier requiredstring
status requiredenumOne of available, not_found_in_observed_filings.
summaryInstitutionalHoldingsSummary | null

Other responses: 422.

curl --request GET \
  --url 'https://munirichment2.p.rapidapi.com/v1/securities/by-isin/US74529JPX71/institutional-holdings' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: munirichment2.p.rapidapi.com'

Look up a bond by CUSIP

GET/v1/securities/by-cusip/{cusip}

Returns the observations published for a 9-character CUSIP, with the issuer, its government unit and county, and the source of each value.

Parameters

ParameterInTypeDescription
cusip requiredpathstringUser-supplied CUSIP; spaces/hyphens are removed and letters uppercased. Exactly nine characters and a correct check digit are required.
includequerystring | nullOptional comma-separated heavy blocks to inline: fiscal, demographics, state_context, or all. Default omits these raw arrays to keep the response lean (~10 KB); full raw fiscal/geography profiles are also served at /v1/governments/{census_id}/fiscal and /v1/geographies/{id}.

Response fields

FieldTypeDescription
identifier_type requiredenumOne of cusip, isin.
identifier requiredstring
identifier_semantics requiredenumOne of cusip_as_filed, isin_as_filed.
verification_statusstring
input_validationstring
status requiredenumOne of found_in_observed_filings, found_by_exact_external_mapping, not_found_in_observed_filings.
external_resolution_status requiredenumOne of disabled, matched, no_municipal_match.
coverage_notestring
items requiredarray of IdentifierHoldingRecord
reported_bond_issuesarray of ReportedBondIssue
ncsr_schedule_cluesarray of NcsrScheduleClue
gleif_issuer_entityGleifIssuerEntityModel | nullCC0 GLEIF/ANNA registered legal entity metadata (LEI and legal name) matched strictly on an ISIN lookup.
historical_nrsro_ratingsarray of objectCUSIP lookups check exact instrument CUSIP then issuer fallback; ISIN lookups query issuer/LEI records only and never expose or derive a CUSIP.
resolution_candidates requiredarray of IdentifierResolutionCandidate
enrichment_status requiredenumPartial means one or more sections explicitly remain missing. One of not_attempted, not_available, partial, available.
enrichments requiredarray of IdentifierEnrichmentEmpty is not evidence that no enrichment exists elsewhere.
verified_issue_statusenumExact issue membership lookup for a uniquely mapped instrument. One of not_attempted, available, missing, conflicting, unavailable.
demographics_status requiredenumWhether the enrichment record's geography resolved to a geography this platform holds demographics for. One of not_attempted, no_resolvable_geography, partial, available.
demographics requiredarray of EnrichmentDemographicsPer-capita income and population growth for each geography the enrichment record identifies, each carrying the geography it was measured on and the relationship that geography has to the issuer.
issuer_link_statusenumWhether the issuer link was attempted. One of not_enabled, not_attempted, available, withheld_by_policy, unavailable.
issuer_linksarray of IssuerLinkModel
verified_government_profilesarray of VerifiedGovernmentProfileGovernment issuer or obligor profiles from issue-linked public records.
omitted_sectionsarray of enumHeavy sections left out of this response because ?include= did not request them.

Other responses: 422, 503.

curl --request GET \
  --url 'https://munirichment2.p.rapidapi.com/v1/securities/by-cusip/74529JPX7' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: munirichment2.p.rapidapi.com'

Look up several bonds

POST/v1/securities/batch

Up to 25 CUSIPs or ISINs in one call, each answered exactly as the single lookup would.

Parameters

ParameterInTypeDescription
includequerystring | nullOptional comma-separated heavy blocks to inline on each item: fiscal, demographics, state_context, or all.

Request body

FieldTypeDescription
identifiers requiredarray of stringUp to 25 complete CUSIPs or ISINs you already hold, mixed freely; nine characters is read as a CUSIP and twelve as an ISIN.

Response fields

FieldTypeDescription
count requiredinteger
items requiredarray of BatchLookupItemOne entry per supplied identifier, in the order supplied.

Other responses: 422.

curl --request POST \
  --url 'https://munirichment2.p.rapidapi.com/v1/securities/batch' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: munirichment2.p.rapidapi.com' \
  --header 'Content-Type: application/json' \
  --data '{"identifiers": ["74529JPX7", "118217CZ9"]}'

Look up a bond by ISIN

GET/v1/securities/by-isin/{isin}

The same lookup for a 12-character US ISIN.

Parameters

ParameterInTypeDescription
isin requiredpathstringUser-supplied ISO 6166 identifier; spaces/hyphens are removed and letters uppercased. Twelve characters and a valid Luhn/mod-10 check digit are required.
includequerystring | nullOptional comma-separated heavy blocks to inline: fiscal, demographics, state_context, or all. Default omits these raw arrays to keep the response lean (~10 KB).

Response fields

FieldTypeDescription
identifier_type requiredenumOne of cusip, isin.
identifier requiredstring
identifier_semantics requiredenumOne of cusip_as_filed, isin_as_filed.
verification_statusstring
input_validationstring
status requiredenumOne of found_in_observed_filings, found_by_exact_external_mapping, not_found_in_observed_filings.
external_resolution_status requiredenumOne of disabled, matched, no_municipal_match.
coverage_notestring
items requiredarray of IdentifierHoldingRecord
reported_bond_issuesarray of ReportedBondIssue
ncsr_schedule_cluesarray of NcsrScheduleClue
gleif_issuer_entityGleifIssuerEntityModel | nullCC0 GLEIF/ANNA registered legal entity metadata (LEI and legal name) matched strictly on an ISIN lookup.
historical_nrsro_ratingsarray of objectCUSIP lookups check exact instrument CUSIP then issuer fallback; ISIN lookups query issuer/LEI records only and never expose or derive a CUSIP.
resolution_candidates requiredarray of IdentifierResolutionCandidate
enrichment_status requiredenumPartial means one or more sections explicitly remain missing. One of not_attempted, not_available, partial, available.
enrichments requiredarray of IdentifierEnrichmentEmpty is not evidence that no enrichment exists elsewhere.
verified_issue_statusenumExact issue membership lookup for a uniquely mapped instrument. One of not_attempted, available, missing, conflicting, unavailable.
demographics_status requiredenumWhether the enrichment record's geography resolved to a geography this platform holds demographics for. One of not_attempted, no_resolvable_geography, partial, available.
demographics requiredarray of EnrichmentDemographicsPer-capita income and population growth for each geography the enrichment record identifies, each carrying the geography it was measured on and the relationship that geography has to the issuer.
issuer_link_statusenumWhether the issuer link was attempted. One of not_enabled, not_attempted, available, withheld_by_policy, unavailable.
issuer_linksarray of IssuerLinkModel
verified_government_profilesarray of VerifiedGovernmentProfileGovernment issuer or obligor profiles from issue-linked public records.
omitted_sectionsarray of enumHeavy sections left out of this response because ?include= did not request them.

Other responses: 422, 503.

curl --request GET \
  --url 'https://munirichment2.p.rapidapi.com/v1/securities/by-isin/US74529JPX71' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: munirichment2.p.rapidapi.com'

Security detail

GET/v1/securities/{security_id}

One security by the id a search returned.

Parameters

ParameterInTypeDescription
security_id requiredpathstring (uuid)

Response fields

FieldTypeDescription
id requiredstring
offering_id requiredstring
series_id requiredstring | null
issuer_id requiredstring
facts requiredarray of SecurityFact

Other responses: 404, 422.

curl --request GET \
  --url 'https://munirichment2.p.rapidapi.com/v1/securities/{security_id}' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: munirichment2.p.rapidapi.com'

Portfolio

Screen up to 500 bonds in one call, as JSON or as a CSV table.

Screen a portfolio

POST/v1/portfolio/screen

Up to 500 CUSIPs or ISINs in one body. Each bond comes back with its risk flag, alert codes and the filters it failed.

Request body

FieldTypeDescription
identifiers requiredarray of stringUp to 500 complete municipal CUSIPs (9 chars) or ISINs (12 chars), mixed freely.
filtersPortfolioScreenFiltersOptional deterministic pass/fail screening rules applied to every bond in the batch.
sort_by_riskbooleanSort returned rows by risk severity (red -> amber -> green -> unknown), then alert count descending, so the bonds requiring review appear first.

Response fields

FieldTypeDescription
summary requiredPortfolioScreenSummary
rows requiredarray of PortfolioScreenRow

Other responses: 422.

curl --request POST \
  --url 'https://munirichment2.p.rapidapi.com/v1/portfolio/screen' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: munirichment2.p.rapidapi.com' \
  --header 'Content-Type: application/json' \
  --data '{"identifiers": ["74529JPX7", "118217CZ9"]}'

Screen a portfolio as CSV

POST/v1/portfolio/screen.csv

The same screen returned as a CSV table, one row per bond, riskiest first.

Request body

FieldTypeDescription
identifiers requiredarray of stringUp to 500 complete municipal CUSIPs (9 chars) or ISINs (12 chars), mixed freely.
filtersPortfolioScreenFiltersOptional deterministic pass/fail screening rules applied to every bond in the batch.
sort_by_riskbooleanSort returned rows by risk severity (red -> amber -> green -> unknown), then alert count descending, so the bonds requiring review appear first.

Response

A text/csv table, one row per bond.

Other responses: 422.

curl --request POST \
  --url 'https://munirichment2.p.rapidapi.com/v1/portfolio/screen.csv' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: munirichment2.p.rapidapi.com' \
  --header 'Content-Type: application/json' \
  --data '{"identifiers": ["74529JPX7", "118217CZ9"]}'

Upload a CSV to screen

POST/v1/portfolio/screen/upload-csv

Send a CSV file or a plain list of up to 500 CUSIPs or ISINs, one per line.

Parameters

ParameterInTypeDescription
output_formatqueryenum
sort_by_riskqueryboolean

Other responses: 422.

curl --request POST \
  --url 'https://munirichment2.p.rapidapi.com/v1/portfolio/screen/upload-csv' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: munirichment2.p.rapidapi.com' \
  --form 'file=@portfolio.csv'

Analytics

State tax rules and tax-equivalent yield.

State tax rules

GET/v1/analytics/state-tax-rules/{state_code}

Whether a state exempts in-state and out-of-state municipal interest, with its top rate and the date the rates apply from.

Parameters

ParameterInTypeDescription
state_code requiredpathstring2-letter U.S. state or DC code (e.g. CA, TX, IL).

Response fields

FieldTypeDescription
state_code requiredstring
state_name requiredstring
top_marginal_rate_pct requirednumber
in_state_muni_rule requiredstring
in_state_interest_exempt requiredboolean
out_of_state_interest_exempt requiredboolean
notes requiredstring
rates_as_ofstring
rates_sourcestring
disclaimerstring

Other responses: 404, 422.

curl --request GET \
  --url 'https://munirichment2.p.rapidapi.com/v1/analytics/state-tax-rules/IN' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: munirichment2.p.rapidapi.com'

Tax-equivalent yield

POST/v1/analytics/tax-equivalent-yield

Tax-equivalent and after-tax yield for 1 to 100 bonds, for an investor in a given state.

Request body

FieldTypeDescription
investor_state requiredstringInvestor state (e.g.
federal_marginal_rate_pctnumberFederal marginal income tax rate (%).
include_niitbooleanInclude 3.8% federal Net Investment Income Tax.
subject_to_amtbooleanWhether investor is subject to federal AMT (28% on AMT bonds).
state_marginal_rate_override_pctnumber | nullOptional override for investor state marginal rate (%).
local_income_tax_rate_pctnumberOptional local/city income tax rate (e.g. 3.876 for NYC).
bonds requiredarray of TeyBondInput

Response fields

FieldTypeDescription
investor_state requiredstring
count requiredinteger
evaluated_count requiredinteger
items requiredarray of TeyBondOutput
rates_as_ofstring
rates_sourcestring
disclaimerstring

Other responses: 422.

curl --request POST \
  --url 'https://munirichment2.p.rapidapi.com/v1/analytics/tax-equivalent-yield' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: munirichment2.p.rapidapi.com' \
  --header 'Content-Type: application/json' \
  --data '{"investor_state": "PA", "bonds": [{"identifier": "74529JPX7", "yield_pct": 3.5, "bond_state": "PA"}]}'

Governments

Finances and overlapping debt for a government unit.

Government finances

GET/v1/governments/{census_id}/fiscal

Finance line items for one government unit.

Parameters

ParameterInTypeDescription
census_id requiredpathstring6-digit government unit ID (e.g. 161744).

Response fields

FieldTypeDescription
census_id requiredstring
fiscal requiredUnitFiscal

Other responses: 404, 422.

curl --request GET \
  --url 'https://munirichment2.p.rapidapi.com/v1/governments/204214/fiscal' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: munirichment2.p.rapidapi.com'

Overlapping debt

GET/v1/governments/{census_id}/overlapping-debt

The unit's own debt with the share of every overlying and underlying unit's debt that its residents carry.

Parameters

ParameterInTypeDescription
census_id requiredpathstring6-digit government unit ID (e.g. 161744).

Response fields

FieldTypeDescription
census_id requiredstring
unit_name requiredstring
unit_type requiredstring
state_code requiredstring
county_area_name requiredstring | null
status requiredenumOne of available, direct_only.
methodology_note requiredstring
debt_basis requiredstring
direct_debt_usd requirednumber | null
overlapping_debt_total_usd requirednumberSubject's direct debt plus the applicable share of debt of units whose territory is known to overlap it (see each layer's applicable_share_pct).
county_area_debt_total_usd requirednumberDebt of every active government in county area, whether or not it overlaps the subject.
overlying_share_pct requirednumber | nullSubject's share of county population, used to apportion overlying county and school-district debt.
population requiredinteger | null
population_basis requiredstring | null
overlapping_debt_per_capita_usd requirednumber | null
assessed_value_usd requirednumber | null
assessed_value_basis requiredstring | null
overlapping_debt_to_assessed_value_pct requirednumber | null
unattributed_school_district_count requiredintegerSchool districts in the county that may overlap the subject but are excluded because the platform cannot tell which of them contain it.
subtotals_by_type requiredarray of OverlappingDebtTypeSubtotal
layers_truncated requiredboolean
layers requiredarray of OverlappingDebtLayer

Other responses: 404, 422.

curl --request GET \
  --url 'https://munirichment2.p.rapidapi.com/v1/governments/204214/overlapping-debt' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: munirichment2.p.rapidapi.com'

Geographies

Profiles and tax-base indicators for counties and places.

Geography profile

GET/v1/geographies/{geography_id}/profile

Every measure the API reports for a geography, each with its value, period and source, or the reason it is missing.

Parameters

ParameterInTypeDescription
geography_id requiredpathstring (uuid)
growth_window_yearsqueryenum

Response fields

FieldTypeDescription
geography_id requiredstring
name requiredstring
geography_type requiredstring
observations requiredarray of ObservationValue
context requiredGeographyContext
county_contextarray of CountyContext
reporting_governmentsarray of ReportingGovernment
demographics requiredGeographyDemographicsIncome per resident and population growth for this geography, each with the observations it was computed from.

Other responses: 404, 422.

curl --request GET \
  --url 'https://munirichment2.p.rapidapi.com/v1/geographies/91cbfb05-33e7-4093-8788-657b0bc4f347/profile' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: munirichment2.p.rapidapi.com'

Tax-base momentum

GET/v1/geographies/{identifier}/tax-base-momentum

Leading indicators for a county's tax base: house prices and household migration.

Parameters

ParameterInTypeDescription
identifier requiredpathstring5-digit county FIPS (e.g. 48453 for Travis County TX), 6-digit (e.g. 161744 for DeKalb County GA), or geography UUID.

Response fields

FieldTypeDescription
county_fips requiredstring
state_code requiredstring
county_name requiredstring
status requiredstring
housing_price_momentum requiredHousingMomentumBlock | null
taxpayer_wealth_migration requiredTaxpayerMigrationBlock | null

Other responses: 404, 422.

curl --request GET \
  --url 'https://munirichment2.p.rapidapi.com/v1/geographies/13089/tax-base-momentum' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: munirichment2.p.rapidapi.com'

Tax-base momentum by name

GET/v1/locations/tax-base-momentum

The same indicators, looked up by state and county name.

Parameters

ParameterInTypeDescription
state requiredquerystring2-letter state code (e.g. TX).
county requiredquerystringCounty name (e.g. Travis).

Response fields

FieldTypeDescription
county_fips requiredstring
state_code requiredstring
county_name requiredstring
status requiredstring
housing_price_momentum requiredHousingMomentumBlock | null
taxpayer_wealth_migration requiredTaxpayerMigrationBlock | null

Other responses: 404, 409, 422.

curl --request GET \
  --url 'https://munirichment2.p.rapidapi.com/v1/locations/tax-base-momentum' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: munirichment2.p.rapidapi.com'

Locations

Find a county, place or ZIP code area and read its detail.

Location detail

GET/v1/locations/{location_id}

One location by the id a search returned.

Parameters

ParameterInTypeDescription
location_id requiredpathstring (uuid)

Response fields

FieldTypeDescription
id requiredstring
name requiredstring
geography_type requiredstring
has_boundary requiredboolean
identifiers requiredarray of LocationIdentifier

Other responses: 404, 422.

curl --request GET \
  --url 'https://munirichment2.p.rapidapi.com/v1/locations/91cbfb05-33e7-4093-8788-657b0bc4f347' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: munirichment2.p.rapidapi.com'

Source records

Published records from one source, by its id.

Source records

GET/v1/sources/{source_id}/observations

Published records from one source, by its source id.

Parameters

ParameterInTypeDescription
source_id requiredpathstring
fiscal_yearqueryinteger | nullExact fiscal year. A year outside the extent entirely returns 422.
pledge_typequerystring | nullExact, case-sensitive match against the published PledgeType string (e.g. "General Obligation").
government_namequerystring | nullExact, case-sensitive match against the published GovernmentName display string.
cursorquerystring | nullOpaque keyset cursor from a previous response's next_cursor. Ordering is by the record's source-local id: deterministic and stable under concurrent inserts, but not semantically meaningful -- it is a UUID5 hash, neither name nor time order.
limitqueryinteger

Response fields

FieldTypeDescription
source requiredSourceDescriptor
coverage requiredCoverageDescriptor
semantics requiredSemanticsDescriptorMachine-readable statements of what this source does and does not document.
items requiredarray of ObservationRecord
next_cursor requiredstring | null

Other responses: 422, 503.

curl --request GET \
  --url 'https://munirichment2.p.rapidapi.com/v1/sources/state-bond-source-tx-ccd-n9aw-v6n3/observations' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: munirichment2.p.rapidapi.com'

Coverage

Counts of what the API holds right now.

Coverage

GET/v1/coverage

Current counts of governments, counties, securities and holdings the API can serve.

Response fields

FieldTypeDescription
basis requiredstring
total_government_units requiredinteger
place_coveragearray of PlaceMeasureCoverageCurrent counts by county/place, measure, source, period and revision.
total_geographies requiredinteger
geographies_with_boundary requiredinteger
measures requiredarray of MeasureCoverage
sources_with_published_records requiredinteger
source_records requiredarray of SourceRecordCoverage
catalog_enrichment requiredEnrichmentCatalogCoverage
state_issuance_candidates requiredarray of StateIssuanceCandidateCoverage
state_readinessStateReadinessSummary | null
municipal_profile_benchmarkProfileBenchmark | nullAll requests, including failures, contribute to sampled_securities.
curl --request GET \
  --url 'https://munirichment2.p.rapidapi.com/v1/coverage' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: munirichment2.p.rapidapi.com'