Skip to content
Developer platform

Build on Africa's stablecoin market.

Every AfriFlux API uses one key and one credit balance. Start with 200 free credits when you sign up.

QuickstartPricingOpenAPI spec

Quickstart

  1. 01
    Create an account

    You start with 200 free credits, usable on every API.

  2. 02
    Copy a test key

    Create an af_test_ key in the dashboard. Test calls are free and return sample data.

  3. 03
    Make your first call

    Run the request below, or use the playground in any API's section.

curl "https://www.afriflux.xyz/v1/labels/base/0x0000000000000000000000000000000000000001" \
  -H "Authorization: Bearer af_test_YOUR_KEY"
Wallet Labels APISee rates

Who is this wallet associated with?

Find out which African venue an address belongs to, and what the venue uses it for. You pay only when we know the answer.

What it covers

28 African companies across 11 chains: 947,885 labelled addresses. An address outside this coverage comes back unmatched, and an unmatched lookup is free. Call GET /v1/labels/coverage with any key for the full list of entities, their chains and the roles we can return. It costs nothing.

arbitrumbasebscceloethereumliskoptimismpolygonsolanatontron
RoleMeaningTier
depositA deposit address the venue assigned to one customer.standard
hot_walletA wallet the venue collects funds into or pays customers from.operational
treasuryThe venue's own treasury.operational
settlementA wallet the venue uses to settle with partners, desks or exchanges.operational
gas_funderA wallet that funds network fees for the venue's other wallets.operational
fee_walletA wallet that collects the venue's fees.operational
  • You pay only for answers: unmatched addresses are free, and matches cost more for a venue's own operational wallets than for customer deposit addresses. Answers you have paid for stay free until their valid_until.
  • Each new address in a request needs 10 credits available before the lookup runs, and you are only charged for addresses we match. If your balance is short, the error says how many addresses you can send.

Labels are analytical signals, not proof of legal ownership, sanctions or criminal conduct.

GET/v1/labels/{chain}/{address}

Look up one wallet label

Returns who an address belongs to and what it is used for. Unmatched addresses are free; matches are charged by tier. Your balance must cover an operational match before the lookup runs.

Cost: Free if unmatched · 1 credit per matched deposit label · 10 credits per matched operational label

Example response
{
  "address": "0x0000000000000000000000000000000000000001",
  "chain": "base",
  "matched": true,
  "entity": "AfriFlux Sandbox Exchange",
  "category": "exchanges",
  "role": "hot_wallet",
  "tier": "operational",
  "confidence": "high",
  "first_seen": "2024-03-01",
  "last_seen": "2026-01-01",
  "evidence": "operational_trace",
  "valid_until": "2026-10-19T12:00:00.000Z",
  "attribution_id": "attr_01J...",
  "license_fingerprint": "afl_9dc8..."
}
POST/v1/labels/batch

Look up a batch of wallet labels

Deduplicates identical chain/address pairs, then charges only for matches. meta.billed shows how many standard and operational matches you paid for.

Cost: Free if unmatched · 1 credit per matched deposit label · 10 credits per matched operational label

Request body
{
  "wallets": [
    {
      "chain": "base",
      "address": "0x0000000000000000000000000000000000000001"
    },
    {
      "chain": "bsc",
      "address": "0x0000000000000000000000000000000000000003"
    },
    {
      "chain": "base",
      "address": "0x00000000000000000000000000000000000000ff"
    }
  ]
}
Example response
{
  "data": [
    {
      "address": "0x0000000000000000000000000000000000000001",
      "chain": "base",
      "matched": true,
      "entity": "AfriFlux Sandbox Exchange",
      "category": "exchanges",
      "role": "hot_wallet",
      "tier": "operational",
      "confidence": "high",
      "first_seen": "2024-03-01",
      "last_seen": "2026-01-01",
      "evidence": "operational_trace",
      "valid_until": "2026-10-19T12:00:00.000Z",
      "attribution_id": "attr_01J...",
      "license_fingerprint": "afl_9dc8..."
    },
    {
      "address": "0x0000000000000000000000000000000000000003",
      "chain": "bsc",
      "matched": true,
      "entity": "AfriFlux Sandbox Exchange",
      "category": "exchanges",
      "role": "deposit",
      "tier": "standard",
      "confidence": "high",
      "first_seen": "2025-02-20",
      "last_seen": "2026-01-01",
      "evidence": "deposit_activity",
      "valid_until": "2026-10-19T12:00:00.000Z",
      "attribution_id": "attr_01J...",
      "license_fingerprint": "afl_9dc8..."
    },
    {
      "address": "0x00000000000000000000000000000000000000ff",
      "chain": "base",
      "matched": false,
      "entity": null,
      "category": null,
      "role": null,
      "tier": null,
      "confidence": null,
      "first_seen": null,
      "last_seen": null,
      "evidence": null,
      "valid_until": "2026-10-13T12:00:00.000Z",
      "attribution_id": "attr_01J...",
      "license_fingerprint": "afl_41ab..."
    }
  ],
  "meta": {
    "unique_wallets": 3,
    "matched": 2,
    "billed": {
      "standard": 1,
      "operational": 1
    },
    "credits_used": 11
  }
}
GET/v1/labels/coverage

See what we cover

Lists every entity we label, its chains and the public roles we can return for it. Free. Use it to judge coverage before you spend credits.

Example response
{
  "as_of": "2026-10-11T04:00:00.000Z",
  "totals": {
    "entities": 26,
    "chains": 11,
    "labels": 874464
  },
  "chains": [
    "arbitrum",
    "base",
    "bsc",
    "celo",
    "ethereum",
    "lisk",
    "optimism",
    "polygon",
    "solana",
    "ton",
    "tron"
  ],
  "entities": [
    {
      "entity": "Quidax",
      "category": "exchanges",
      "chains": [
        "bsc",
        "ethereum",
        "tron"
      ],
      "roles": [
        "deposit",
        "hot_wallet",
        "settlement"
      ],
      "labels": 120000,
      "last_updated": "2026-10-11T04:00:00.000Z"
    }
  ]
}
GET/v1/usage

View account usage

Returns recent billable usage and month-to-date credit consumption. Paginate with limit and cursor; pass format=csv to download.

Example response
{
  "credits_used": 320,
  "requests": 281,
  "period_start": "2026-10-01T00:00:00.000Z",
  "recent": [],
  "next_cursor": null,
  "has_more": false,
  "limit": 50
}
GET/v1/credits

View credit balance and expiry

Returns the unexpired balance and credit-lot expiry schedule.

Example response
{
  "balance": 4680,
  "lots": [
    {
      "remaining": 4680,
      "expires_at": "2027-07-13T00:00:00.000Z"
    }
  ]
}
GET/v1/health

Check API availability

Confirms that the published API product and serving database are available.

Example response
{
  "status": "ok",
  "product": "wallet_labels",
  "version": 1
}

Playground

Run real requests against the sandbox from your browser. Paste an af_test_ key from your dashboard; it stays in this tab and is only sent to the API. Live keys are rejected here.

Sandbox requests are free
Market Data APISee rates

What is happening in the market?

Token and universe time series, snapshots, and DEX-implied reference-rate prints for African stablecoins, served from AfriFlux's daily snapshot pipeline.

GET/v1/market-data/timeseries/{symbol}/{metric}

Query a token or universe time series

Returns aligned period/value points from the daily snapshot pipeline. Use symbol=universe with a bare universe metric (transfer, dex, mints, burns, users) for cross-token series; otherwise metric uses the form dimension:measure where dimension is chain, dex_project, venue, mint_flow, or burn_flow. Ranges are capped per grain (daily 400, weekly 300, monthly 160, quarterly 80 most-recent points) and responses flag truncated separately from partial_last so incomplete final periods are never mistaken for complete ones.

Cost: 2 credits · per request

Example response
{
  "data": {
    "resource": "token_series",
    "symbol": "cNGN",
    "dimension": "chain",
    "measure": "transfer_usd",
    "grain": "daily",
    "entities": [
      "base"
    ],
    "series": {
      "base": [
        {
          "period": "2026-08-21",
          "value": 1842035.55
        },
        {
          "period": "2026-08-22",
          "value": 2104882.1
        }
      ]
    },
    "first_period": "2026-08-21",
    "last_period": "2026-08-22",
    "point_count": 2,
    "truncated": false,
    "partial_last": true
  },
  "meta": {
    "product": "market_data",
    "version": 1,
    "schema_version": 1,
    "as_of": "2026-08-23T04:12:00.000Z",
    "as_of_data_day": "2026-08-22",
    "partial_last": true,
    "attribution_id": "attr_01J8ZK4F2A9DQ7M3X5VBNP6RTS",
    "license_fingerprint": "afl_9dc81b9e5f0a4c2d7e11",
    "dataset_fingerprint": "ds_4f2a91c07be3d618"
  }
}
GET/v1/market-data/tokens/{symbol}/snapshot

Latest snapshot for one token

Curated latest cut for a single token: supply, lifetime flows, holders, transfer and DEX totals, TVL, and corridor count, with as_of provenance. Accepts the manifest slug or symbol (cngn, cNGN_mento, cngn-mento).

Cost: 3 credits · per request

Example response
{
  "data": {
    "slug": "cngn",
    "symbol": "cNGN",
    "name": "cNGN",
    "issuer": "AfriFlux tracked issuer",
    "country": "Nigeria",
    "currency": "NGN",
    "decimals": 18,
    "status": "live",
    "launch_date": null,
    "chains": [
      "base"
    ],
    "supply": {
      "total_circulating": 4512300.42,
      "mint_volume_usd_30d": 312004.15,
      "burn_volume_usd_30d": 288910.02
    },
    "supply_by_chain": [
      {
        "chain": "base",
        "circulating_supply": 4512300.42
      }
    ],
    "lifetime": {
      "transfer_usd": 184220400.5,
      "transfer_native": 184220400.5,
      "dex_usd": 41002118.75,
      "mint_usd": 12402800,
      "burn_usd": 10998200.25,
      "transfer_count": 92441,
      "dex_trade_count": 30112
    },
    "holders": {
      "total_holders": 18204,
      "total_balance_usd": 4501220.14
    },
    "transfers_window": {
      "total_volume_usd": 9812442.31,
      "total_transfer_count": 12902
    },
    "dex": {
      "total_lifetime_volume_usd": 41002118.75,
      "total_lifetime_trades": 30112
    },
    "tvl": {
      "tvl_usd": 812400.5,
      "pool_count": 6,
      "snapshot_day": "2026-08-22"
    },
    "corridor_count": 4
  },
  "meta": {
    "product": "market_data",
    "version": 1,
    "schema_version": 1,
    "as_of": "2026-08-23T04:12:00.000Z",
    "as_of_data_day": "2026-08-22",
    "partial_last": true,
    "attribution_id": "attr_01J8ZK4F2A9DQ7M3X5VBNP6RTS",
    "license_fingerprint": "afl_9dc81b9e5f0a4c2d7e11",
    "dataset_fingerprint": "ds_4f2a91c07be3d618"
  }
}
GET/v1/market-data/universe/snapshot

Latest universe snapshot

Headline KPIs, the token leaderboard, and per-chain totals for the whole tracked stablecoin universe in one call.

Cost: 3 credits · per request

Example response
{
  "data": {
    "headline_kpis": {
      "total_circulating_usd": 21402118.44,
      "total_tokens": 7,
      "total_chains": 6,
      "total_holders": 96120,
      "total_balance_usd": 21100402.9,
      "transfers_30d": 214882,
      "transfer_volume_usd_30d": 61204882.15,
      "dex_trades_30d": 84102,
      "dex_volume_usd_30d": 18402215.6,
      "total_tvl_usd": 3912004.18
    },
    "token_leaderboard": [],
    "chains": []
  },
  "meta": {
    "product": "market_data",
    "version": 1,
    "schema_version": 1,
    "as_of": "2026-08-23T04:12:00.000Z",
    "as_of_data_day": "2026-08-22",
    "partial_last": true,
    "attribution_id": "attr_01J8ZK4F2A9DQ7M3X5VBNP6RTS",
    "license_fingerprint": "afl_9dc81b9e5f0a4c2d7e11",
    "dataset_fingerprint": "ds_4f2a91c07be3d618"
  }
}
GET/v1/market-data/rates/{symbol}/usd

DEX-implied USD reference rate (preview)

Daily volume-weighted implied USD price per token across chains, floored by minimum per-chain daily volume to suppress thin-pool noise. Preview methodology: history depth follows the published DEX window and prints may restate once the canonical reference-rate pipeline ships.

Cost: 2 credits · per request

Example response
{
  "data": {
    "symbol": "cNGN",
    "quote": "usd",
    "preview": true,
    "methodology": {
      "method": "volume_weighted_daily_mean_of_chain_implied_prices",
      "liquidity_floor_usd": 25000,
      "note": "Preview methodology built on DEX-implied prices. A canonical reference-rate pipeline with a published methodology is pending; expect restatements."
    },
    "window": {
      "first_day": "2026-08-21",
      "last_day": "2026-08-22"
    },
    "days": [
      {
        "day": "2026-08-21",
        "implied_price_usd": 0.000651,
        "volume_usd": 412882.4,
        "trade_count": 210,
        "chains": [
          "base"
        ]
      },
      {
        "day": "2026-08-22",
        "implied_price_usd": 0.000649,
        "volume_usd": 388104.9,
        "trade_count": 198,
        "chains": [
          "base"
        ]
      }
    ]
  },
  "meta": {
    "product": "market_data",
    "version": 1,
    "schema_version": 1,
    "as_of": "2026-08-23T04:12:00.000Z",
    "as_of_data_day": "2026-08-22",
    "partial_last": true,
    "attribution_id": "attr_01J8ZK4F2A9DQ7M3X5VBNP6RTS",
    "license_fingerprint": "afl_9dc81b9e5f0a4c2d7e11",
    "dataset_fingerprint": "ds_4f2a91c07be3d618"
  }
}
GET/v1/market-data/health

Check API availability

Confirms that the published API product is available and identifies the serving environment.

Example response
{
  "status": "ok",
  "product": "market_data",
  "version": 1,
  "environment": "live",
  "time": "2026-08-23T04:12:00.000Z"
}

Playground

Run real requests against the sandbox from your browser. Paste an af_test_ key from your dashboard; it stays in this tab and is only sent to the API. Live keys are rejected here.

Sandbox requests are free
Reference Data APISee rates

What assets, venues, chains and markets does AfriFlux track?

The AfriFlux master tables: tokens, venues, corridors, chains, countries, and the section coverage matrix, all keyed by stable slugs and stamped with snapshot provenance. Unmetered by design; every other AfriFlux API joins onto these identifiers.

GET/v1/reference/status

Reference catalog status

Entity counts, coverage-matrix symbols, and the as_of provenance stamp for the current snapshot.

Example response
{
  "data": {
    "counts": {
      "tokens": 7,
      "venues": 26,
      "chains": 6,
      "corridors": 11,
      "countries": 5
    },
    "coverage_tokens": [
      "cGHS",
      "cKES",
      "cNGN",
      "cNGN_mento",
      "cZAR",
      "eXOF",
      "ZARP"
    ]
  },
  "meta": {
    "product": "reference",
    "version": 1,
    "schema_version": 1,
    "as_of": "2026-08-23T04:12:00.000Z",
    "as_of_data_day": "2026-08-22",
    "attribution_id": "attr_01J8ZK4F2A9DQ7M3X5VBNP6RTS",
    "license_fingerprint": "afl_9dc81b9e5f0a4c2d7e11",
    "dataset_fingerprint": "ds_1c88e2f40b7a95d3"
  }
}
GET/v1/reference/tokens

List tracked tokens

The token master: slug (canonical join key), symbol, issuer, country, currency, status, launch date, and chains. Filterable by status, chain, or country.

Example response
{
  "data": {
    "tokens": [
      {
        "slug": "cngn",
        "symbol": "cNGN",
        "name": "cNGN",
        "issuer": "AfriFlux tracked issuer",
        "country": "Nigeria",
        "currency": "NGN",
        "status": "live",
        "launch_date": null,
        "chains": [
          "base"
        ]
      }
    ]
  },
  "meta": {
    "product": "reference",
    "version": 1,
    "schema_version": 1,
    "as_of": "2026-08-23T04:12:00.000Z",
    "as_of_data_day": "2026-08-22",
    "attribution_id": "attr_01J8ZK4F2A9DQ7M3X5VBNP6RTS",
    "license_fingerprint": "afl_9dc81b9e5f0a4c2d7e11",
    "dataset_fingerprint": "ds_1c88e2f40b7a95d3"
  }
}
GET/v1/reference/tokens/{symbol}

Resolve one token plus its coverage matrix

A single token master row joined with its per-section coverage states, so clients can learn which datasets exist for the token before querying other products. Accepts slug or symbol in any hyphen/underscore form.

Example response
{
  "data": {
    "slug": "cngn",
    "symbol": "cNGN",
    "name": "cNGN",
    "issuer": "AfriFlux tracked issuer",
    "country": "Nigeria",
    "currency": "NGN",
    "status": "live",
    "launch_date": null,
    "chains": [
      "base"
    ],
    "coverage": {
      "corridors": "live",
      "dex_pools": "live",
      "peg_deviation": "in_progress"
    }
  },
  "meta": {
    "product": "reference",
    "version": 1,
    "schema_version": 1,
    "as_of": "2026-08-23T04:12:00.000Z",
    "as_of_data_day": "2026-08-22",
    "attribution_id": "attr_01J8ZK4F2A9DQ7M3X5VBNP6RTS",
    "license_fingerprint": "afl_9dc81b9e5f0a4c2d7e11",
    "dataset_fingerprint": "ds_1c88e2f40b7a95d3"
  }
}
GET/v1/reference/chains

List supported chains

Chain slugs and display names usable as entity filters across all products.

Example response
{
  "data": {
    "chains": [
      {
        "slug": "base",
        "name": "Base"
      }
    ]
  },
  "meta": {
    "product": "reference",
    "version": 1,
    "schema_version": 1,
    "as_of": "2026-08-23T04:12:00.000Z",
    "as_of_data_day": "2026-08-22",
    "attribution_id": "attr_01J8ZK4F2A9DQ7M3X5VBNP6RTS",
    "license_fingerprint": "afl_9dc81b9e5f0a4c2d7e11",
    "dataset_fingerprint": "ds_1c88e2f40b7a95d3"
  }
}
GET/v1/reference/venues

List tracked venues

The venue master: roles, chain and token presence, first/last active day, and lifetime USD flow. Filterable by chain or role.

Example response
{
  "data": {
    "venues": [
      {
        "slug": "obiex",
        "name": "Obiex",
        "category": "exchanges",
        "type": "CEX",
        "countries": [
          "CM",
          "GH",
          "NG"
        ],
        "status": "live",
        "books": [
          "retail",
          "business"
        ],
        "chains": [
          "arbitrum",
          "base",
          "bsc",
          "ethereum",
          "polygon",
          "solana",
          "tron"
        ],
        "label_roles": [
          "deposit",
          "hot_wallet",
          "gas_funder"
        ]
      }
    ]
  },
  "meta": {
    "product": "reference",
    "version": 1,
    "schema_version": 1,
    "as_of": "2026-08-23T04:12:00.000Z",
    "as_of_data_day": "2026-08-22",
    "attribution_id": "attr_01J8ZK4F2A9DQ7M3X5VBNP6RTS",
    "license_fingerprint": "afl_9dc81b9e5f0a4c2d7e11",
    "dataset_fingerprint": "ds_1c88e2f40b7a95d3"
  }
}
GET/v1/reference/corridors

List tracked corridors

The corridor master: base/quote token pairs per chain and project with lifetime trade counts. The enumeration for corridor analytics.

Example response
{
  "data": {
    "corridors": [
      {
        "slug": "cngn-usdt-base",
        "base": "cNGN",
        "quote": "USDT",
        "chains": [
          "base"
        ],
        "projects": [
          "uniswap"
        ],
        "lifetime_trades": 30112
      }
    ]
  },
  "meta": {
    "product": "reference",
    "version": 1,
    "schema_version": 1,
    "as_of": "2026-08-23T04:12:00.000Z",
    "as_of_data_day": "2026-08-22",
    "attribution_id": "attr_01J8ZK4F2A9DQ7M3X5VBNP6RTS",
    "license_fingerprint": "afl_9dc81b9e5f0a4c2d7e11",
    "dataset_fingerprint": "ds_1c88e2f40b7a95d3"
  }
}
GET/v1/reference/countries

List covered countries

Country slugs, names, and the tokens mapped to each currency area.

Example response
{
  "data": {
    "countries": [
      {
        "slug": "nigeria",
        "name": "Nigeria",
        "tokens": [
          "cNGN",
          "cNGN_mento"
        ]
      }
    ]
  },
  "meta": {
    "product": "reference",
    "version": 1,
    "schema_version": 1,
    "as_of": "2026-08-23T04:12:00.000Z",
    "as_of_data_day": "2026-08-22",
    "attribution_id": "attr_01J8ZK4F2A9DQ7M3X5VBNP6RTS",
    "license_fingerprint": "afl_9dc81b9e5f0a4c2d7e11",
    "dataset_fingerprint": "ds_1c88e2f40b7a95d3"
  }
}
GET/v1/reference/coverage

Dataset coverage matrix

Per-token, per-section dataset availability (live, in_progress, no_coverage_yet, not_applicable). Query this before consuming any metric to avoid silent gaps.

Example response
{
  "data": {
    "legend": [
      "live",
      "in_progress",
      "no_coverage_yet",
      "not_applicable"
    ],
    "coverage": {
      "cNGN": {
        "corridors": "live",
        "dex_pools": "live",
        "peg_deviation": "in_progress"
      }
    }
  },
  "meta": {
    "product": "reference",
    "version": 1,
    "schema_version": 1,
    "as_of": "2026-08-23T04:12:00.000Z",
    "as_of_data_day": "2026-08-22",
    "attribution_id": "attr_01J8ZK4F2A9DQ7M3X5VBNP6RTS",
    "license_fingerprint": "afl_9dc81b9e5f0a4c2d7e11",
    "dataset_fingerprint": "ds_1c88e2f40b7a95d3"
  }
}
GET/v1/reference/health

Check API availability

Confirms that the published API product is available and identifies the serving environment.

Example response
{
  "status": "ok",
  "product": "reference",
  "version": 1,
  "environment": "live",
  "time": "2026-08-23T04:12:00.000Z"
}

Playground

Run real requests against the sandbox from your browser. Paste an af_test_ key from your dashboard; it stays in this tab and is only sent to the API. Live keys are rejected here.

Reference

Authentication

Send API keys as Bearer credentials. Test keys always use the sandbox; live keys are available as soon as you create your account. A key can only read the scopes selected for it.

Authorization: Bearer af_live_YOUR_KEY

Sandbox

Test-key calls never touch production data or use credits. Each API returns fixed sample responses you can run from its playground. Force an error response with a scenario header.

X-AfriFlux-Sandbox-Scenario: server_error

Credits and limits

  • One credit balance covers every API. Each call costs a set number of credits, shown next to every endpoint here and on the pricing page.
  • Invalid input is never billed.
  • Use an Idempotency-Key on supported write or batch requests.
  • Rate and plan limits apply across all keys on an account.
  • Credit and pricing information is returned in X-AfriFlux-* headers.

Errors

400Invalid request, chain or address
401Missing, invalid, revoked or expired key
402Insufficient credits
403Scope, account, live-access or IP allowlist restriction
404Endpoint not available
413Batch limit exceeded
429RPS or daily unique limit exceeded
500Internal error; charged usage is refunded

Storage and licensing

Standard access permits internal/product enrichment, individual display, caching until valid_until, and historical audit records. It prohibits raw redistribution, resale, a competing label API or database, systematic enumeration, model training, key sharing, and serving expired labels as current. Responses include a customer-specific license fingerprint. Attributions are analytical signals, not proof of legal ownership, sanctions or criminal conduct.