{"openapi":"3.1.0","info":{"title":"KeepUp Public API","summary":"Household net worth percentiles and thresholds by country, how KeepUp users compare, and the Marketplace's offers (US). Read-only, no key.","description":"Aggregate wealth-distribution data from KeepUp (https://keepup.finance), the verified net worth ranking platform and personal net worth tracker. Every figure is household net worth in USD from national wealth surveys and the UBS Global Wealth Databook, fitted to a log-normal distribution — the same numbers the https://keepup.finance/net-worth-percentile pages show.\n\nAlso: rounded group figures over KeepUp users on the public leaderboard (never an individual), and the financial-product offers in KeepUp's Marketplace (United States only; the providers pay KeepUp).\n\nNo authentication, no personal or account data. Assistants that speak MCP can call the same tools at https://api.keepup.finance/mcp; the site's machine-readable index is https://keepup.finance/llms.txt.","termsOfService":"https://keepup.finance/terms","contact":{"name":"KeepUp","url":"https://keepup.finance/","email":"support@keepup.finance"},"version":"1.0.0"},"servers":[{"url":"/public"},{"url":"https://api.keepup.finance/public","description":"Production"}],"paths":{"/":{"get":{"tags":["Index"],"summary":"What this API offers","description":"A map of the public API and of every other machine-readable KeepUp\nsurface, for an agent that arrives here first.","operationId":"index__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Index  Get"}}}}}}},"/net-worth-percentile":{"get":{"tags":["Net worth percentiles"],"summary":"Percentile of a household net worth","description":"Where a household net worth falls in a country's wealth distribution\n(optionally among households of one age group): the percentile, the\nmatching 'top X%', and a one-sentence answer.","operationId":"net_worth_percentile_net_worth_percentile_get","parameters":[{"name":"net_worth_usd","in":"query","required":true,"schema":{"type":"number","exclusiveMinimum":0,"description":"Household net worth in US dollars.","examples":[250000],"title":"Net Worth Usd"},"description":"Household net worth in US dollars."},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO 3166-1 alpha-2 country code (US, DE, JP …) or WORLD for the worldwide distribution. GET /public/countries lists every supported code.","examples":["DE"],"title":"Country"},"description":"ISO 3166-1 alpha-2 country code (US, DE, JP …) or WORLD for the worldwide distribution. GET /public/countries lists every supported code."},{"name":"age","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":120,"minimum":18},{"type":"null"}],"description":"Age of the household head: ranks within that age group (needs a country).","examples":[30],"title":"Age"},"description":"Age of the household head: ranks within that age group (needs a country)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PercentileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/countries/{country}/net-worth-thresholds":{"get":{"tags":["Net worth percentiles"],"summary":"Net worth needed for the median and the top 25 / 10 / 5 / 1%","description":"The household net worth (USD) at each rung of a country's wealth\ndistribution — enough to build the country's threshold table.","operationId":"country_net_worth_thresholds_countries__country__net_worth_thresholds_get","parameters":[{"name":"country","in":"path","required":true,"schema":{"type":"string","description":"ISO 3166-1 alpha-2 country code (US, DE, JP …) or WORLD for the worldwide distribution. GET /public/countries lists every supported code.","examples":["DE"],"title":"Country"},"description":"ISO 3166-1 alpha-2 country code (US, DE, JP …) or WORLD for the worldwide distribution. GET /public/countries lists every supported code."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThresholdsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/countries/{country}/net-worth-by-age":{"get":{"tags":["Net worth percentiles"],"summary":"Household net worth by age: median, top 10% and top 1% per age group","description":"Net worth by age of the household head, as the percentile pages' by-age\ntable shows it. Federal Reserve survey figures for the United States; elsewhere\nthe US age pattern applied to the country's distribution (an estimate).","operationId":"country_net_worth_by_age_countries__country__net_worth_by_age_get","parameters":[{"name":"country","in":"path","required":true,"schema":{"type":"string","description":"ISO 3166-1 alpha-2 country code (US, DE, JP …).","examples":["US"],"title":"Country"},"description":"ISO 3166-1 alpha-2 country code (US, DE, JP …)."},{"name":"age","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":120,"minimum":18},{"type":"null"}],"description":"Marks the age group it falls in.","examples":[30],"title":"Age"},"description":"Marks the age group it falls in."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ByAgeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/countries":{"get":{"tags":["Net worth percentiles"],"summary":"Every country with wealth-distribution data","description":"Valid country codes for the other endpoints, with whether each country\nhas full survey breakpoints (higher precision at the tails).","operationId":"countries_countries_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountriesOut"}}}}}}},"/offers":{"get":{"tags":["Marketplace offers"],"summary":"Financial-product offers in KeepUp's Marketplace (US only; the providers pay KeepUp)","description":"The offers listed in KeepUp's Marketplace that are open to the API:\neach program's own approved headline, small print and key facts, the date\nthey were last checked, the states it is open in, and a link that goes\nthrough KeepUp's click redirect (a random click id, nothing else). The\nproviders pay KeepUp when someone signs up; `disclosure` says so and must\ntravel with any listing built from this. United States only.","operationId":"public_offers_offers_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One of savings, checking, cards, credit, investing, crypto, retirement, tax_legal, protection, business. Omit for all.","examples":["crypto"],"title":"Category"},"description":"One of savings, checking, cards, credit, investing, crypto, retirement, tax_legal, protection, business. Omit for all."},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Two-letter US state code: only offers open there. Omit for all.","examples":["CA"],"title":"State"},"description":"Two-letter US state code: only offers open there. Omit for all."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/countries/{country}/members":{"get":{"tags":["KeepUp users"],"summary":"How KeepUp users in a country (or WORLD) compare, by age band","description":"Aggregate over KeepUp users in a country (WORLD for every country)\nwhose leaderboard row publishes the given age band: the net worth at the\n25th, 50th, 75th and 90th percentiles (rounded to two significant\nfigures) and the share led by each asset class. Groups under five widen\nto the nearest wider band, then to the whole country; under five there\ntoo, `available` is false. Never individual rows, never a count.","operationId":"public_country_members_countries__country__members_get","parameters":[{"name":"country","in":"path","required":true,"schema":{"type":"string","title":"Country"}},{"name":"age_band","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One of 18-24, 25-34, 35-44, 45-54, 55-64, 65+. Omit for all ages.","examples":["25-34"],"title":"Age Band"},"description":"One of 18-24, 25-34, 35-44, 45-54, 55-64, 65+. Omit for all ages."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/profiles/{handle}":{"get":{"tags":["KeepUp users"],"summary":"A KeepUp user's public profile: rank, Verified badge, and where their net worth stands","description":"The public profile of a KeepUp user who chose to share one (the page at\nhttps://keepup.finance/@{handle}): their rank on the leaderboard and within\ntheir country or region, the share of households they are ahead of in\npublished national wealth data, the Verified badge (at least 80% of\ntracked assets read from connected accounts), their main asset classes, and,\nonly if they opted in, their YTD / 1Y investment return beside the S&P 500.\nNever a net worth figure. 404 when there is no such public profile.","operationId":"public_profile_json_profiles__handle__get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/profiles/{handle}/card.png":{"get":{"tags":["KeepUp users"],"summary":"A KeepUp user's live profile card (PNG, 1200x630)","description":"The profile as an image, for link previews and embedding on other\nsites. Redrawn whenever the profile changes.","operationId":"public_profile_card_profiles__handle__card_png_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AgeBracket":{"properties":{"age_group":{"type":"string","title":"Age Group","description":"Survey age group of the household head, e.g. 35–44."},"median":{"type":"integer","title":"Median"},"mean":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mean","description":"Published mean (United States only)."},"top_10_percent":{"type":"integer","title":"Top 10 Percent"},"top_1_percent":{"type":"integer","title":"Top 1 Percent"},"includes_requested_age":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Includes Requested Age"}},"type":"object","required":["age_group","median","top_10_percent","top_1_percent"],"title":"AgeBracket"},"ByAgeOut":{"properties":{"country":{"type":"string","title":"Country"},"country_name":{"type":"string","title":"Country Name"},"currency":{"type":"string","title":"Currency","description":"Always USD."},"age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age"},"brackets":{"items":{"$ref":"#/components/schemas/AgeBracket"},"type":"array","title":"Brackets"},"is_estimate":{"type":"boolean","title":"Is Estimate","description":"False for the United States (Federal Reserve survey figures); True elsewhere. The top 10% and top 1% cutoffs are always modeled."},"age_note":{"type":"string","title":"Age Note"},"summary":{"type":"string","title":"Summary"},"as_of":{"type":"string","title":"As Of"},"methodology":{"type":"string","title":"Methodology"},"source_url":{"type":"string","title":"Source Url"}},"type":"object","required":["country","country_name","currency","brackets","is_estimate","age_note","summary","as_of","methodology","source_url"],"title":"ByAgeOut"},"CountriesOut":{"properties":{"count":{"type":"integer","title":"Count"},"countries":{"items":{"$ref":"#/components/schemas/CountryOut"},"type":"array","title":"Countries"},"summary":{"type":"string","title":"Summary"},"note":{"type":"string","title":"Note"}},"type":"object","required":["count","countries","summary","note"],"title":"CountriesOut"},"CountryOut":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"has_survey_breakpoints":{"type":"boolean","title":"Has Survey Breakpoints"}},"type":"object","required":["code","name","has_survey_breakpoints"],"title":"CountryOut"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"PercentileOut":{"properties":{"country":{"type":"string","title":"Country","description":"Resolved country code, or WORLD."},"country_name":{"type":"string","title":"Country Name"},"net_worth_usd":{"type":"number","title":"Net Worth Usd"},"age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age","description":"The age asked about, when one was given."},"age_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Group","description":"The survey age group the percentile is within."},"age_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Note","description":"Where the by-age figures come from."},"percentile":{"type":"number","title":"Percentile","description":"0–100: the share of households with less."},"top_percent":{"type":"number","title":"Top Percent","description":"100 minus the percentile: 'top X%'."},"summary":{"type":"string","title":"Summary","description":"One-sentence answer, ready to quote."},"as_of":{"type":"string","title":"As Of"},"methodology":{"type":"string","title":"Methodology"},"source_url":{"type":"string","title":"Source Url","description":"The web page this figure is published on."}},"type":"object","required":["country","country_name","net_worth_usd","percentile","top_percent","summary","as_of","methodology","source_url"],"title":"PercentileOut"},"Thresholds":{"properties":{"median":{"type":"integer","title":"Median"},"top_25_percent":{"type":"integer","title":"Top 25 Percent"},"top_10_percent":{"type":"integer","title":"Top 10 Percent"},"top_5_percent":{"type":"integer","title":"Top 5 Percent"},"top_1_percent":{"type":"integer","title":"Top 1 Percent"}},"type":"object","required":["median","top_25_percent","top_10_percent","top_5_percent","top_1_percent"],"title":"Thresholds"},"ThresholdsOut":{"properties":{"country":{"type":"string","title":"Country"},"country_name":{"type":"string","title":"Country Name"},"currency":{"type":"string","title":"Currency","description":"Always USD."},"thresholds":{"$ref":"#/components/schemas/Thresholds","description":"Household net worth needed to reach each level."},"has_survey_breakpoints":{"type":"boolean","title":"Has Survey Breakpoints","description":"True when the top-10% and top-1% levels are direct survey breakpoints rather than modeled."},"precision_note":{"type":"string","title":"Precision Note"},"summary":{"type":"string","title":"Summary"},"as_of":{"type":"string","title":"As Of"},"methodology":{"type":"string","title":"Methodology"},"source_url":{"type":"string","title":"Source Url"}},"type":"object","required":["country","country_name","currency","thresholds","has_survey_breakpoints","precision_note","summary","as_of","methodology","source_url"],"title":"ThresholdsOut"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}