A routing number alone does not tell your application which financial institution it represents, whether an ACH record is active, or where to find its contact details. By the end of this guide, you can call the Routing Number Bank Lookup API, read its bank information response in Python, and choose between its two lookup endpoints.
What the API returns
The Routing Number Bank Lookup API looks up financial institution details by routing number. Depending on the endpoint, the response can include the institution’s name, address, phone number, routing number, and information about the record’s status or revision.
This is useful when building a payment onboarding form, an internal operations dashboard, or a bank-details review step. For example, a form can look up an entered routing number and show the institution name for review before a user continues.
The two endpoints expose different response fields. Get Bank Information accepts a routing number and payment type and returns fields including active and lastUpdated. Bank Data accepts a routing number and returns a validation result alongside bank and contact details.
Getting started on Zyla API Hub
Open the Routing Number Bank Lookup API listing on Zyla API Hub, create a free account if you do not already have one, and click Subscribe or Start Free Trial when available. Get your API key from the Hub and use it as a bearer token in requests.
The first API offers a 7-day trial or 50 requests. Access uses a subscription and quota rather than pay-per-call billing; check the API page for current access options and pricing.
Zyla API Hub provides one account and API key across its marketplace. Keep the key on your server rather than embedding it in a public web page or distributing it with client-side code.
Get bank information for an ACH routing number
Get Bank Information is a GET endpoint. It requires routingnumber, a number, and paymentType, a string. The documented request uses routing number 121000245 and payment type ach.
Replace YOUR_API_KEY with your Zyla API key and run the following request:
curl -s -X GET "https://zylalabs.com/api/331/routing-number-bank-lookup-api/266/get-bank-information?routingnumber=121000245&paymentType=ach" \
-H "Authorization: Bearer YOUR_API_KEY"
The documented response is:
{
"status": "success",
"data": {
"routingNumber": "121000245",
"paymentType": "ach",
"name": "Wells Fargo Bank, Na",
"addressFull": "255 2nd Ave South, Minneapolis, MN 55479",
"street": "255 2nd Ave South",
"city": "Minneapolis",
"state": "MN",
"zip": "55479",
"type": "Main Office",
"phone": "800-245-2426",
"active": true,
"lastUpdated": "2026-07-29"
}
}
Read status before using data. For a review screen, name, addressFull, and phone identify the institution; active and lastUpdated provide context about the returned record. The example’s type identifies it as a main office.
Call the same endpoint from Python
This sample uses Python’s standard library, sends the same query as the curl request, and reads fields from the documented response. Replace YOUR_API_KEY before running it.
import json
from urllib.request import Request, urlopen
url = (
"https://zylalabs.com/api/331/routing-number-bank-lookup-api/"
"266/get-bank-information?routingnumber=121000245&paymentType=ach"
)
request = Request(
url,
headers={"Authorization": "Bearer YOUR_API_KEY"},
method="GET",
)
with urlopen(request) as response:
result = json.load(response)
if result.get("status") != "success":
raise RuntimeError("Bank information lookup did not return success")
bank = result["data"]
print("Routing number:", bank.get("routingNumber"))
print("Payment type:", bank.get("paymentType"))
print("Institution:", bank.get("name"))
print("Address:", bank.get("addressFull"))
print("Phone:", bank.get("phone"))
print("Active:", bank.get("active"))
print("Last updated:", bank.get("lastUpdated"))
The code checks the application-level status before reading the bank record. In a production integration, also handle request failures and unexpected or missing fields rather than assuming every lookup has the successful response shown above.
Validate a routing number with Bank Data
Bank Data is also a GET endpoint. Its required parameter is number, a number. The documented request uses 304082876:
https://zylalabs.com/api/331/routing-number-bank-lookup-api/1353/bank-data?number=304082876
Send the same Authorization: Bearer YOUR_API_KEY header used in the first request. Bank Data validates the supplied routing number and returns bank, address, and contact information. Its documented response is:
{"status":200,"success":true,"message":"Routing Bank 304082876 is valid","data":{"routing_number":"304082876","date_of_revision":"050712","new_routing_number":null,"bank":"CENTRIS FEDERAL CREDIT UNION","address":"11825 Q STREET","city":"OMAHA","state":"NE","zip":"68137","phone":"(402) 758-6536"}}
This response uses success and message for the lookup result. Inside data, use bank for the institution name and routing_number for the returned number. The new_routing_number value is null in this example, so code reading it must allow a null value.
The same Bank Data response, formatted for inspecting the individual fields, is:
{
"status": 200,
"success": true,
"message": "Routing Bank 304082876 is valid",
"data": {
"routing_number": "304082876",
"date_of_revision": "050712",
"new_routing_number": null,
"bank": "CENTRIS FEDERAL CREDIT UNION",
"address": "11825 Q STREET",
"city": "OMAHA",
"state": "NE",
"zip": "68137",
"phone": "(402) 758-6536"
}
}
Do not parse both endpoints with the same field names: Get Bank Information returns routingNumber and name, while Bank Data returns routing_number and bank. Bank Data’s example also represents status as a number rather than the success string used by Get Bank Information.
Integration choices for payment workflows
Pick the response your workflow needs
Use Get Bank Information when the workflow needs the returned payment type, active status, or last-update date. For an ACH onboarding screen, display the institution name and address so the user can review the lookup result alongside the routing number they entered.
Use Bank Data when the workflow needs the endpoint’s routing-number validation result and bank contact details. Treat the returned success and message as belonging to that lookup; do not substitute Get Bank Information’s active field for them.
Preserve the returned values
Although the request parameters are documented as numbers, both examples return routing numbers as strings. Preserve the response value as a string when displaying or storing it, and avoid converting it merely for presentation.
The endpoints also return different date fields: lastUpdated in Get Bank Information and date_of_revision in Bank Data. Keep those fields distinct in your application. The examples do not establish a time or timezone, so do not present either value as a timestamp with an assumed timezone.
If you cache lookup results, decide how long your workflow can tolerate an older bank record and retain the lookup time separately in your application. A cached active value describes the response you saved, not a fresh check of the institution.
Plan for incomplete or unsuccessful lookups
Do not render a bank name as confirmed until your integration has received and checked a successful lookup response. If the request fails or a field needed by your screen is absent, let the user review or retry rather than silently displaying a previous result for a different routing number.
Keep the original endpoint response available to your server-side processing, and map the fields you need into your own application model. That separation makes it easier to support both response shapes without confusing addressFull with Bank Data’s separate address, city, state, and ZIP fields.
Call the API from an AI agent
Zyla APIs can also be called through the MCP endpoint. Configure an MCP-compatible client, such as Claude Code, Cursor, or Windsurf, with https://mcp.zylalabs.com/mcp?apikey=YOUR_API_KEY, replacing the placeholder with your API key.
An agent can use the bank lookup as part of a finance workflow, such as retrieving institution details for a routing number supplied by an operator. Review the returned institution and status fields before using them in a payment decision, just as you would in a direct integration.
FAQ
Which endpoint checks whether a routing number is valid?
Bank Data validates the supplied routing number. Its documented example returns success, a validation message, and bank details.
Can I look up an ACH routing number?
Yes. Get Bank Information takes the required routingnumber and paymentType parameters. The documented example uses ach as the payment type.
Does the response include an active status?
Get Bank Information includes an active field in its documented response. Bank Data’s documented response instead includes a validation result and a new_routing_number field.
How do I authenticate the request?
Send your Zyla API key in the Authorization header as Bearer YOUR_API_KEY. Replace the placeholder with your own key and keep it out of public client-side code.
Ready to test the lookup? Start 7-day trial on Routing Number Bank Lookup API, create a free account if needed, and get an API key from Zyla API Hub. Check the listing for current access options and pricing.