# Bank Codes — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Find SWIFT/BIC codes for international banks and Indian IFSC/MICR codes by searching across countries, banks, and branches. Quickly locate the exact bank codes you need for wire transfers and financial transactions worldwide.

**Category:** Finance & Markets | **Website:** [bank-codes.com/](https://bank-codes.com/) | **Docs:** [parse.bot/marketplace/468132f8-0bfc-4aa3-b59c-929eddfb7db1/bank-codes-com-api](https://parse.bot/marketplace/468132f8-0bfc-4aa3-b59c-929eddfb7db1/bank-codes-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-bank-codes-com-api-468132f8/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_bank_branches

Get all branches for a specific bank in a country. Returns SWIFT codes, branch names, cities, and countries for each branch. For multi-branch banks, the bank_slug from get_banks_by_country already includes the country prefix (e.g. 'united-states-usa/branches-of-ally-financial-inc').

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `bank_slug` | string | Yes | Bank slug from get_banks_by_country. For multi-branch banks includes path prefix (e.g. 'united-states-usa/branches-of-ally-financial-inc') |
| `country_slug` | string | Yes | Country slug (e.g. 'united-states-usa'). Used to construct URL when bank_slug doesn't include country prefix. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bank-codes-com-api-468132f8/get_bank_branches \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"bank_slug":"<string>","country_slug":"<string>"}'
```

### get_bank_ifsc_by_state

Get branches of an Indian bank, optionally filtered by state. Without state_slug, returns the list of states where the bank has branches. With state_slug, returns branches in that state with IFSC codes.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `bank_slug` | string | Yes | Bank slug from get_ifsc_banks_list (e.g. 'state-bank-of-india', 'hdfc-bank-ltd') |
| `state_slug` | string | No | State slug to filter branches (e.g. 'goa', 'maharashtra'). Omitting returns list of states where the bank operates. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bank-codes-com-api-468132f8/get_bank_ifsc_by_state \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"bank_slug":"<string>","state_slug":"<string>"}'
```

### get_banks_by_country

Get banks and institutions with SWIFT codes for a specific country. Returns bank names, slugs, branch counts, and whether the bank has multiple branches.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `country_slug` | string | Yes | Country slug from list_countries (e.g. 'india', 'united-states-usa', 'germany') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bank-codes-com-api-468132f8/get_banks_by_country \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country_slug":"<string>"}'
```

### get_ifsc_banks_list

List all Indian banks that have IFSC codes available. Returns bank names and slugs for use with get_bank_ifsc_by_state.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bank-codes-com-api-468132f8/get_ifsc_banks_list \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_ifsc_code_details

Get full details for a specific IFSC code including bank name, branch, address, city, district, state, and MICR code.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | URL slug from search_ifsc_codes results (url_slug field, e.g. 'hdfc-bank-ltd-ifsc-code-HDFC0001621') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bank-codes-com-api-468132f8/get_ifsc_code_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### get_swift_code_details

Get full details for a specific SWIFT/BIC code including institution name, address, city, country, and BIC code analysis breakdown (institution code, country code, location code, branch code).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | URL slug from search_swift_codes results (url_slug field, e.g. 'jpmorgan-chase-bank-n-a-swift-code-CHASUS33XXX-bic-code') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bank-codes-com-api-468132f8/get_swift_code_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### list_countries

List all countries that have SWIFT/BIC codes available. Returns country names and their URL slugs for use with get_banks_by_country.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bank-codes-com-api-468132f8/list_countries \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_ifsc_codes

Search for Indian IFSC codes by bank name. Returns matching bank branches with their IFSC codes, states, districts, and cities.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search query - bank name (e.g. 'HDFC', 'state bank') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bank-codes-com-api-468132f8/search_ifsc_codes \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

### search_swift_codes

Search for SWIFT/BIC codes by bank or institution name. Returns matching institutions with their SWIFT codes, branch names, cities, and countries. Large banks (e.g. HSBC, JPMorgan) may return hundreds of results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search query - bank or institution name (e.g. 'barclays', 'HSBC') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bank-codes-com-api-468132f8/search_swift_codes \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
