# IFSC Code Lookup API: Bulk Bank Branch Details India (`jayraj0975/ifsc-bulk-lookup`) Actor

Look up many Indian bank IFSC codes at once: bank, branch, address, MICR, city, state. Built on public bank-code data. Pay per result.

- **URL**: https://apify.com/jayraj0975/ifsc-bulk-lookup.md
- **Developed by:** [Jay Gaikwad](https://apify.com/jayraj0975) (community)
- **Categories:** Business, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## IFSC Code Bulk Lookup and Validator (India Banks)

Given a list of Indian IFSC codes, this Actor validates each code's format, looks it up against a public IFSC directory, and returns structured bank branch details. Invalid or unknown codes return `valid: false` with a reason (`invalid_format`, `unknown_code`, or `upstream_error`). Malformed single inputs are reported per-row rather than aborting the whole run.

### What it does

- Accepts up to **500** IFSC codes per run (case-insensitive; duplicates removed).
- Validates each code against `^[A-Z]{4}0[A-Z0-9]{6}$` before making any network call.
- Fetches branch details from the public Razorpay IFSC directory (`https://ifsc.razorpay.com/<IFSC>`), one request roughly every 0.2 seconds (polite rate limit).
- Emits exactly one dataset row per unique input code, with either:
  - full branch details and `valid: true`, or
  - `valid: false` plus a `reason` (`invalid_format`, `unknown_code`, or `upstream_error`) and a human-readable `error` message.
- If the upstream response layout changes, affected codes are reported as `upstream_error` rows with the underlying reason in the `error` field. The Actor never invents data.

Upstream terms: this Actor uses the public `ifsc.razorpay.com` endpoint in good faith at a polite rate; confirm the endpoint's terms of use before high-volume use.

### Input

| Field | Type | Description |
|-------|------|-------------|
| `ifscCodes` | array of strings | **Required.** List of IFSC codes to look up (max 500). Case-insensitive, blanks ignored, duplicates removed. |

Example input:

```json
{
  "ifscCodes": ["HDFC0000001", "SBIN0001234", "not-a-valid-ifsc"]
}
```

### Output sample

Example record (illustrative; values vary):

```json
{
  "ifsc": "HDFC0000001",
  "valid": true,
  "reason": null,
  "error": null,
  "bank": "HDFC Bank",
  "branch": "TULSIANI CHMBRS - NARIMAN PT",
  "address": "101-104 TULSIANI CHAMBERSFREE PRESS JOURNAL MARGNARIMAN POINTMUMBAI MAHARASHTRA 400 021",
  "city": "GREATER MUMBAI",
  "district": "MUMBAI",
  "state": "MAHARASHTRA",
  "micr": "400240003",
  "upi": true,
  "rtgs": true,
  "neft": true,
  "imps": true,
  "swift": "HDFCINBB",
  "scrapedAt": "2026-01-01T00:00:00Z"
}
```

Invalid / unknown code sample — example record (illustrative; values vary):

```json
{
  "ifsc": "BADCODE",
  "valid": false,
  "reason": "invalid_format",
  "error": "IFSC must be 11 characters matching ^[A-Z]{4}0[A-Z0-9]{6}$ ...",
  "bank": null,
  "branch": null,
  "...": null,
  "scrapedAt": "2026-01-01T00:00:00Z"
}
```

### Pricing

**$2 per 1,000 results.** Every row pushed to the dataset is one billed result — including `not_found`, `invalid_format`, `unknown_code`, and `upstream_error` rows. One result is billed per unique IFSC code in the input.

### Limits

- Maximum **500** codes per run.
- Polite client-side rate limit of ~5 requests/second (0.2s spacing between upstream calls).
- Public data only. No logins, no CAPTCHA solving, no personal data is collected or emitted.
- If the upstream service changes response shape, affected codes are reported as `upstream_error` with the underlying reason in the `error` field so you can react quickly.
- Data source terms: the Actor relies on the public `ifsc.razorpay.com` endpoint. The endpoint's terms of use for bulk automated access have not been confirmed — check before scaling or commercial redistribution.

### Disclaimer

This Actor is **unofficial**. It is not affiliated with, endorsed by, or supported by any bank, NPCI, RBI, or Razorpay (the upstream data source). It reads **publicly available** data only. No guarantees are made about accuracy, completeness, or continued availability of the upstream source. Results should be verified against your bank before any financial, legal, or compliance use. This is **not financial advice**.

# Actor input Schema

## `ifscCodes` (type: `array`):

List of IFSC codes to validate and look up (e.g. \['HDFC0000001', 'SBIN0001234']). Maximum 500 codes per run. Case-insensitive; duplicates are removed.

## Actor input object example

```json
{
  "ifscCodes": [
    "SBIN0000300",
    "HDFC0000001"
  ]
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "ifscCodes": [
        "SBIN0000300",
        "HDFC0000001"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jayraj0975/ifsc-bulk-lookup").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "ifscCodes": [
        "SBIN0000300",
        "HDFC0000001",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("jayraj0975/ifsc-bulk-lookup").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "ifscCodes": [
    "SBIN0000300",
    "HDFC0000001"
  ]
}' |
apify call jayraj0975/ifsc-bulk-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jayraj0975/ifsc-bulk-lookup"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/IhBIMDJOBYhc657co/builds/XZA65NQh97efCwqHC/openapi.json
