Skip to content

Public leaderboard​

GET
/leaderboard

One ranked list on impact = raised + given + driven, in integer cents, over the chosen period.
All three value a gift the one way the campaign card does: what it raised, net of fees, tips excluded
(its ledger credit less its Stripe fee), over paid and refunded gifts to public campaigns — a refund
does not lower any of them.
Raised is the sum of the person's counted campaign cards — gifts to public fundraisers they organize, their own gifts included;
Given is every such gift they made under their name; Driven is other people's such gifts through
their share or ambassador link to fundraisers they do not organize. Every dollar counts once.
Anonymous donors appear as alias rows keyed on an opaque anonymousKey; guest and anonymous rows link to their donor page under /d/{kind}/{key}.
When the request carries a session, standing describes where the caller ranks on the full view.
q searches the ranked board by name without renumbering it: a match keeps the rank it has on the full view.

Views and scopes (#2070). Cities and communities are filters on the same board. view picks people,
communities or cities; city (with area=1 for its metro) and community narrow it. A city scope ranks
every row whose ONE home city is in it: a registered person's profile city; without one (and for guest
and anonymous rows), the city most of that row's own settled gifts come from (donor_place_id, all time;
a tie goes to the most recent gift). Guest and anonymous rows are the same rows as Everywhere: a guest by
the name the donor wall prints, an anonymous donor by its alias key, never a name, an email or a user id;
a person's anonymous gifts are their alias row's and never place their named row. A community scope ranks its members on
impact through that community (amount_cents, each gift once per member), and a member who turned off
"Show me" appears as "A member" (hidden: true, an opaque id, no name). A private community lists its
members to its members only. Scope totals and community/city rows count each settled gift ONCE, in the
first part that claims it (fund, raised, given, driven), so a total is less than its people rows added up;
dedupe_note says when such a total is on the page. Every combination is a valid URL: a view the scope
does not offer falls back to people, and only an unknown city or community is a 404 SCOPE_NOT_FOUND
(which is also the answer before the cities and communities tables exist; the two views are then empty).

Authorizations​

BearerAuth

In the browser, authentication rides on the httpOnly session cookies set by /cognito/signin or the Google / Apple sign-in at /cognito/oauth/{provider}. For scripts and for Swagger UI testing, paste an API key (fh_live_…, created with POST /api-keys); a Cognito JWT is accepted too. Sign-in does not return a token in its body.

Type
HTTP (bearer)
or

Parameters​

Query Parameters

period
Type
string
Valid values
"all""30d""7d"
Default
"all"
role

Everyone; people organizing a public fundraiser; ambassador role holders; or donors — everyone with a settled gift under their name, whatever their role, anonymous identities included. Everyone, creators and ambassadors rank on impact; donors rank on given (see metric). A filtered view is ranked within itself.

Type
string
Valid values
"all""creators""ambassadors""donors"
Default
"all"
offset
Type
integer
Minimum
0
Default
0
limit
Type
integer
Minimum
1
Maximum
100
Default
25
q

Name search over this view. Trimmed and cut to 100 characters.

Type
string
Max Length
100
lang

Language for badge titles and anonymous aliases (en, ru, uk, es). Defaults from Accept-Language.

Type
string
view

What is ranked. A city scope offers people and communities; a community scope offers people (its members). Another value falls back to people.

Type
string
Valid values
"people""communities""cities"
Default
"people"
city

A city's slug (e.g. sacramento-ca), case-insensitive. An old slug of a renamed or merged city resolves to the surviving one; scope.slug is canonical.

Type
string
Max Length
120
area

With city, 1 includes the city's whole metro, counted as one scope. Ignored for a city with no metro.

Type
string
Valid values
"1"
community

A community's slug (or id), case-insensitive. Wins over city when both are sent.

Type
string
Max Length
120

Responses​

One page of the ranked view

application/json
JSON
{
"entries": [
{
"type": "string",
"city": {
"slug": "string",
"name": "string"
},
"community_scope": {
"slug": "string",
"name": "string"
},
"is_viewer": true,
"community_role": "string",
"hidden": true,
"rank": 0,
"tied": true,
"id": "string",
"kind": "string",
"name": "string",
"avatar": "string",
"href": "string",
"anonymousKey": "string",
"isCreator": true,
"isAmbassador": true,
"raised": 0,
"given": 0,
"driven": 0,
"impact": 0,
"score": 0,
"impressions": 0,
"gifts": 0,
"badges": [
{
"slug": "string",
"artKey": "string",
"artUrl": "string",
"tier": "string",
"title": "string"
}
],
"badgeCount": 0
}
],
"qualified": 0,
"hasMore": true,
"standing": {
"rank": 0,
"tied": true,
"score": 0,
"impact": 0,
"raised": 0,
"given": 0,
"driven": 0,
"gap": 0,
"above": "string"
},
"period": "string",
"role": "string",
"metric": "string",
"offset": 0,
"limit": 0,
"query": "string",
"view": "string",
"views": [
"string"
],
"scope": "string",
"viewer_standing": {
"status": "string",
"rank": 0,
"score": 0,
"impact": 0,
"raised": 0,
"given": 0,
"driven": 0,
"gap": 0,
"above": "string",
"above_hidden": true,
"scope_name": "string",
"reason": "string",
"viewer_city": {
"slug": "string",
"name": "string"
},
"suggestion": {
"kind": "string",
"city": "string",
"area": true,
"name": "string",
"href": "string"
}
},
"jump_to": {
"city": {
"slug": "string",
"name": "string",
"photo_url": "string",
"relation": "string",
"area": true,
"impact_cents": 0,
"href": "string"
},
"communities": [
{
"slug": "string",
"name": "string",
"photo_url": "string",
"member_count": 0,
"impact_cents": 0,
"role": "string",
"href": "string"
}
]
},
"dedupe_note": true,
"executionTimeMs": 0,
"cached": true
}

Playground​

Server
Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Built with VitePress