Bank Lookup (FDIC)
Look up an FDIC-insured US bank by certificate number or name: status, charter, regulator, branches, assets, deposits and holding company.
- Price per call
- 1 credit
- per successful call
- Price ceiling
- 1 credit
- every call, same price
- Failed calls
- Free
- retried automatically
- Billed
- Per call
- only on success
Endpoint
api.primaryapi.com/ v1/ run/ bank. lookupAuth: API key with run or full access, or a dashboard session
Send the input below as a JSON body. The call is routed to a healthy upstream; if an attempt fails, it is retried automatically inside the same request and you pay only for the answer you get. To check an input and see the exact price without running anything, call POST /v1/quote/bank.lookup with the same body (free).
Example request
curl -sS -X POST "https://api.primaryapi.com/v1/run/bank.lookup" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"cert":"3511"}'const res = await fetch('https://api.primaryapi.com/v1/run/bank.lookup', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PRIMARYAPI_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
cert: '3511',
}),
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.error}`);
// found:false is a successful answer ("does not exist"), not an error
console.log(body.output.found ? body.output.data : body.output.reason, body.credits);import os
import requests
res = requests.post(
"https://api.primaryapi.com/v1/run/bank.lookup",
headers={"Authorization": f"Bearer {os.environ['PRIMARYAPI_API_KEY']}"},
json={
"cert": "3511",
},
timeout=60,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['error']}")
# found=False is a successful answer ("does not exist"), not an error
print(body["output"]["data"] if body["output"]["found"] else body["output"]["reason"], body["credits"]){
"name": "run_api",
"arguments": {
"sku": "bank.lookup",
"input": {
"cert": "3511"
}
}
}Price this exact input first (free)
curl -sS -X POST "https://api.primaryapi.com/v1/quote/bank.lookup" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"cert":"3511"}'Returns credits (what the call is expected to cost) and maxCredits (the most it can cost, which is set aside while it runs). Invalid input fails here the same way it would on run.
Input
JSON body fields. Unknown fields are rejected with 400 invalid_input (never silently ignored). You may add the routing controls preferLatencyUnderMs and maxCredits to the same object.
certstring- FDIC certificate number (1-6 digits), for example "3511". Wins over `name` when both are given.pattern: ^\d{1,6}$
namestring- Bank name to search, for example "Wells Fargo" (fuzzy: matches the leading letters of each word).max 100 chars
statestring- Two-letter US state or territory code that narrows a name search, for example "SD".pattern: ^[A-Za-z]{2}$
Output
When output.found is true, output.data has these fields.
fdicCertinteger- FDIC certificate number (CERT)
namestring- Legal name of the institution
statusenum- inactive = closed, merged or no longer FDIC-insuredone of: active, inactive
activebooleanendDatestring | null- Date the institution ended (closed or merged), YYYY-MM-DD; null while active
addressstring | nullcitystring | nullstatestring | null- Two-letter state of the main office
stateNamestring | nullzipstring | nullcountystring | nullwebsitestring | nullcharterClassstring | null- Charter class, decoded from BKCLASS
charterClassCodestring | null- Raw BKCLASS code (N, NM, SM, SB, SA, OI)
regulatorstring | null- Primary federal regulator (OCC, FDIC or FRS)
branchCountinteger | null- Number of offices (FDIC omits it for inactive institutions)
totalAssetsUsdnumber | null- Total assets in US dollars at reportDate (FDIC reports thousands)
totalDepositsUsdnumber | null- Total deposits in US dollars at reportDate
netIncomeUsdnumber | null- Year-to-date net income in US dollars at reportDate
holdingCompanystring | null- Regulatory high holder (top holding company) name
establishedDatestring | null- YYYY-MM-DD
insuredSincestring | null- Date FDIC insurance began, YYYY-MM-DD
reportDatestring | null- Date of the latest call report behind the financial figures, YYYY-MM-DD
leistring | nullfedRssdIdstring | null- Federal Reserve RSSD id
nameSearchstring | null- The name searched (null for a certificate lookup)
matchCountinteger- Institutions matching the query (1 for a certificate lookup)
otherMatchesobject[]- Further name-search matches, active institutions first
otherMatches[].fdicCertintegerotherMatches[].namestringotherMatches[].activebooleanotherMatches[].citystring | nullotherMatches[].statestring | nullcoveragestring
TypeScript type
/** output.data when output.found is true */
type BankLookup = {
/** FDIC certificate number (CERT) */
fdicCert: number;
/** Legal name of the institution */
name: string;
/** inactive = closed, merged or no longer FDIC-insured */
status: "active" | "inactive";
active: boolean;
/** Date the institution ended (closed or merged), YYYY-MM-DD; null while active */
endDate: string | null;
address: string | null;
city: string | null;
/** Two-letter state of the main office */
state: string | null;
stateName: string | null;
zip: string | null;
county: string | null;
website: string | null;
/** Charter class, decoded from BKCLASS */
charterClass: string | null;
/** Raw BKCLASS code (N, NM, SM, SB, SA, OI) */
charterClassCode: string | null;
/** Primary federal regulator (OCC, FDIC or FRS) */
regulator: string | null;
/** Number of offices (FDIC omits it for inactive institutions) */
branchCount: number | null;
/** Total assets in US dollars at reportDate (FDIC reports thousands) */
totalAssetsUsd: number | null;
/** Total deposits in US dollars at reportDate */
totalDepositsUsd: number | null;
/** Year-to-date net income in US dollars at reportDate */
netIncomeUsd: number | null;
/** Regulatory high holder (top holding company) name */
holdingCompany: string | null;
/** YYYY-MM-DD */
establishedDate: string | null;
/** Date FDIC insurance began, YYYY-MM-DD */
insuredSince: string | null;
/** Date of the latest call report behind the financial figures, YYYY-MM-DD */
reportDate: string | null;
lei: string | null;
/** Federal Reserve RSSD id */
fedRssdId: string | null;
/** The name searched (null for a certificate lookup) */
nameSearch: string | null;
/** Institutions matching the query (1 for a certificate lookup) */
matchCount: number;
/** Further name-search matches, active institutions first */
otherMatches: {
fdicCert: number;
name: string;
active: boolean;
city: string | null;
state: string | null;
}[];
coverage: string;
};If what you asked about does not exist, is private, or a search matches nothing, the call still succeeds: output.found is false, output.data is null and output.reason says why. Such misses are free unless the notes below say misses are billed, in which case a miss costs the price of one call.
Example response
Values are placeholders that follow the output schema (strings as "string", numbers as 0); credits shows what this call would cost at the usual price.
{
"output": {
"found": true,
"data": {
"fdicCert": 0,
"name": "string",
"status": "active",
"active": true,
"endDate": "string",
"address": "string",
"city": "string",
"state": "string",
"stateName": "string",
"zip": "string",
"county": "string",
"website": "string",
"charterClass": "string",
"charterClassCode": "string",
"regulator": "string",
"branchCount": 0,
"totalAssetsUsd": 0,
"totalDepositsUsd": 0,
"netIncomeUsd": 0,
"holdingCompany": "string",
"establishedDate": "string",
"insuredSince": "string",
"reportDate": "string",
"lei": "string",
"fedRssdId": "string",
"nameSearch": "string",
"matchCount": 0,
"otherMatches": [
{
"fdicCert": 0,
"name": "string",
"active": true,
"city": "string",
"state": "string"
}
],
"coverage": "string"
}
},
"provider": "PrimaryAPI",
"credits": 1,
"items": 1,
"requestId": "req_01JBXK6Y2N9V8T4R3Q2P1M0A7Z"
}Pricing and reliability
Calls go only to upstreams that are healthy right now. If an attempt fails, the call is retried automatically inside the same request; a failed attempt costs nothing, and a call never costs more than its quote’s maxCredits. Live figures below are measured on real traffic.
Success rate, uptime, latency and call counts are measured live from real traffic over 30 days and show “—” until there is data.
Errors
Errors are JSON { code, error, requestId } and are never charged. The ones to handle for this endpoint:
- invalid_inputThe request failed validation before anything ran.
- unauthorizedNo valid API key or session was presented.
- insufficient_balanceThe balance cannot cover the most this call could cost.
- key_limit_reachedThe key’s own spend limit is used up for the current window.
- trial_cap_reachedAn agent trial key has used its whole trial budget.
- forbiddenThe credential is valid but may not do this.
- not_foundThe thing addressed by the URL does not exist for you.
- idempotency_conflictThe
Idempotency-Keyis already bound to a different request. - rate_limitedToo many requests in the current window.
- all_sources_failedThe call could not be answered, even after automatic retries.
- service_unavailableThis API cannot run in this deployment right now.
- timeoutThe request passed its deadline before it finished.
Notes
Free FDIC BankFind API. Amounts are converted from FDIC thousands to dollars. Credit unions are not covered.
Generated from the PrimaryAPI catalog. Machine-readable contract: GET https://api.primaryapi.com/v1/apis/bank.lookup.