Skip to main content
POST
/
api
/
v1
/
muni_entity_search
Search for municipal bond issuers/entities
curl --request POST \
  --url https://terrapinfinance.com/api/v1/muni_entity_search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "limit": 2,
  "search_query": "Chicago"
}
'
{
  "data": [
    {
      "counties": [
        "Cook"
      ],
      "entity_id": 1234,
      "name": "City of Chicago",
      "state": "IL"
    },
    {
      "counties": [
        "Cook"
      ],
      "entity_id": 1235,
      "name": "Chicago Board of Education",
      "state": "IL"
    }
  ],
  "total": 2
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
search_query
string
required

Search query string. Searches across entity name, state, and counties.

Minimum string length: 1
limit
integer
default:10

Maximum number of results to return.

Required range: 1 <= x <= 50

Response

List of entities matching the search query

data
object[]
required

List of response data objects, often capped to 1000.

total
integer
required

Total number of results in the database that match the query filters.