BSB API
The BSB API is a comprehensive BSB lookup and BSB checker tool. Validate any 6-digit Australian BSB number and retrieve the associated bank, branch, address, and supported payment systems.
A BSB (Bank-State-Branch) number is a 6-digit code that identifies the bank and branch holding an Australian bank account, usually written as two groups of three digits separated by a hyphen (e.g. 062-000). It is used to route domestic Australian payments via Direct Entry, RTGS, and the New Payments Platform (NPP).
Looking up bank codes in other countries? See our Routing Number API (US), Canada Routing Number API, and Sort Code API (UK).
Available endpoints:
- /v1/bsblookup - Look up an Australian bank branch by BSB number
- /v1/bsbsearch - Search for Australian branches by bank name and location
From 3,018 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 387ms | 408ms | 450ms | 837ms | 1173ms |
Didn't find what you were looking for? Suggest an improvement
/v1/bsblookup GET
https://api.api-ninjas.com/v1/bsblookup
Returns detailed information about an Australian bank branch based on its BSB number.
Parameters
bsbrequiredThe 6-digit Australian BSB number, with or without a hyphen (e.g.
062-000or062000).
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.
bsbThe 6-digit BSB number, hyphenated.
branch_namepremium onlyThe name of the branch.
street_addresspremium onlyThe street address of the branch.
suburbThe suburb of the branch.
stateThe Australian state or territory code (e.g. NSW, VIC, QLD).
postcodeThe 4-digit Australian postcode of the branch.
countryAlways
AU.phone_numberpremium onlyThe customer service phone number of the bank.
direct_entry_supportedpremium onlyWhether the branch supports Direct Entry (DE) payments — the Australian equivalent of ACH.
rtgs_supportedpremium onlyWhether the branch supports RTGS (Real-Time Gross Settlement) wire transfers via RITS.
npp_supportedpremium onlyWhether the branch supports the New Payments Platform (NPP) for instant payments and PayID.
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.
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/bsblookup?bsb=062-000Headers
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/bsblookup?bsb=062-000" \
-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/bsbsearch GETPremium Only
https://api.api-ninjas.com/v1/bsbsearch
Search for Australian bank branches and their BSB numbers by bank name and location. Returns a list of branches matching the search criteria.
At least one of the parameters listed below is required. Each request can only return up to 10 results - use the offset parameter to paginate through results.
Parameters
bank_nameoptionalBank name to search for.
suburboptionalSuburb to search for branches.
stateoptionalAustralian state or territory code (e.g. NSW, VIC, QLD).
postcodeoptional4-digit Australian postcode to search for branches.
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/bsbsearch?bank_name=Commonwealth+BankHeaders
X-Api-KeyLog in or sign up to get your API KeySample Search Response
Frequently Asked Questions
Can I use the BSB API for commercial purposes?
Yes, but you must have a premium subscription. Commercial use of the BSB 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 BSB 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 BSB 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.How do I look up a specific Australian BSB number?
Send a GET request to the /v1/bsblookup endpoint with thebsbparameter set to the 6-digit BSB number, supplied either with a hyphen (062-000) or without (062000). It returns the matching branch'sbank_name,branch_name,street_address,suburb,state, andpostcode.How can I find BSB numbers when I only know the bank and location?
Use the/v1/bsbsearchendpoint (premium only), which accepts any combination of thebank_name,suburb,state, andpostcodeparameters and returns up to 10 matching branches per request; use theoffsetparameter to paginate through additional results. See pricing for premium access.What payment systems does the BSB API report for each branch?
Each response indicates whether the branch supports the three main Australian rails via thedirect_entry_supported(the equivalent of ACH),rtgs_supported(Real-Time Gross Settlement wire transfers via RITS), andnpp_supported(New Payments Platform instant payments and PayID) fields, all of which are premium only.Does the BSB API provide a SWIFT/BIC code for international transfers?
Yes, the response includes aswift_codefield with the bank's SWIFT/BIC code, though it may benullif the bank does not participate in SWIFT; for full SWIFT lookups see our SWIFT Code API.