Routing Number API
The Routing Number API allows you to look up bank information using routing numbers. Our database contains over 28,000 routing numbers from banks across the United States.
Looking up bank codes in other countries? See our Canada Routing Number API, Sort Code API (UK), and BSB API (Australia).
Available endpoints:
- /v1/routingnumber - Get detailed information about a bank based on its routing number
- /v1/routingnumbersearch - Search for banks and their routing numbers based on location
From 3,358 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 369ms | 405ms | 427ms | 839ms | 1183ms |
Similar APIs
Didn't find what you were looking for? Suggest an improvement
/v1/routingnumber GET
https://api.api-ninjas.com/v1/routingnumber
Returns detailed information about a bank based on its routing number.
Parameters
routing_numberrequiredThe 9-digit routing number of the bank to look up.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON array of objects, each containing the following fields, or an error if the request is unsuccessful.
bank_namepremium onlyThe name of the bank.
routing_numberThe 9-digit routing number of the bank.
street_addresspremium onlyThe street address of the bank.
cityThe city of the bank.
stateThe state of the bank.
zip_codeThe ZIP code of the bank.
countryThe country of the bank.
countyThe county of the bank.
timezoneThe timezone of the bank.
latitudeThe latitude of the bank.
longitudeThe longitude of the bank.
phone_numberpremium onlyThe phone number of the bank.
swift_codepremium onlyThe SWIFT/BIC code of the bank, useful for international wire transfers. May be
nullif the bank does not participate in SWIFT. See our SWIFT Code API for full SWIFT lookups.ach_supportedpremium onlyWhether the bank processes FedACH (Automated Clearing House) transactions for this routing number.
fedwire_supportedpremium onlyWhether the bank supports Fedwire (wire transfer) for this routing number.
checksum_validWhether the routing number passes ABA routing number checksum validation. This uses the standard Mod 10 checksum algorithm to verify the routing number is structurally valid.
Sample Request Live Demo!
Try our APIs in the API playground
Sign up for a free API key to get started — no credit card required.
https://api.api-ninjas.com/v1/routingnumber?routing_number=111000012Headers
X-Api-KeyLog in or sign up to get your API KeySample Response
Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/routingnumber?routing_number=021000021" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.
/v1/routingnumbersearch GETPremium Only
https://api.api-ninjas.com/v1/routingnumbersearch
Search for banks and their routing numbers based on location. Returns a list of banks matching the search criteria.
At least one of the parameters listed below is required. Results are ordered by routing number in ascending order. Each request can only return up to 10 results - use the offset parameter to paginate through results.
Bank name matching is not case-sensitive and ignores punctuation, spacing, and a leading "The" (e.g. Bank of America N.A. and BANK OF AMERICA, NA return the same results).
Parameters
bank_nameoptionalBank name to search for.
cityoptionalCity name to search for banks.
stateoptionalTwo-letter state code (e.g. CA, NY).
zip_codeoptional5-digit ZIP code to search for banks.
swift_codeoptional Business and Professional only8 or 11 character SWIFT/BIC code (e.g.
BOFAUS3N). Returns the US routing numbers of the bank identified by the code. Matching is done at the institution level (first 8 characters). See our SWIFT Code API for the reverse lookup.offsetoptional annual subscriptions onlyNumber of results to offset for pagination.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON array of objects, each containing the same fields as the previous response , or an error if the request is unsuccessful.
Sample Search Request Live Demo!
Try our APIs in the API playground
Sign up for a free API key to get started — no credit card required.
https://api.api-ninjas.com/v1/routingnumbersearch?bank_name=Bank+of+AmericaHeaders
X-Api-KeyLog in or sign up to get your API KeySample Search Response
Frequently Asked Questions
Can I use the Routing Number API for commercial purposes?
Yes, but you must have a premium subscription. Commercial use of the Routing Number API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.How do I get an API key and start using the Routing Number API?
Sign up for a free account to instantly get your API key, then pass it in theX-Api-Keyheader on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.What happens if I exceed my quota for the month?
Your API requests will simply be denied once you hit your monthly quota — you will never be charged more than the plan you signed up for. To increase your quota, you can upgrade your plan any time on our pricing page.What happens if a request to the Routing Number API fails?
The API responds with a standard HTTP status code and a JSON error message describing the problem. See our error codes reference for the full list of codes and how to resolve each one, or contact support if you need help.What is the difference between the two Routing Number API endpoints?
The Routing Number API offers two GET endpoints:/v1/routingnumberlooks up a single bank using a 9-digitrouting_number, while/v1/routingnumbersearch(premium only) finds banks by location using parameters likebank_name,city,state, andzip_code. The search endpoint returns up to 10 results per request, and you can paginate with theoffsetparameter on annual subscriptions.How do I search for banks by city or state instead of a routing number?
Use the premium/v1/routingnumbersearchendpoint and pass at least one ofbank_name,city,state(a two-letter code such as CA or NY), orzip_code(5 digits). Each call returns up to 10 matching banks; see pricing for access to this endpoint and theoffsetpagination parameter.What information does the Routing Number API return for each bank?
Each result includes fields such asrouting_number,city,state,zip_code,county,timezone,latitude,longitude, andchecksum_valid(verified with the standard ABA Mod 10 algorithm), plus premium fields likebank_name,street_address,phone_number,swift_code,ach_supported, andfedwire_supported. Theswift_codemay benullif the bank does not participate in SWIFT, so use our SWIFT Code API for full SWIFT lookups.Does this API cover banks outside the United States?
No, the Routing Number API covers over 28,000 US bank routing numbers only. For other countries, see our Canada Routing Number API, Sort Code API (UK), BSB API (Australia), or IBAN API.