curl --request POST \
--url https://api.aisa.one/apis/v1/banks-data-fdic-gov/bank-data/summary \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"state": "USA",
"year": 2020
}
'import requests
url = "https://api.aisa.one/apis/v1/banks-data-fdic-gov/bank-data/summary"
payload = {
"state": "USA",
"year": 2020
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({state: 'USA', year: 2020})
};
fetch('https://api.aisa.one/apis/v1/banks-data-fdic-gov/bank-data/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/banks-data-fdic-gov/bank-data/summary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'state' => 'USA',
'year' => 2020
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/banks-data-fdic-gov/bank-data/summary"
payload := strings.NewReader("{\n \"state\": \"USA\",\n \"year\": 2020\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/banks-data-fdic-gov/bank-data/summary")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"state\": \"USA\",\n \"year\": 2020\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/banks-data-fdic-gov/bank-data/summary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"state\": \"USA\",\n \"year\": 2020\n}"
response = http.request(request)
puts response.read_bodySummary
State or national banking totals by year: how many banks a state had, total industry assets or deposits, net income, new charters or failures per year. For one institution use financials.
curl --request POST \
--url https://api.aisa.one/apis/v1/banks-data-fdic-gov/bank-data/summary \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"state": "USA",
"year": 2020
}
'import requests
url = "https://api.aisa.one/apis/v1/banks-data-fdic-gov/bank-data/summary"
payload = {
"state": "USA",
"year": 2020
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({state: 'USA', year: 2020})
};
fetch('https://api.aisa.one/apis/v1/banks-data-fdic-gov/bank-data/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/banks-data-fdic-gov/bank-data/summary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'state' => 'USA',
'year' => 2020
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/banks-data-fdic-gov/bank-data/summary"
payload := strings.NewReader("{\n \"state\": \"USA\",\n \"year\": 2020\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/banks-data-fdic-gov/bank-data/summary")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"state\": \"USA\",\n \"year\": 2020\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/banks-data-fdic-gov/bank-data/summary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"state\": \"USA\",\n \"year\": 2020\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/banks-data-fdic-gov/bank-data/summary
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/banks-data-fdic-gov/bank-data/summary
{
"operationId": "banks-data-fdic-gov.bank-data.summary",
"method": "POST",
"path": "/apis/v1/banks-data-fdic-gov/bank-data/summary",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"state": "USA",
"year": 2020
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"charter_group": {
"description": "CB for commercial banks, SI for savings institutions. Omit for both (two records per state and year).\n\nProvider reference: allowed values [\"CB\", \"SI\"].",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"CB",
"SI"
]
}
},
"cursor": {
"description": "next_cursor from the previous page of the same query (the record offset).",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"fields": {
"description": "Projection: column names to return instead of the default set, e.g. [\"BANKS\", \"ASSET\", \"DEP\", \"NETINC\"]. The identity columns are always added and every record carries `ID`. An unknown name is ignored. The FDIC's column definitions are at https://api.fdic.gov/banks/docs/.",
"items": {
"type": "string"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"filters": {
"description": "Raw BankFind filter, ANDed with the other inputs. Lucene-style: `FIELD:value`, `FIELD:\"two words\"`, `FIELD:(\"A\",\"B\")` for any of several, `FIELD:[low TO high]` for an inclusive range (`*` open), `!(FIELD:value)` to exclude, `AND`/`OR` between terms. Column names are upper case and values match exactly as stored, case included. An unknown column matches nothing (an empty result, not an error); a syntax error is invalid_input.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"from_year": {
"description": "Earliest year to include.\n\nProvider reference: minimum 1934; maximum 2100.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 2100,
"min": 1934
}
},
"page_size": {
"default": 25,
"description": "Records per page.\n\nProvider reference: minimum 1; maximum 1000; default 25.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 1000,
"min": 1
}
},
"sort_by": {
"description": "Columns to sort by, in priority order, e.g. [\"ASSET\"]. Defaults to `YEAR` descending (latest first). Unique tiebreak columns are always appended so offset paging is stable. An unsortable or unknown column is invalid_input.",
"items": {
"type": "string"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"sort_order": {
"description": "Direction for every sort column. Defaults to the direction of the default sort.\n\nProvider reference: allowed values [\"asc\", \"desc\"].",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"asc",
"desc"
]
}
},
"state": {
"description": "State or territory code matched against `STALP`; `USA` for all states and territories, `US` for the 50 states and DC, `OT` for the territories. Pattern: ^[A-Za-z]{2,3}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"to_year": {
"description": "Latest year to include.\n\nProvider reference: minimum 1934; maximum 2100.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 2100,
"min": 1934
}
},
"year": {
"description": "One year. Not combinable with `from_year` / `to_year`.\n\nProvider reference: minimum 1934; maximum 2100.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 2100,
"min": 1934
}
}
},
"type": "object"
}
}
},
"required": false
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
Projection: column names to return instead of the default set, e.g. ["BANKS", "ASSET", "DEP", "NETINC"]. The identity columns are always added and every record carries ID. An unknown name is ignored. The FDIC's column definitions are at https://api.fdic.gov/banks/docs/.
Raw BankFind filter, ANDed with the other inputs. Lucene-style: FIELD:value, FIELD:"two words", FIELD:("A","B") for any of several, FIELD:[low TO high] for an inclusive range (* open), !(FIELD:value) to exclude, AND/OR between terms. Column names are upper case and values match exactly as stored, case included. An unknown column matches nothing (an empty result, not an error); a syntax error is invalid_input.
Response
Annual aggregate financial and structure data for all FDIC-insured institutions from BankFind's summary dataset (Historical Statistics on Banking), by state or territory and year since 1934, split between commercial banks (CB) and savings institutions (SI): number of institutions, offices and branches, new charters, mergers and failures, and the year-end totals of assets, deposits, loans, equity, income and expense (thousands of dollars). STALP USA is all states and territories, US the 50 states and DC, OT the territories. YEAR is a string. Latest year first.
The response contains the tool result directly.
The provider identifies records as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
ID | string | BankFind's record id: the CERT for an institution, CERT_REPDTE for a financials record, YEAR_CERT_BRNUM for a Summary of Deposits branch. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.