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 this API endpoint with all available parameters in our API playground
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 this API endpoint with all available parameters in our API playground
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?
How do I get an API key and start using the Routing Number API?
What happens if I exceed my quota for the month?
What happens if a request to the Routing Number API fails?
What is the difference between the two Routing Number API endpoints?
How do I search for banks by city or state instead of a routing number?
What information does the Routing Number API return for each bank?
Does this API cover banks outside the United States?