mlab Crypto API

Threat intelligence for blockchain addresses.

GitHub OpenAPI

Operations 2

GET /api/v1/scan/crypto Look up a blockchain address #
POST /api/v1/scan/crypto Look up a batch of blockchain addresses #

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/mlab-sh:mlab-sh-crypto-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

mlab-sh-crypto-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: mlab.sh Crypto API
  version: 1.0.0
  description: 'The **mlab.sh** REST API lets you launch domain security scans, look up IP, crypto, hash, URL, email, phone and MAC intelligence, extract IOCs from raw text, analyze files and scripts, triage indicator lists, run RedKit audits, schedule scans, work on cases and inspect SSL certificates programmatically.


    All endpoints are authenticated with an API key sent in the `Authorization` header. Generate a key from **Organization → Settings → API keys** on mlab.sh. A key belongs to the organization and carries permissions chosen when it is created (`scan.lookup`, `scan.domain`, `scan.file`, `scan.batch`, `redkit`, `watchdog.read`, `watchdog.write`, `cases.read`, `cases.write`, `tags.read`, `tags.write`, `webhooks.manage`, or full access). A call outside the key''s permissions returns **403** naming the missing permission; organization and account settings are never reachable with a key. `webhooks.manage` is the one exception and is **never part of full access**: it must be ticked by name (a full-access key can hold it too). It lets a key register signed webhook endpoints and list or delete only the ones it registered itself.


    **Working through an AI agent?** Prefer the Model Context Protocol server at `https://mlab.sh/mcp` (Streamable HTTP, OAuth 2.0 or an `mcp_` token). It exposes 48 tools covering most of what is below plus CVE search, threat-actor attribution, SBOM scanning, cases and workspace memory, cluster and Proxmox inspection and offline indicator lookups that consume no scan quota, so it is a wider surface than this REST API rather than a wrapper over it. See https://doc.mlab.sh/docs/mlab.sh/integrations/mcp and https://mlab.sh/llms.txt.


    **Permissions.** Each operation lists the API key permission it needs (`x-api-key-permission`). Keys created before 2026-10-01 were migrated to full access.


    **Expiry.** A key is created with a lifetime (90 days by default; 30, 180, 365 days or never). An expired key is answered **401**, like an unknown one. The expiry date shows in Organization → Settings → API keys.


    **Quota headers.** Every call that spends scan quota answers with `X-RateLimit-Limit` (the plan''s limit for that scan type), `X-RateLimit-Remaining` (what is left after this call), `X-RateLimit-Resource` (the scan type) and `X-RateLimit-Window` (86400: quotas count a rolling 24 hours, so there is no fixed reset time). Unlimited plans send none.'
  contact:
    name: mlab.sh support
    email: contact@cyberdream.io
    url: https://mlab.sh
  license:
    name: Proprietary
  x-source-of-truth: html/openapi.json in the mlab.sh app repository, served at https://mlab.sh/openapi.json. The docs repository generates openapi.yaml from it with scripts/sync-openapi.mjs.
servers:
- url: https://mlab.sh
  description: Production
security:
- ApiKeyAuth: []
tags:
- name: Crypto
  description: Threat intelligence for blockchain addresses.
paths:
  /api/v1/scan/crypto:
    get:
      tags:
      - Crypto
      summary: Look up a blockchain address
      operationId: lookupCrypto
      description: 'Labels, sanctions status, risk scoring and address type for an address on Bitcoin, any of 13 EVM chains, Tron, Solana, TON or Dogecoin.


        The address family is identified by decoding the address, not by pattern matching, and its checksum is verified on the way: `address_info.checksum` of `invalid` means the address is malformed, which is almost always a typo.


        **Chain selection.** All 13 EVM chains share one address format, so for an EVM address the chain cannot be derived from the address. `chain_source` says where the chain came from: `detected` (read out of the address), `explicit` (you passed it) or `default` (nothing could decide, so ETH was assumed). When `chain_ambiguous` is true, pass `chain` yourself: upstream labels are filtered by chain, so querying the wrong one returns an empty-looking result rather than an error.


        **API key permission:** `scan.lookup`.'
      parameters:
      - name: address
        in: query
        required: true
        description: The blockchain address to look up.
        schema:
          type: string
          example: '0x722122df12d4e14e13ac3b6895a86e84145b6967'
      - name: chain
        in: query
        required: false
        description: 'Chain ID. Auto-detected for EVM (`0x…`), BTC (`1…/3…/bc1…`) and TRX (`T…`) addresses.

          '
        schema:
          type: string
          enum:
          - ETH
          - BSC
          - POLYGON
          - ARBITRUM
          - OPTIMISM
          - BASE
          - AVAX
          - BTC
          - TRX
          - SOL
          - TON
          - DOGE
          example: ETH
      responses:
        '200':
          description: Crypto address intelligence.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CryptoAddress'
              example:
                address: '0x722122df12d4e14e13ac3b6895a86e84145b6967'
                chain: ETH
                chain_source: default
                chain_ambiguous: true
                chain_candidates:
                - ETH
                - BSC
                - POLYGON
                - ARBITRUM
                - OPTIMISM
                - BASE
                - AVAX
                - BLAST
                - FLARE
                - LINEA
                - MANTA
                - MANTLE
                - SONIC
                address_info:
                  family: evm
                  kind: account
                  checksum: absent
                  testnet: false
                intel:
                  type: contract
                  categories:
                  - contract
                  - mixer
                  labels:
                  - name: 'Tornado Cash: Proxy'
                    source: community
                  sanctions:
                    is_sanctioned: false
                  risk_score: 80
                  risk_level: critical
        '401':
          $ref: '#/components/responses/Unauthorized'
        '502':
          description: 'The crypto intelligence upstream could not be reached. Not a verdict: retry.'
        '403':
          $ref: '#/components/responses/Forbidden'
      x-api-key-permission: scan.lookup
    post:
      tags:
      - Crypto
      summary: Look up a batch of blockchain addresses
      operationId: lookupCryptoBulk
      description: 'The same lookup as the GET route, batched: up to 100 addresses in one request. The motivating case is a list pulled out of a ransom note, a dump or a report.


        `chain` is optional and applies to every address in the batch. It is worth passing for a list of EVM addresses, which are otherwise all defaulted to Ethereum.


        The upstream has no batch endpoint, so each address is its own request and each is metered separately. Requires an authenticated caller.


        **API key permission:** `scan.lookup`.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - addresses
              properties:
                addresses:
                  type: array
                  maxItems: 100
                  items:
                    type: string
                  description: Blockchain addresses. Duplicates and blank entries are dropped.
                chain:
                  type: string
                  example: BSC
                  description: Applied to every address in the batch. Omit to derive it per address.
      responses:
        '200':
          description: Results in request order, plus what could not be done.
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: integer
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/CryptoAddress'
                    description: 'An entry whose upstream call failed carries `error: upstream_unavailable` instead of a verdict.'
                  invalid:
                    type: array
                    items:
                      type: object
                    description: Entries that could not be read as an address at all.
                  deferred:
                    type: array
                    items:
                      type: object
                    description: 'Entries the rolling 24-hour quota stopped us reaching. Not errors: not done.'
        '401':
          description: Batch lookups require an authenticated caller.
        '403':
          $ref: '#/components/responses/Forbidden'
      x-api-key-permission: scan.lookup
components:
  responses:
    Unauthorized:
      description: Invalid or missing API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            status: error
            message: Invalid or missing API key.
    Forbidden:
      description: The API key lacks the permission this endpoint needs, or the endpoint is not open to API keys (organization and account settings never are).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: This API key does not have the 'cases.write' permission (Write cases). An owner or admin can add it in the organization settings.
  schemas:
    Error:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: Description of what went wrong.
    CryptoAddress:
      type: object
      properties:
        address:
          type: string
        chain:
          type: string
          example: BTC
        chain_source:
          type: string
          enum:
          - detected
          - explicit
          - default
          description: Only `detected` is a fact about the address. `default` means one was assumed.
        chain_ambiguous:
          type: boolean
          description: True when the family is known but the chain is not derivable, and you did not name one.
        chain_candidates:
          type: array
          items:
            type: string
          description: Every chain this address could belong to. One entry unless it is EVM.
        address_info:
          type: object
          properties:
            family:
              type: string
              enum:
              - evm
              - btc
              - doge
              - trx
              - sol
              - ton
              nullable: true
            kind:
              type: string
              enum:
              - p2pkh
              - p2sh
              - segwit
              - taproot
              - account
            checksum:
              type: string
              enum:
              - valid
              - invalid
              - absent
              - unverifiable
              description: '`absent` means the format carries none (Solana, lowercase EVM). `unverifiable` means EIP-55, which needs keccak256. Neither is a pass.'
            testnet:
              type: boolean
        note:
          type: string
          nullable: true
          description: Present only when the chain was assumed, explaining what that costs.
        intel:
          type: object
          description: 'The crypto-intel body, passed through untouched: type, categories, labels, sanctions, risk_score, risk_level, checked_at.'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Your API key, prefixed with `token `. Example: `Authorization: token mlab_your_api_key_here`. Each key only reaches the endpoints its permissions allow.

        '