# BIN Card Checker (`hung.ad4gate/bin-card-checker`) Actor

Actor to check BIN information of payment cards worldwide

- **URL**: https://apify.com/hung.ad4gate/bin-card-checker.md
- **Developed by:** [Hung Dinh](https://apify.com/hung.ad4gate) (community)
- **Categories:** Automation
- **Stats:** 175 total users, 2 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## BIN Card Checker Actor

This Actor helps check payment card information based on the first 6 digits of the card (BIN number) using various API sources.

### Features

- Support multiple BIN lookup APIs:
  - BINList.net (Free)
  - BinTable.com (Requires API Key)
  - BinCheck.io (Free)
  - BinLookup.io (Free)
  - FreeBinChecker.com (Free)
- Detailed card information including:
  - Issuing Bank
  - Card Brand
  - Card Type
  - Card Level
  - Country Name
  - Issuer's Website
  - Card Category
  - Bank Phone
  - Bank City
- Timestamp for each check
- Source tracking
- Error handling and logging

### Input

The Actor accepts the following input parameters:

```json
{
    "bin_numbers": ["411111", "422222"],  // Array of BIN numbers to check
    "api_source": "binlist",              // Selected API source
    "bintable_api_key": "your-api-key"    // Required only for BinTable.com
}
```

#### Input Parameters

- `bin_numbers` (Required): Array of BIN numbers to check (6 or more digits)
- `api_source` (Required): One of the following values:
  - `binlist` - BINList.net (Free)
  - `bintable` - BinTable.com (Requires API Key)
  - `bincheck` - BinCheck.io (Free)
  - `binlookup` - BinLookup.io (Free)
  - `freebinchecker` - FreeBinChecker.com (Free)
- `bintable_api_key` (Optional): API key for BinTable.com, required only if using BinTable.com as the source

### Output

Each piece of information is returned as a separate record in the dataset. Example output:

```json
{
    "bin_number": "411111",
    "info_type": "issuing_bank",
    "value": "VISA"
}
```

#### Available Information Types

- `issuing_bank`: Name of the issuing bank
- `card_brand`: Card brand (e.g., VISA, Mastercard)
- `card_type`: Type of card (e.g., credit, debit)
- `card_level`: Card level (e.g., classic, gold, platinum)
- `country_name`: Country of issuance
- `issuers_website`: Bank's website
- `card_category`: Card category
- `bank_phone`: Bank's phone number
- `bank_city`: Bank's city
- `source`: API source used for the check
- `checked_at`: Timestamp of the check

### Usage

1. Create a new task in Apify Console
2. Select this Actor
3. Configure input:
   - Enter BIN numbers to check
   - Select an API source
   - Provide BinTable.com API key if using BinTable.com
4. Run the Actor
5. Check results in the Dataset tab

### Notes

- Each BIN number must have at least 6 digits
- Some APIs may have rate limits or require authentication
- Not all information may be available for every BIN number
- If an API fails to return data, the Actor will return "Not Found" for all fields
- Results are stored in the default dataset with each piece of information as a separate record

### Error Handling

The Actor includes comprehensive error handling:

- Invalid BIN numbers are skipped
- API errors are logged
- Missing or invalid API keys are handled gracefully
- Network errors are caught and logged

### Technical Details

- Built with Python 3.9
- Uses Apify SDK for Python
- Implements multiple API integrations
- Includes detailed logging
- Handles rate limiting and API errors
- Supports parallel processing of multiple BIN numbers

### Contact & Support

For questions, issues, or suggestions:

- Email: hungad4gate@gmail.com
- Issues: Use the Issues tab in the Actor's page on Apify platform
- Response Time: Usually within 24-48 hours
- Languages: English, Vietnamese

# Actor input Schema

## `bin_numbers` (type: `array`):

List of BIN numbers to check (first 6 digits of the card)

## `api_source` (type: `string`):

Select an API source to use for checking BIN numbers (Note: BinTable.com requires API Key)

## `bintable_api_key` (type: `string`):

API key for BinTable.com (Required only if BinTable.com is selected as a source)

## Actor input object example

```json
{
  "bin_numbers": [
    "411111"
  ],
  "api_source": "binlist",
  "bintable_api_key": ""
}
```

# 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 = {
    "bin_numbers": [
        "411111"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hung.ad4gate/bin-card-checker").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 = { "bin_numbers": ["411111"] }

# Run the Actor and wait for it to finish
run = client.actor("hung.ad4gate/bin-card-checker").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 '{
  "bin_numbers": [
    "411111"
  ]
}' |
apify call hung.ad4gate/bin-card-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hung.ad4gate/bin-card-checker"
        }
    }
}

```

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/yOvscM4q4gcOqqEeM/builds/1ByiAdKeJNDyANbsX/openapi.json
