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. Each campaign counts in the city it is in (the US city its free-text location names, else the city a server-side geocode of it finds); campaigns in no city (not yet geocoded, not a place, or a whole state or country) are not counted, and neither are cities FundlyHub hid. lat/lng is the city's centroid, to 2 decimals: the point near measures every campaign in the city from. 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