Skip to content

List cities with active fundraisers​

GET
/fundraisers/cities

Every city that has at least one active public campaign, for a "near" city picker: one row per city, with how many active public campaigns it has and a representative point to pass to GET /fundraisers?near=<lat>,<lng>. No authentication.

Active means what GET /fundraisers?status=active lists: status active, end date not passed, visibility: public, not deleted. Cities come from a server-side, city-level geocode of each campaign's free-text location; campaigns whose location has no city (not yet geocoded, not a place, or a whole state or country) are not counted. lat/lng is the average of that city's campaigns' points, which are all the city's centroid, to 2 decimals. Sorted by count, most first, then by label. label is "City, REGION" in the US and "City, Country" elsewhere. Cached for up to 5 minutes.

Responses​

Cities with active public campaigns

application/json
JSON
{
"data": [
{
"label": "Sacramento, CA",
"city": "Sacramento",
"region": "CA",
"country": "US",
"lat": 38.58,
"lng": -121.49,
"count": 12
}
]
}

Playground​

Samples​

Powered by VitePress OpenAPI

Built with VitePress