{"openapi":"3.1.0","info":{"title":"Majmu Bank Data","version":"1.1.0","description":"US bank data for AI agents, built on the FDIC BankFind Suite API and the GLEIF LEI API. A data call is $0.05. A full report is $5.00. Without an API key, each IP address gets 20 calls per UTC day. The next call returns HTTP 402 with x402 payment requirements (body \"accepts\" for v1, \"PAYMENT-REQUIRED\" header for v2). Pay with an EIP-3009 USDC authorization on Base in \"PAYMENT-SIGNATURE\" (v2) or \"X-PAYMENT\" (v1); it is verified and settled before the response, which carries a \"PAYMENT-RESPONSE\" receipt. A paid call skips the free tier. Every response lists the upstream URLs queried and the retrieval time. Dollar amounts are USD thousands as FDIC publishes them; ratios are percent. Responses are cached briefly (5 minutes) and upstream calls time out after 12 seconds."},"servers":[{"url":"https://banking.majmu.xyz"}],"x-payment":{"accepted":true,"protocol":"x402","x402Versions":[1,2],"scheme":"exact","network":"base","networkCaip2":"eip155:8453","chainId":8453,"payTo":"0xe331E85A45790CFd949208fEdd78b530fc45C6EE","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","assetSymbol":"USDC","facilitator":"https://facilitator.payai.network","headers":{"request":["PAYMENT-SIGNATURE","X-PAYMENT"],"required":"PAYMENT-REQUIRED","response":["PAYMENT-RESPONSE","X-PAYMENT-RESPONSE"]},"note":"Pay per call with x402: request without a key, read the 402 requirements, sign an EIP-3009 USDC authorization for the exact amount, and resend with PAYMENT-SIGNATURE (v2) or X-PAYMENT (v1). The payment is verified and settled on Base before the response is released. A paid call skips the free tier."},"x-bank-data-pricing":{"currency":"USD","dataCallUsd":0.05,"reportUsd":5,"freeDailyLimit":20},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"},"apiKey":{"type":"apiKey","in":"header","name":"X-API-Key"}}},"security":[{"bearer":[]},{"apiKey":[]},{}],"paths":{"/api/health":{"get":{"operationId":"health","summary":"Service health, pricing and limits.","responses":{"200":{"description":"The service is up."}}}},"/api/institutions":{"get":{"operationId":"institutions","summary":"Institution search ($0.05).","description":"FDIC-insured institutions with assets, deposits, net income, offices, charter class, regulator, holding company and the LEI FDIC has on file. Example: /api/institutions?state=OH&sort=assets&limit=10","parameters":[{"name":"state","in":"query","required":false,"description":"Two-letter state code of the main office, e.g. OH.","schema":{"type":"string"}},{"name":"minAssets","in":"query","required":false,"description":"Minimum assets. A plain number is USD thousands (FDIC's unit); suffix k, m, b, t for thousand, million, billion, trillion dollars, e.g. 1b.","schema":{"type":"string"}},{"name":"maxAssets","in":"query","required":false,"description":"Maximum assets, same format, e.g. 20b.","schema":{"type":"string"}},{"name":"active","in":"query","required":false,"description":"true (default), false or all.","schema":{"type":"string","enum":["true","false","all"]}},{"name":"name","in":"query","required":false,"description":"Name search, e.g. huntington.","schema":{"type":"string"}},{"name":"cert","in":"query","required":false,"description":"Comma-separated FDIC certificate numbers (max 50).","schema":{"type":"string"}},{"name":"sort","in":"query","required":false,"description":"assets (default), name, cert or established.","schema":{"type":"string","enum":["assets","name","cert","established"]}},{"name":"order","in":"query","required":false,"description":"asc or desc (assets and established default to desc).","schema":{"type":"string","enum":["asc","desc"]}},{"name":"limit","in":"query","required":false,"description":"Rows to return, default 25, max 500.","schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"description":"Rows to skip (pagination).","schema":{"type":"string"}},{"name":"format","in":"query","required":false,"description":"json (default) or csv. CSV carries X-Retrieved-At and X-Source-Urls headers.","schema":{"type":"string","enum":["json","csv"]}}],"responses":{"200":{"description":"JSON with the data, source.sourceUrls, retrievedAt, price and usage. With format=csv: text/csv."},"400":{"description":"A parameter is invalid. The body names the parameter."},"401":{"description":"The API key was not recognized."},"402":{"description":"Payment required (free tier used up, or the x402 payment was invalid). Body holds x402 v1 accepts; PAYMENT-REQUIRED header holds v2."},"404":{"description":"Nothing found at that address, for example an unknown FDIC certificate."},"429":{"description":"The API key is over its daily limit."},"502":{"description":"FDIC or GLEIF failed. Retry shortly."},"504":{"description":"FDIC or GLEIF did not answer in time."}}}},"/api/institution/{cert}":{"get":{"operationId":"institution","summary":"Institution profile ($0.05).","description":"One institution: profile, latest call report financials and its ten most recent institution-level structure events. Example: /api/institution/628","parameters":[{"name":"cert","in":"path","required":true,"description":"FDIC certificate number (path).","schema":{"type":"string"},"example":"628"}],"responses":{"200":{"description":"JSON with the data, source.sourceUrls, retrievedAt, price and usage. With format=csv: text/csv."},"400":{"description":"A parameter is invalid. The body names the parameter."},"401":{"description":"The API key was not recognized."},"402":{"description":"Payment required (free tier used up, or the x402 payment was invalid). Body holds x402 v1 accepts; PAYMENT-REQUIRED header holds v2."},"404":{"description":"Nothing found at that address, for example an unknown FDIC certificate."},"429":{"description":"The API key is over its daily limit."},"502":{"description":"FDIC or GLEIF failed. Retry shortly."},"504":{"description":"FDIC or GLEIF did not answer in time."}}}},"/api/financials":{"get":{"operationId":"financials","summary":"Quarterly call report series ($0.05).","description":"Quarterly call report fields (assets, deposits, equity, income, loans by type, risk-based capital) for one or more certificates. Example: /api/financials?cert=628&from=20250101&fields=ASSET,DEP,LNRECONS,RBC","parameters":[{"name":"cert","in":"query","required":true,"description":"FDIC certificate numbers, comma-separated (max 50).","schema":{"type":"string"},"example":"628"},{"name":"from","in":"query","required":false,"description":"First report date, YYYYMMDD or YYYY-MM-DD.","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"Last report date.","schema":{"type":"string"}},{"name":"fields","in":"query","required":false,"description":"FDIC call report field names, comma-separated (max 40). Default: ASSET, DEP, EQTOT, NETINC, ROA, ROE, LNLSNET, LNRE, LNRECONS, LNREMULT, LNRENROT, LNRENROW, RBCT1J, RBC, RBCRWAJ.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Rows, default 100, max 2000.","schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"description":"Rows to skip (pagination).","schema":{"type":"string"}},{"name":"format","in":"query","required":false,"description":"json (default) or csv. CSV carries X-Retrieved-At and X-Source-Urls headers.","schema":{"type":"string","enum":["json","csv"]}}],"responses":{"200":{"description":"JSON with the data, source.sourceUrls, retrievedAt, price and usage. With format=csv: text/csv."},"400":{"description":"A parameter is invalid. The body names the parameter."},"401":{"description":"The API key was not recognized."},"402":{"description":"Payment required (free tier used up, or the x402 payment was invalid). Body holds x402 v1 accepts; PAYMENT-REQUIRED header holds v2."},"404":{"description":"Nothing found at that address, for example an unknown FDIC certificate."},"429":{"description":"The API key is over its daily limit."},"502":{"description":"FDIC or GLEIF failed. Retry shortly."},"504":{"description":"FDIC or GLEIF did not answer in time."}}}},"/api/structure-changes":{"get":{"operationId":"structure_changes","summary":"Structure changes ($0.05).","description":"FDIC history events: openings, closings, failures, branch sales and purchases, mergers, name changes, relocations, regulator and charter changes. Example: /api/structure-changes?from=2026-11-01&type=merger,sale&level=institution","parameters":[{"name":"from","in":"query","required":false,"description":"Start date, YYYYMMDD or YYYY-MM-DD.","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"End date.","schema":{"type":"string"}},{"name":"dateField","in":"query","required":false,"description":"processed (default, FDIC PROCDATE) or effective (EFFDATE).","schema":{"type":"string","enum":["processed","effective"]}},{"name":"state","in":"query","required":false,"description":"Office state, two letters.","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"Category (opening, closing, failure, sale, merger, reorganization, name_change, relocation, charter_regulatory) and/or 3-digit FDIC change codes, comma-separated.","schema":{"type":"string"}},{"name":"level","in":"query","required":false,"description":"all (default), institution or branch.","schema":{"type":"string","enum":["all","institution","branch"]}},{"name":"cert","in":"query","required":false,"description":"FDIC certificate numbers.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Rows, default 100, max 2000.","schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"description":"Rows to skip (pagination).","schema":{"type":"string"}},{"name":"format","in":"query","required":false,"description":"json (default) or csv. CSV carries X-Retrieved-At and X-Source-Urls headers.","schema":{"type":"string","enum":["json","csv"]}}],"responses":{"200":{"description":"JSON with the data, source.sourceUrls, retrievedAt, price and usage. With format=csv: text/csv."},"400":{"description":"A parameter is invalid. The body names the parameter."},"401":{"description":"The API key was not recognized."},"402":{"description":"Payment required (free tier used up, or the x402 payment was invalid). Body holds x402 v1 accepts; PAYMENT-REQUIRED header holds v2."},"404":{"description":"Nothing found at that address, for example an unknown FDIC certificate."},"429":{"description":"The API key is over its daily limit."},"502":{"description":"FDIC or GLEIF failed. Retry shortly."},"504":{"description":"FDIC or GLEIF did not answer in time."}}}},"/api/failures":{"get":{"operationId":"failures","summary":"Bank failures ($0.05).","description":"Failed and assisted institutions: assets and deposits at failure, estimated cost to the insurance fund, resolution type and acquirer. Example: /api/failures?from=2014-01-01&to=2016-12-31","parameters":[{"name":"from","in":"query","required":false,"description":"Failure date from, YYYYMMDD or YYYY-MM-DD.","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"Failure date to.","schema":{"type":"string"}},{"name":"state","in":"query","required":false,"description":"Two-letter state of the failed bank.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Rows, default 100, max 1000.","schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"description":"Rows to skip (pagination).","schema":{"type":"string"}},{"name":"format","in":"query","required":false,"description":"json (default) or csv. CSV carries X-Retrieved-At and X-Source-Urls headers.","schema":{"type":"string","enum":["json","csv"]}}],"responses":{"200":{"description":"JSON with the data, source.sourceUrls, retrievedAt, price and usage. With format=csv: text/csv."},"400":{"description":"A parameter is invalid. The body names the parameter."},"401":{"description":"The API key was not recognized."},"402":{"description":"Payment required (free tier used up, or the x402 payment was invalid). Body holds x402 v1 accepts; PAYMENT-REQUIRED header holds v2."},"404":{"description":"Nothing found at that address, for example an unknown FDIC certificate."},"429":{"description":"The API key is over its daily limit."},"502":{"description":"FDIC or GLEIF failed. Retry shortly."},"504":{"description":"FDIC or GLEIF did not answer in time."}}}},"/api/cre-screen":{"get":{"operationId":"cre_screen","summary":"CRE concentration screen ($0.05).","description":"Construction and commercial real estate loans against capital for every bank in a state and asset band, with 36-month growth and 100% / 300% / 50% guidance flags. Example: /api/cre-screen?state=TX&minAssets=1b&maxAssets=20b","parameters":[{"name":"state","in":"query","required":true,"description":"Two-letter state code.","schema":{"type":"string"},"example":"TX"},{"name":"minAssets","in":"query","required":false,"description":"Minimum assets (see /api/institutions).","schema":{"type":"string"}},{"name":"maxAssets","in":"query","required":false,"description":"Maximum assets.","schema":{"type":"string"}},{"name":"date","in":"query","required":false,"description":"Report quarter-end, YYYYMMDD (default: latest quarter the banks have filed).","schema":{"type":"string"}},{"name":"growthFrom","in":"query","required":false,"description":"Prior quarter-end for growth (default: 36 months before date).","schema":{"type":"string"}},{"name":"capital","in":"query","required":false,"description":"auto (default: RBC total risk-based capital when above zero, else RBCT1J Tier 1), total (RBC only) or tier1 (RBCT1J only).","schema":{"type":"string","enum":["auto","total","tier1"]}},{"name":"top","in":"query","required":false,"description":"Size of the top-ratio list in the summary (default 15).","schema":{"type":"string"}},{"name":"format","in":"query","required":false,"description":"json (default) or csv. CSV carries X-Retrieved-At and X-Source-Urls headers.","schema":{"type":"string","enum":["json","csv"]}}],"responses":{"200":{"description":"JSON with the data, source.sourceUrls, retrievedAt, price and usage. With format=csv: text/csv."},"400":{"description":"A parameter is invalid. The body names the parameter."},"401":{"description":"The API key was not recognized."},"402":{"description":"Payment required (free tier used up, or the x402 payment was invalid). Body holds x402 v1 accepts; PAYMENT-REQUIRED header holds v2."},"404":{"description":"Nothing found at that address, for example an unknown FDIC certificate."},"429":{"description":"The API key is over its daily limit."},"502":{"description":"FDIC or GLEIF failed. Retry shortly."},"504":{"description":"FDIC or GLEIF did not answer in time."}}}},"/api/lei-match":{"get":{"operationId":"lei_match","summary":"FDIC to GLEIF LEI match ($0.05).","description":"Match FDIC institutions to GLEIF LEI records by normalized legal name, city and state. Returns the match rule, confidence, conflicts and rejected candidates. Example: /api/lei-match?cert=628","parameters":[{"name":"cert","in":"query","required":false,"description":"FDIC certificate numbers, comma-separated (max 25).","schema":{"type":"string"}},{"name":"state","in":"query","required":false,"description":"Alternative to cert: the largest active banks in this state.","schema":{"type":"string"}},{"name":"top","in":"query","required":false,"description":"With state: how many (default 10, max 25).","schema":{"type":"string"}},{"name":"minAssets","in":"query","required":false,"description":"With state: minimum assets.","schema":{"type":"string"}},{"name":"maxAssets","in":"query","required":false,"description":"With state: maximum assets.","schema":{"type":"string"}},{"name":"format","in":"query","required":false,"description":"json (default) or csv. CSV carries X-Retrieved-At and X-Source-Urls headers.","schema":{"type":"string","enum":["json","csv"]}}],"responses":{"200":{"description":"JSON with the data, source.sourceUrls, retrievedAt, price and usage. With format=csv: text/csv."},"400":{"description":"A parameter is invalid. The body names the parameter."},"401":{"description":"The API key was not recognized."},"402":{"description":"Payment required (free tier used up, or the x402 payment was invalid). Body holds x402 v1 accepts; PAYMENT-REQUIRED header holds v2."},"404":{"description":"Nothing found at that address, for example an unknown FDIC certificate."},"429":{"description":"The API key is over its daily limit."},"502":{"description":"FDIC or GLEIF failed. Retry shortly."},"504":{"description":"FDIC or GLEIF did not answer in time."}}}},"/api/branches":{"get":{"operationId":"branches","summary":"Branch Network ($0.05).","description":"Every FDIC-insured office of an institution, or every office in a place: address, county FIPS, CBSA, coordinates, service type and opening date, plus an office count by state. Example: /api/branches?cert=628&state=NY&county=Suffolk&limit=50","parameters":[{"name":"cert","in":"query","required":false,"description":"FDIC certificate numbers, comma-separated (max 25). Omit to list every bank's offices in a place.","schema":{"type":"string"}},{"name":"state","in":"query","required":false,"description":"Two-letter state of the office.","schema":{"type":"string"}},{"name":"county","in":"query","required":false,"description":"County name (needs state) or 5-digit state+county FIPS, e.g. 36103.","schema":{"type":"string"}},{"name":"city","in":"query","required":false,"description":"City name.","schema":{"type":"string"}},{"name":"zip","in":"query","required":false,"description":"5-digit ZIP.","schema":{"type":"string"}},{"name":"cbsa","in":"query","required":false,"description":"5-digit CBSA/MSA code, e.g. 35620.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Rows, default 100, max 2000.","schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"description":"Rows to skip (pagination).","schema":{"type":"string"}},{"name":"format","in":"query","required":false,"description":"json (default) or csv. CSV carries X-Retrieved-At and X-Source-Urls headers.","schema":{"type":"string","enum":["json","csv"]}}],"responses":{"200":{"description":"JSON with the data, source.sourceUrls, retrievedAt, price and usage. With format=csv: text/csv."},"400":{"description":"A parameter is invalid. The body names the parameter."},"401":{"description":"The API key was not recognized."},"402":{"description":"Payment required (free tier used up, or the x402 payment was invalid). Body holds x402 v1 accepts; PAYMENT-REQUIRED header holds v2."},"404":{"description":"Nothing found at that address, for example an unknown FDIC certificate."},"429":{"description":"The API key is over its daily limit."},"502":{"description":"FDIC or GLEIF failed. Retry shortly."},"504":{"description":"FDIC or GLEIF did not answer in time."}}}},"/api/deposit-share":{"get":{"operationId":"deposit_share","summary":"Deposit Market Share (SOD) ($0.05).","description":"FDIC Summary of Deposits market share for a state, county, MSA or city and year: deposits and branches per bank or holding company, share %, rank, top-3 share and HHI concentration. Example: /api/deposit-share?county=36103&year=2026&top=10","parameters":[{"name":"year","in":"query","required":false,"description":"SOD year (data as of June 30). Default: latest published.","schema":{"type":"string"}},{"name":"state","in":"query","required":false,"description":"Two-letter state. Alone it is the whole state market.","schema":{"type":"string"}},{"name":"county","in":"query","required":false,"description":"5-digit FIPS (e.g. 36061) or a county name with state.","schema":{"type":"string"}},{"name":"msa","in":"query","required":false,"description":"5-digit MSA/CBSA code, e.g. 35620.","schema":{"type":"string"}},{"name":"city","in":"query","required":false,"description":"City name, with state.","schema":{"type":"string"}},{"name":"cert","in":"query","required":false,"description":"Optional certificate numbers to highlight with their rank and share (max 10).","schema":{"type":"string"}},{"name":"groupBy","in":"query","required":false,"description":"institution (default) or holding_company.","schema":{"type":"string","enum":["institution","holding_company"]}},{"name":"top","in":"query","required":false,"description":"Rows to return, default 25, max 1000. Totals and HHI always cover the whole market.","schema":{"type":"string"}},{"name":"format","in":"query","required":false,"description":"json (default) or csv. CSV carries X-Retrieved-At and X-Source-Urls headers.","schema":{"type":"string","enum":["json","csv"]}}],"responses":{"200":{"description":"JSON with the data, source.sourceUrls, retrievedAt, price and usage. With format=csv: text/csv."},"400":{"description":"A parameter is invalid. The body names the parameter."},"401":{"description":"The API key was not recognized."},"402":{"description":"Payment required (free tier used up, or the x402 payment was invalid). Body holds x402 v1 accepts; PAYMENT-REQUIRED header holds v2."},"404":{"description":"Nothing found at that address, for example an unknown FDIC certificate."},"429":{"description":"The API key is over its daily limit."},"502":{"description":"FDIC or GLEIF failed. Retry shortly."},"504":{"description":"FDIC or GLEIF did not answer in time."}}}},"/api/report":{"post":{"operationId":"report","summary":"Full report ($5.00).","description":"One call, one finished report: summary, method, table, CSV and a self-check, for failures, structure changes, CRE screens, LEI matching or deposit market share. Example: POST /api/report {\"type\":\"failures\",\"params\":{\"from\":\"2014-01-01\",\"to\":\"2016-12-31\"}}","parameters":[{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["json","csv"]},"description":"json (default) or csv (the report table only)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["failures","structure","cre","lei"]},"params":{"type":"object","additionalProperties":true,"description":"Same parameters as the matching data endpoint."}}}}}},"responses":{"200":{"description":"report: summary, method, table, csv, selfCheck, caveats; plus source URLs, retrievedAt, price, usage."},"400":{"description":"A parameter is invalid. The body names the parameter."},"401":{"description":"The API key was not recognized."},"402":{"description":"Payment required (free tier used up, or the x402 payment was invalid). Body holds x402 v1 accepts; PAYMENT-REQUIRED header holds v2."},"404":{"description":"Nothing found at that address, for example an unknown FDIC certificate."},"429":{"description":"The API key is over its daily limit."},"502":{"description":"FDIC or GLEIF failed. Retry shortly."},"504":{"description":"FDIC or GLEIF did not answer in time."}}}},"/openapi.json":{"get":{"operationId":"openapi","summary":"This document.","responses":{"200":{"description":"OpenAPI 3.1 JSON."}}}},"/.well-known/agent.json":{"get":{"operationId":"agentManifest","summary":"Agent manifest (EIP-8004 style). Served by a rewrite to /api/agent.","responses":{"200":{"description":"Agent manifest."}}}}}}