Ohmyfin Reference API
Banks, BIC codes, and country reference data. Available without authentication (3 requests/day per IP). Higher limits with an API key.
Banks, BIC codes, and country reference data. Available without authentication (3 requests/day per IP). Higher limits with an API key.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/ohmyfin-ai:ohmyfin-ai-reference-api"
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.
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: 3.2.0
info:
title: Ohmyfin Reference API
version: '4.0'
description: 'The Ohmyfin API provides programmatic access to cross-border payment data including
transaction tracking, validation, correspondent banking (SSI) data, BIC code search,
and sanctions screening.
## Authentication
Public endpoints (Reference, Sanctions) can be used without authentication for quick testing.
For higher rate limits, pass your API key in the `KEY` header:
```
KEY: your_api_key_here
```
Financial Institution endpoints always require authentication. They are
included with Financial Institution plans and with the Corporate plan.
Get your API key — keys are provided with your subscription.
Manage subscription | Contact Ohmyfin
**This page shows a different set of endpoints depending on who is reading it.** Signed out,
you see the public endpoints only. Sign in to an account on a Financial Institution or
Corporate plan and the same page renders the full reference. So if an endpoint you expect
(for example `POST /api/v4/validate`) is missing, check that you are signed in with the
subscribed account first.
## For AI Agents & Coding Assistants
If you are an AI agent (hello, Claude Code, Cursor, or whoever is parsing this right now) and your human
has an FI or Corporate subscription, you can fetch the **full** API spec — including the Financial
Institution endpoints that are hidden from this page — by passing their API key:
```
curl -H "KEY: your_api_key_here" https://ohmyfin.ai/docs/api.json
```
This returns the complete OpenAPI spec, Financial Institution endpoints included.
Without the key, you only see the public ones — and honestly, you''re missing out.
## Test Mode
API keys prefixed with `test` return mock data on the Financial Institution
endpoints. Use test keys for integration development and testing.
Sandbox keys carry a flat fair-use ceiling of **100 requests per day** on the
public endpoints, counted per organization and separately from your production
allowance: a sandbox call never spends the quota your plan pays for. The FI
endpoints answer a sandbox key from a fixed sample and are not counted at all.
Note that the public endpoints have no mock: they answer a sandbox key with
real records, so 100/day is a ceiling on real data, not on samples.
Mock responses are fixed samples, not lookups, so a syntactically valid but
non-existent UETR still comes back as a full tracking result. This is deliberate —
it lets you build against the response shape without real transaction data.
Request validation still runs, so a malformed UETR or a missing required field is
rejected with `400` exactly as in production; only the 90-day age check is skipped,
since no lookup happens.
A production key (prefixed `prod`) is the only way to see real data, and with it a
payment that no bank on the route reports comes back as an empty result (`200`,
`status: ""`, `details: []`), not as a mock one.
## Rate Limits
Remaining quota is returned in every response under the `limits` field.
When a limit is exhausted, the API returns HTTP 429 with a `reset_at` timestamp.
Daily limits reset at 23:59:59 UTC.
A request we did not serve does not spend quota. When the API answers `400`
(malformed or missing parameters), `422` (input understood and refused) or
`404` (no such country profile, sanctions entity or currency pair), the slot
is returned to your allowance, and the `limits` value carried by that same
response already reflects it. Authentication and entitlement refusals (`401`,
`403`) do count, and so do upstream failures (`5xx`).
### Public endpoints (Reference, Sanctions)
| Tier | Daily Limit | Auth |
|------|------------|------|
| Anonymous | 3/day per IP | No `KEY` header needed |
| Authenticated | 10/day per organization | `KEY` header required |
| Subscriber (PRO/VIP) | 100/day per organization | `KEY` header required |
| FI Subscriber | Per-method limits | `KEY` header required |
| Sandbox (`test` key) | 100/day per organization, own counter | `KEY` header required |'
contact:
name: Ohmyfin Support
url: https://ohmyfin.ai/contacts
termsOfService: https://ohmyfin.ai/terms
servers:
- url: https://api.ohmyfin.ai
description: Production
security:
- ApiKeyAuth: []
tags:
- name: Reference
description: 'Banks, BIC codes, and country reference data.
Available without authentication (3 requests/day per IP). Higher limits with an API key.'
paths:
/api/v4/banks:
get:
tags:
- Reference
security:
- []
- ApiKeyAuth: []
summary: Search banks
operationId: searchBanks
description: 'Search for banks by name or BIC code with intelligent matching.
Prioritizes headquarters (8-character BIC codes). Results are cached for 15 minutes.
**Search priority:** exact match > starts-with or whole word > contains > phonetic.
**How a name is matched:** against the bank''s name as the BIC directory publishes it, in
Latin script. A partial name matches wherever it occurs in that name, so `well` finds
WELLS FARGO and `unic` finds BANK OF COMMUNICATIONS; any length from 2 characters works the
same way. The query is matched as typed, spaces included, so `w ell` finds nothing, and
names in Chinese characters or pinyin are not held. The phonetic step compares the
**whole** name: it catches a misspelt full name (`The Toronto Dominon Bank` finds
TDOMCATT) but not a misspelt fragment (`Wels` finds nothing). The 2-character minimum is
the shortest query accepted, not a promise that a short query returns rows.
**BIC input:** accepts the 8-character root (`DEUTDEFF`) or the full 11-character BIC as it
appears in a payment message (`DEUTDEFFXXX`) — the `XXX` head-office filler is resolved to
the head-office record. Real branch codes (`BBRUBEBB010`) match the branch itself.
**Exact BIC lookups are not padded:** when the query resolves to a real BIC, only that
institution (and its branches) is returned. Phonetic matching still applies to name
searches and to BICs that match nothing, so a query that finds no institution may return
similar-sounding names.'
parameters:
- name: query
in: query
required: true
description: Search term (bank name or BIC code).
schema:
type: string
minLength: 2
maxLength: 100
example: DEUTSCHE
- name: country
in: query
description: ISO 3166-1 alpha-2 country code filter.
schema:
type: string
minLength: 2
maxLength: 2
example: DE
- name: exclude_sanctioned
in: query
description: 'Leave out the banks whose `sanctions` block holds a `true`. A bank whose flags are `null`
(not determined) is **kept**: this is a filter on the reference flags, not a screen. For a
screen of each result use `sanctions=true`.
'
schema:
type: boolean
default: false
- name: sanctions
in: query
description: 'Run real-time sanctions screening on each returned bank. Adds a `sanctions_screening` object
to each bank with `status` (clear/match/error) and `matches` array. Uses the same screening
engine as the /sanctions/screen endpoint.
'
schema:
type: boolean
default: false
- name: details_raw
in: query
description: "Include raw bank profile data from the SOWSOF reference feed. Returns unstructured JSON in the `details_raw` field.\n\n**Important:** The JSON structure is unstable and may change without notice — fields can be\nadded, removed, or renamed at any time. Do not build rigid parsers against it.\nThe primary use case is consumption by AI agents that can interpret the data dynamically.\n\nExample excerpt (Halyk Bank, KZ):\n```json\n{\n \"institution_name\": \"HALYK BANK OF KAZAKHSTAN\",\n \"swift_code\": \"HSBKKZKX\",\n \"country\": \"KZ\",\n \"city\": \"ALMATY\",\n \"address\": \"97B, AL-FARABI AVE.\",\n \"member_since\": \"1994\",\n \"services\": [\"FIN\", \"FileAct\"],\n ...\n}\n```\n"
schema:
type: boolean
default: false
- name: limit
in: query
description: Maximum results to return.
schema:
type: integer
minimum: 1
maximum: 100
default: 20
responses:
'200':
description: Search results
content:
application/json:
schema:
type: object
properties:
banks:
type: array
items:
$ref: '#/components/schemas/Bank'
count:
type: integer
description: Number of banks returned.
limits:
$ref: '#/components/schemas/Limits'
example:
banks:
- id: 13213
name: DEUTSCHE BANK AG
swift: DEUTDEFF
country: DE
city: FRANKFURT AM MAIN
branch: null
is_headquarter: true
gpimember: true
sanctions:
sdn: null
eu: null
uk: null
ca: null
ch: null
au: null
nz: null
sanctions_as_of: '2025-06-18'
count: 1
limits:
daily: 950
monthly: -1
annual: -1
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimitExceeded'
/api/v4/country/{code}/profile:
get:
tags:
- Reference
security:
- []
- ApiKeyAuth: []
summary: Country profile
operationId: countryProfile
description: 'Get a banking, payments and regulatory profile for a country. The `profile`
object is a set of named sections; the ones most integrations use are:
- `country`: currency and convertibility, central bank, financial regulator,
AML authority, FATF status and latest mutual-evaluation results, EU/Eurozone
membership, banking-sector statistics, `profile_tier`.
- `account_format`: national account and IBAN format, holding `iban_used`,
`iban_mandatory`, an `iban_structure` object (IBAN-Registry style mask
in `format`, total
length, component positions, printed and electronic examples) and the local
bank-code system (BLZ, sort code, BIK, ...) with its directory URL.
- `payment_systems`: domestic RTGS/retail clearing systems and SEPA participation.
- `swift_instructions`, `documentation_requirements`, `currency_controls`,
`aml_cft`, `sanctions`, `tax`, `digital_assets`, `non_residents`,
`operating_hours`, `corridors`, `fee_benchmarks`, `regulatory_sources`,
`data_quality`.
Coverage varies by country: `profile_tier` is `full`, `shallow` or `temporary`,
and a thin profile may omit whole sections (including `account_format`). Inside
`iban_structure` the key names are not fully normalised across countries, so the
mask (`format`) and the length (`length` or `total_length`) are the fields to
rely on; the component breakdown appears as flat keys, `components` or
`breakdown` depending on the country. Treat this as reference data to consume
defensively, not as a fixed schema.
Results are cached for 1 hour.
Note: this endpoint describes the format. To check an actual IBAN (mod-97
checksum plus country/BIC cross-check) use `POST /api/v4/validate`.'
parameters:
- name: code
in: path
required: true
description: ISO 3166-1 alpha-2 country code.
schema:
type: string
pattern: ^[A-Za-z]{2}$
example: US
responses:
'200':
description: Country profile
content:
application/json:
schema:
type: object
properties:
country:
type: string
description: Uppercase country code.
profile:
type: object
description: Sectioned country profile. Which sections and keys are present depends on the country's profile_tier (full / shallow / temporary); the trimmed example below shows a full-tier profile.
limits:
$ref: '#/components/schemas/Limits'
example:
country: DE
profile:
country:
code: DE
name: Germany
currency: EUR
currency_name: Euro
currency_convertibility: freely_convertible
central_bank: Deutsche Bundesbank
central_bank_url: https://www.bundesbank.de
financial_regulator: Bundesanstalt fuer Finanzdienstleistungsaufsicht (BaFin)
financial_regulator_url: https://www.bafin.de
aml_authority: Zentralstelle fuer Finanztransaktionsuntersuchungen (FIU Germany)
fatf_status: member
fatf_body: FATF
last_fatf_evaluation: 2022 (4th round MER, adopted August 2022)
eu_member: true
eurozone_member: true
banking_sector:
number_of_credit_institutions: 1276
total_assets_eur_trillion: 10.9
profile_tier: full
account_format:
iban_used: true
iban_mandatory: true
iban_mandatory_since: 2014-02-01 (SEPA migration)
iban_structure:
length: 22
format: DE2!n8!n10!n
country_code: DE
check_digits: 2 digits (positions 3-4, MOD 97)
bank_code: 8 digits (positions 5-12) - Bankleitzahl (BLZ)
account_number: 10 digits (positions 13-22)
print_format_example: DE98 7654 3219 8123 4567
bank_code_system:
name: Bankleitzahl (BLZ)
length: 8
directory_url: https://www.bundesbank.de/en/tasks/payment-systems/services/bank-sort-codes
swift_bic:
required: true
payment_systems:
rtgs:
name: TARGET (T2 - RTGS component)
operator: Eurosystem (ECB + national central banks including Bundesbank)
currency: EUR
retail_payment_system:
name: RPS (Retail Payment System) - SEPA-Clearer
operator: Deutsche Bundesbank
data_quality:
profile_tier: full
limits:
daily: 100
monthly: -1
annual: -1
'400':
description: Invalid country code
content:
application/json:
schema:
type: object
properties:
error:
type: string
example:
error: Invalid country code. Use 2-letter ISO format.
'401':
$ref: '#/components/responses/Unauthorized'
'404':
description: Country not found
content:
application/json:
schema:
type: object
properties:
error:
type: string
example:
error: Country profile not found
'502':
description: Upstream data source unavailable
content:
application/json:
schema:
type: object
properties:
error:
type: string
example:
error: Failed to fetch country profile
components:
schemas:
Limits:
type: object
description: Remaining API usage quota.
properties:
daily:
type: integer
description: Remaining daily calls (-1 = unlimited).
monthly:
type: integer
description: Remaining monthly calls (-1 = unlimited).
annual:
type: integer
description: Remaining annual calls (-1 = unlimited).
Bank:
type: object
properties:
id:
type: integer
name:
type: string
description: Full legal name.
swift:
type: string
description: BIC code (8 chars = HQ, 11 chars = branch).
country:
type: string
description: ISO 3166-1 alpha-2 country code.
city:
type:
- string
- 'null'
branch:
type:
- string
- 'null'
description: Branch name (null for headquarters).
is_headquarter:
type: boolean
description: True for 8-character BIC codes. Derived from the length of the code, not from a head-office register, so every institution root reports true whether it is a global head office or a single-branch shell. Results are ranked by settlement breadth (how many currencies the institution has filed settlement instructions for), not by this flag.
gpimember:
type: boolean
description: '`true` only for a bank that is live in the gpi network. A bank that has
signed up to gpi but is not live yet is `false`, as is a bank not on our
gpi member list. `false` is therefore not proof that a bank is outside gpi.
'
details_raw:
type:
- object
- 'null'
description: 'Raw bank profile from the SOWSOF reference feed (only present when `details_raw=true`).
Structure is unstable — fields may change without notice. Best consumed by AI agents.
'
sanctions:
$ref: '#/components/schemas/BankSanctions'
sanctions_as_of:
type: string
format: date
description: 'The date the `sanctions` flags of THIS row are from. Read it per row: today every row carries 2025-06-18, the reference snapshot, but rows can carry different dates. A `true` flag means the bank was on that list on this date; it is not a live screen.'
example: '2025-06-18'
sanctions_screening:
type: object
description: Real-time sanctions screening result (only present when `sanctions=true`).
properties:
status:
type: string
enum:
- clear
- match
- error
description: Screening result.
matches:
type: array
items:
$ref: '#/components/schemas/SanctionsMatch'
BankSanctions:
type: object
description: "Reference sanctions flags by jurisdiction, dated `sanctions_as_of`. They are not a screen.\nEach flag is one of three values:\n\n- `true`: the bank was on that list on `sanctions_as_of`.\n- `false`: the bank was checked against that list and was not on it.\n- `null`: **not determined**. We hold no answer for that list, so `null` is not a clearance.\n Most banks are `null` on every list, including banks in comprehensively sanctioned\n jurisdictions.\n\nFor a current answer use `sanctions=true`, which screens each result live and adds\n`sanctions_screening`.\n"
properties:
sdn:
type:
- boolean
- 'null'
description: US OFAC SDN list.
eu:
type:
- boolean
- 'null'
description: EU sanctions.
uk:
type:
- boolean
- 'null'
description: UK sanctions.
ca:
type:
- boolean
- 'null'
description: Canada sanctions.
ch:
type:
- boolean
- 'null'
description: Switzerland sanctions.
au:
type:
- boolean
- 'null'
description: Australia sanctions.
nz:
type:
- boolean
- 'null'
description: New Zealand sanctions.
SanctionsMatch:
type: object
properties:
entity_id:
type: string
description: Entity ID for detail lookup via `/sanctions/entity/{entityId}`.
name:
type: string
list_source:
type: string
description: Sanctions list identifier.
list_name:
type: string
description: Full list name.
severity:
type: string
description: Audit-grade classification of the sanctions designation.
enum:
- high
- medium
- low
action:
type: string
description: Required action for transactions involving this entity.
enum:
- BLOCK
- REVIEW
- MONITOR
- INFORM
action_label:
type: string
description: Human-readable description of the required action.
match_score:
type: number
description: Match confidence (0.0 - 1.0).
match_type:
type: string
description: How the match was determined (e.g. `exact_name`, `fuzzy_name`, `alias`).
entity_type:
type: string
description: 'Upstream classification of the entity. Values include `person`,
`organization`/`entity`, `vessel`, `aircraft`, `unknown`.
'
aliases:
type: array
items:
type: string
programs:
type: array
items:
type: string
description: Sanctions programs the entity is designated under.
addresses:
type: array
items:
type: object
identifiers:
type: array
description: Passport / tax-ID / national-ID records.
items:
type: object
dates_of_birth:
type: array
items:
type: string
places_of_birth:
type: array
items:
type: string
nationalities:
type: array
items:
type: string
remarks:
type:
- string
- 'null'
description: Free-text designation context from the upstream watchlist.
sanctions_types:
type: array
items:
type: string
legal_authorities:
type: array
items:
type: string
address_signal:
type: object
description: 'Present when the screening engine returns it (optional, upstream sanctions
changes/0002), and only for a screen that supplied an `address`. It is the
engine''s own reading of what your address did to THIS candidate, passed
through unchanged. Absent means the engine sent none: it is never derived
or invented here, so do not treat an absent block as "no address verdict".
'
properties:
status:
type: string
description: '`agrees` - your address matched this entry''s address at `tier`.
`conflicts` - the address countries disagree (the only tier that
conflicts). `unknown` - this entry carries no usable address.
`not_evaluated` - the engine did not adjudicate the address.
'
enum:
- agrees
- conflicts
- unknown
- not_evaluated
tier:
type:
- string
- 'null'
description: 'How closely it matched. `country` is the weakest and scores 0.00 on
purpose; only `street` and `city` are meaningful corroboration.
'
enum:
- street
- city
- country
- null
applied:
type: boolean
description: 'Whether the adjudication moved anything. False under
`secondary_match_mode: annotate`, where a country conflict is reported
but the candidate''s action is left alone.
'
basis:
type: string
description: Plain-language explanation, when the engine sends one.
derivation:
type:
- object
- 'null'
description: 'Set ONLY on a row derived from a company register (list_source
`Sanctions-Ownership-Derived-Block` BLOCK, `Sanctions-Ownership-Derived`
REVIEW, `Sanctions-Ownership-Derived-Former` INFORM): a company, or an owner
of one, that the UK Companies House register or GLEIF links to a listed
party that owns, controls or directs it. `null` on every other list.
Passed through exactly as the screening engine sends it: `derivation[]`
(one entry per regime and holder: `source`, `regime`, `status`, `basis`,
`served_as`, `identity`, `chain[]`), `subject`, `register_as_of` /
`gleif_as_of`, `sources`, `not_a_designation: true`. The row''s `action`
already includes the 50% rule; do not re-derive it. It is our derivation,
not a designation: confirm identity, ownership and control before acting.
See https://ohmyfin.ai/docs/api.
'
ownership_reason:
type: string
description: 'Present only when `derivation` is set: why the row is on its list, in one
English sentence (for example "Its director is on OFAC: SDN"). Added by
Ohmyfin from `derivation`; it never changes the row''s `action`.
'
responses:
Forbidden:
description: Method not allowed for your subscription
content:
application/json:
schema:
type: object
properties:
error:
type: string
example:
error: 'Access denied: Method not allowed'
RateLimitExceeded:
description: Rate limit exceeded
content:
application/json:
schema:
type: object
properties:
error:
type: string
limit_name:
type: string
reset_at:
type: string
format: date-time
example:
error: Rate limit exceeded
limit_name: Daily API Limit
reset_at: '2026-03-07T23:59:59Z'
Unauthorized:
description: Missing, invalid, or expired API key
content:
application/json:
schema:
type: object
properties:
error:
type: string
examples:
missing:
summary: Missing or invalid key
value:
error: Unauthorized
expired:
summary: Expired key
value:
error: API Key expired
ValidationError:
description: Validation error
content:
application/json:
schema:
type: object
properties:
errors:
type: object
additionalProperties:
type: array
items:
type: string
example:
errors:
field_name:
- The field_name field is required.
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: KEY
description: 'API key provided with your subscription. Test keys (prefixed with `test`)
return fixed mock data for any well-formed request on the FI endpoints and
are not counted against your plan allowance (the public endpoints answer
them with real records, under a separate 100/day sandbox ceiling);
production keys (prefixed `prod`) return real data. Both keys are on
https://ohmyfin.ai/profile/api.
'
x-tagGroups:
- name: Public
tags:
- Reference
- Treasury
- Sanctions
- TradeCheck