Rainforest BIN Lookups API

Resources for BIN lookup functions.

Operations 1

POST /v1/bin_lookup Create BIN lookup #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/rainforest-bin-lookups-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

rainforest-bin-lookups-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Payments BIN Lookups API
  version: 1.0.0
  description: This resource is used for payment actions
  contact:
    name: Rainforest
    email: support@rainforestpay.com
    url: https://rainforestpay.com
servers:
- url: https://api.sandbox.rainforestpay.com
  description: Sandbox server
- url: https://api.rainforestpay.com
  description: Production server
security:
- BearerAuth: []
tags:
- name: BIN Lookups
  description: Resources for BIN lookup functions.
paths:
  /v1/bin_lookup:
    post:
      operationId: create_bin_lookup
      summary: Create BIN lookup
      description: 'Retrieve information from the card''s BIN, such as the card brand, card type, country, and other details.


        This endpoint requires Rainforest approval. Platforms that meet all requirements and are approved by Rainforest can send the full card numbers to Rainforest via a server-to-serve direct API integration.'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                billable_merchant_id:
                  description: 'The unique merchant identifier for the billable merchant.


                    Prefix is "mid" in production and "sbx_mid" in sandbox.'
                  $ref: '#/paths/~1v1~1payment_methods/post/responses/200/content/application~1json/schema/properties/data/properties/billable_merchant_id'
                card_number:
                  description: The card number, formatted with no spaces (e.g 0000000000000000).
                  type: string
                  example: '4111111111111111'
              required:
              - billable_merchant_id
              - card_number
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  status:
                    $ref: '#/paths/~1v1~1payins/get/responses/200/content/application~1json/schema/properties/status'
                  data:
                    description: The BIN lookup details.
                    type: object
                    properties:
                      bin_lookup_id:
                        description: "The unique BIN lookup identifier. \n\nPrefix is \"bin\" in production and \"sbx_bin\" in sandbox."
                        type: string
                        example: bin_2DrDKk5NIMbpuNGqm109SkpGDHh
                      billable_merchant_id:
                        description: 'The unique merchant identifier for the billable merchant.


                          Prefix is "mid" in production and "sbx_mid" in sandbox.'
                        $ref: '#/paths/~1v1~1payment_methods/post/responses/200/content/application~1json/schema/properties/data/properties/billable_merchant_id'
                      bin:
                        description: The first 8 digits of the card number.
                        type: string
                      brand:
                        description: Card brand.
                        type: string
                        example: MASTERCARD
                        enum:
                        - VISA
                        - MASTERCARD
                        - DISCOVER
                        - AMERICAN_EXPRESS
                        - OTHER
                      type:
                        description: Card type.
                        type: string
                        example: CREDIT
                        enum:
                        - CREDIT
                        - DEBIT
                        - PREPAID
                      last_4:
                        description: The last 4 digits of the card number.
                        type: string
                      country:
                        $ref: '#/paths/~1v1~1payins/post/requestBody/content/application~1json/schema/properties/billing_contact/properties/country'
                      is_business:
                        description: Is a business card
                        type: boolean
                      is_healthcare:
                        description: Is a healthcare card
                        type: boolean
                  errors:
                    $ref: '#/paths/~1v1~1payins/get/responses/200/content/application~1json/schema/properties/errors'
        '400':
          $ref: '#/paths/~1v1~1payins/get/responses/400'
        '401':
          $ref: '#/paths/~1v1~1payins/get/responses/401'
        '403':
          $ref: '#/paths/~1v1~1payins/get/responses/403'
        5XX:
          $ref: '#/paths/~1v1~1payins/get/responses/5XX'
      tags:
      - BIN Lookups
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: APIKey