LenDb.ai Match API
The Match API from LenDb.ai — 1 operation(s) for match.
The Match API from LenDb.ai — 1 operation(s) for match.
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/lendb-ai:lendb-ai-match-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: LenDb.ai public read Match API
version: 1.0.0-preview
summary: Made for humans. Built for robots.
description: 'Independent, growing, lender-neutral database of US mortgage loan officers (free; coverage is partial). Every fact is sourced. Ranked results explain themselves with reasons[]. Responses never contain phone numbers or email addresses.
No key is needed: anonymous calls are limited per IP (60/min, 1200/hour). A free API key raises that to 120/min and 10000 calls per UTC day. Send it as `Authorization: Bearer ldb_live_...`. `?api_key=` still works on this API but is deprecated (keys in URLs end up in logs, referrers and history) and is not accepted by the MCP server. Get one at https://lendb.ai/developers, or let an agent request one with POST /keys/request. Over a limit: HTTP 429 with Retry-After. Keyed responses include X-LenDb-Key-Prefix, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset, X-LenDb-Daily-Limit and X-LenDb-Daily-Remaining.'
contact:
email: bot@lendb.ai
url: https://lendb.ai/bot
servers:
- url: https://lendb.ai/api/v1
security:
- {}
- bearerKey: []
- queryKey: []
tags:
- name: Match
paths:
/match:
get:
operationId: match
summary: Free-text situation to ranked loan officers
description: 'Examples: `q=duplex in Austin, I am self-employed`, `q=local mortgage broker in Sacramento`, `q=VA loan near 92101`, `q=bitcoin mortgage`. Rule-based parse against the LenDb taxonomy and the Census gazetteer (no LLM). A city, ZIP, county, region or lat/lng means a local search: offices within 25 miles, widened to 50 and then 100 when fewer than 3 people can be placed (search.note says so); if nobody is within 100 miles, people who may serve properties in the state (licensed or otherwise eligible there; their offices may be farther away or in another state) are ranked by expertise with distance shown (search.statewide_fallback). On a plain place search (no specialty, language or lender) that places some people but not a full list, loan officers licensed in the state follow the local results, labeled as a partial match by state (match_scope ''state'', search.state_fill). A bare city name that fits several sizable places ("Springfield") searches the most populous one and says so in ambiguous_location. With no place at all, results are national browsing (search.scope ''national''). An NMLS ID ("202984", "NMLS 202984") or a loan officer''s exact full name ("Dennis Vo") returns that profile (profile_match) instead of a place search. A state alone ranks by expertise statewide. A lender named in the question ("Guild Mortgage loan officer in San Diego") limits results to that lender when LenDb lists its loan officers there, and search.note says so either way; a kind of lender ("broker", "credit union") ranks that kind first and search.note says how many results are that kind. Eligibility for the property state: a license confirmed with the state regulator (license_check.confidence ''confirmed''), the state listed on the lender page (''lender_reported''), or a bank or credit union employer (''federal_registration'': likely federally registered, eligible in any state, inferred from the employer type; federally registered MLOs aren''t state-licensed, verify at NMLS). People with an office in the state but none of these are returned separately in not_yet_verified, never in results. With several requested specialties, people matching all of them come first (match_status ''exact''); then partial matches (match_status ''partial'', with unconfirmed_specialties). Specialties have two levels: officer level (the person''s own focus: their bio, title, certification or own specialty list on their lender page, or a claim) and lender level (a program their current lender offers, lender.loan_programs). Only officer level matches a specialty or earns specialty points; when fewer than 5 people match at officer level, people whose lender offers the program are listed after them in lender_level (match_level ''lender''), never in results. Score: specialty evidence (largest, officer level only), license evidence, distance on local searches (offices we cannot place are listed last with office_location_unknown, and search.note says how many), kind of lender when asked, language, experience (time since earliest_license_record, the earliest state regulator record on file, which is a record date and not proof of continuous licensure; or stated years), profile quality. Disciplinary history is not checked yet (disciplinary_check: ''not_checked''). See /llms-full.txt. requested_specialties: what the query asked for. exact_match_count: results matching all of them; it covers the recognized specialties and place only, not every requirement in the query. unassessed_requirements: parts of the query LenDb cannot check yet (e.g. "close in 21 days"), as phrases from the query, or a requested specialty no loan officer has on file yet (the search runs without it and search.note says so); all_terms_understood is true when there are none. search.scope: local | state | national | profile. ambiguous_location {term, assumed, note, options[{label, state, population, query}]}: present when a bare city name fits several sizable places.'
parameters:
- name: q
in: query
required: false
description: Free-text situation. Required unless specialty, zip, lat/lng, state or lang is given.
schema:
type: string
minLength: 2
- name: specialty
in: query
required: false
description: Taxonomy slugs, added to the specialties q names (use these from a picker instead of words in q). Repeat the parameter or send one comma-separated value. A specialty label ('New construction') is also read as its slug. Unknown values return 400 unknown_specialty.
schema:
type: array
items:
type: string
enum:
- condo
- condo-non-warrantable
- co-op
- multi-family-2-4
- manufactured
- rural
- new-construction
- mixed-use
- condotel
- vacation-home
- fha
- va
- usda
- jumbo
- non-qm
- dscr
- bank-statement
- reverse
- renovation
- construction
- fix-and-flip
- heloc
- down-payment-assistance
- crypto-mortgage
- self-employed
- first-time-buyer
- investor
- refinance
- permanent-resident
- foreign-national
- itin
- low-credit
- recent-credit-event
- physician
- 1099-income
- asset-based
- move-up-buyer
style: form
explode: true
- name: lat
in: query
required: false
description: Borrower latitude for 'near me' (with lng). Used only to pick the search origin.
schema:
type: number
minimum: -90
maximum: 90
- name: lng
in: query
required: false
description: Borrower longitude for 'near me' (with lat).
schema:
type: number
minimum: -180
maximum: 180
- name: zip
in: query
required: false
description: Borrower ZIP for 'near me' (5 digits).
schema:
type: string
pattern: ^[0-9]{5}$
- name: state
in: query
required: false
description: Override the parsed state.
schema:
type: string
- name: lang
in: query
required: false
description: Override the parsed language. Same forms as /loan-officers lang ('es', 'es-MX', 'spa', 'Spanish', 'español'). Unsupported languages return 400 unsupported_language.
schema:
type: string
- name: fha_approved
in: query
required: false
description: 'true: only loan officers whose current lender is an FHA-approved lender per HUD''s FHA Single Family Portfolio Snapshot data (HUD approved mortgagees, matched to the lender by name and states). It is about the lender, not the person. Without it, an FHA search still ranks people at HUD-approved lenders ahead of others when all else is equal.'
schema:
type: boolean
- name: limit
in: query
required: false
description: Max results (1 to 50).
schema:
type: integer
minimum: 1
maximum: 50
default: 10
responses:
'200':
description: Match
content:
application/json:
schema:
type: object
properties:
sample:
type: boolean
description: Present and true while the response contains fictional sample data.
notice:
type: string
query:
type: string
parsed:
$ref: '#/components/schemas/ParsedSituation'
filters:
type: object
requested_specialties:
type: array
items:
type: string
exact_match_count:
type: integer
description: 'Results matching every requested specialty (and the place, when one was named). It covers what LenDb recognized, not every requirement in the query: check all_terms_understood and unassessed_requirements.'
all_terms_understood:
type: boolean
description: True when every meaningful part of the query was recognized. False means unassessed_requirements lists what LenDb did not check.
unassessed_requirements:
type: array
items:
type: string
description: 'Parts of the query LenDb cannot check yet, as phrases from the query (e.g. "close in 21 days"). Results were not filtered or ranked on them: confirm them with the loan officer.'
profile_match:
type: object
description: Present when the query was an NMLS ID ("202984", "NMLS 202984"; a bare 5-digit number only when no ZIP has it) or a loan officer's exact full name ("Dennis Vo"). results then hold those people.
properties:
kind:
type: string
enum:
- nmls_id
- name
value:
type: string
note:
type: string
loan_officers:
type: array
items:
type: object
properties:
nmls_id:
type: integer
full_name:
type: string
canonical_url:
type: string
format: uri
lender:
type:
- object
- 'null'
description: The lender (company) with that NMLS ID, for kind nmls_id.
properties:
nmls_id:
type: integer
name:
type: string
canonical_url:
type: string
format: uri
ambiguous_location:
type: object
description: Present when a bare city name (no state) fits several sizable places, e.g. Springfield. Results are for `assumed` (the most populous); ask the user which one they meant.
properties:
term:
type: string
assumed:
type: object
properties:
label:
type: string
state:
type: string
note:
type: string
options:
type: array
items:
type: object
properties:
label:
type: string
state:
type: string
population:
type:
- integer
- 'null'
query:
type: string
description: 'The original query with this place''s state added: pass it as q to search there.'
fallback_applied:
type: boolean
description: Results include partial matches, or the search widened past its first radius or fell back to the whole state.
search:
type: object
properties:
local:
type: boolean
radius_mi:
type:
- number
- 'null'
initial_radius_mi:
type:
- number
- 'null'
note:
type:
- string
- 'null'
description: e.g. "No matches within 25 mi of Austin, TX; widened to 50 mi."
statewide_fallback:
type: boolean
description: 'Nobody within 100 mi: results are loan officers who may serve properties in the state (licensed or otherwise eligible there); their offices may be elsewhere.'
state_fill:
type: boolean
description: 'Few offices near the place: results after the local ones (match_scope ''state'') are loan officers licensed in the property''s state, a partial match by state, ranked by expertise.'
scope:
type: string
enum:
- local
- state
- national
- profile
description: 'local: around a place. state: eligible for a state. national: no place given, browsing everyone (ask where the property is). profile: an NMLS ID or name lookup.'
count:
type: integer
results:
type: array
items:
$ref: '#/components/schemas/RankedLoanOfficer'
not_yet_verified:
type: object
description: People with an office in the property state but no license evidence there yet. Never part of results.
properties:
state:
type: string
note:
type: string
results:
type: array
items:
$ref: '#/components/schemas/RankedLoanOfficer'
lender_level:
type: object
description: 'Present when the requested specialties have fewer than 5 officer-level results: people whose current lender offers the program (match_level ''lender''), ranked by the same factors with no specialty points. Not confirmed as their own focus. Never part of results or exact_match_count.'
properties:
specialties:
type: array
items:
type: string
note:
type: string
results:
type: array
items:
$ref: '#/components/schemas/RankedLoanOfficer'
canonical_url:
type: string
format: uri
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
tags:
- Match
components:
schemas:
Error:
type: object
properties:
error:
type: string
message:
type: string
LoanOfficerSummary:
type: object
properties:
nmls_id:
type: integer
slug:
type: string
full_name:
type: string
licensed_names:
type: array
items:
$ref: '#/components/schemas/LicensedName'
description: 'Names as state regulators license this NMLS ID, when they differ from full_name (a nickname or short form on the lender site, e.g. Nic for Nicholas). Same person: same NMLS ID, surname and a compatible first name. Absent when there is none.'
canonical_url:
type: string
format: uri
json_url:
type: string
format: uri
lender:
type:
- object
- 'null'
properties:
nmls_id:
type: integer
name:
type: string
slug:
type: string
canonical_url:
type: string
branch:
type:
- object
- 'null'
properties:
city:
type:
- string
- 'null'
state:
type:
- string
- 'null'
headshot_url:
type:
- string
- 'null'
description: Photo URL from the person's lender page (hotlinked from there, as on the profile page), or null.
licensed_states:
type: array
items:
type: string
description: States with a confirmed (regulator) or lender-reported license.
licenses:
type: array
items:
type: object
properties:
state:
type: string
confidence:
type: string
enum:
- confirmed
- lender_reported
federal_registration_likely:
type: boolean
description: Works at a bank or credit union, so likely a federally registered MLO (registered with NMLS, not state-licensed; eligible in any state). Inferred from the employer type; verify at NMLS.
languages:
type: array
items:
type: string
specialties:
type: array
description: 'Officer-level: the person''s own focus. evidence agency_list: a state housing agency lists them for its down payment assistance programs (not their own focus; listed_by names the agency).'
items:
type: object
properties:
slug:
type: string
evidence:
type: string
enum:
- self_claimed
- lender_page_text
- production_data
- lender_provided
- lo_provided
- agency_list
- lo_own_site
listed_by:
type: string
loan_programs:
type: array
items:
type: string
description: Basic loan programs the person lists, such as conventional. Not a focus and never used in search ranking. Absent when none.
lender_offers:
type: array
items:
type: string
description: 'Lender-level: slugs of programs their current lender offers that are not their own specialties. Never counted as their focus.'
employer_program_approvals:
type: array
description: 'Their current lender''s agency approvals: program fha means the lender is FHA-approved per HUD data (shown as ''Works at an FHA-approved lender, per HUD''). About the lender, never the person. Absent when none is on file.'
items:
type: object
properties:
program:
type: string
enum:
- fha
source:
type: string
enum:
- HUD
as_of:
type: string
description: 'YYYY-MM: loans endorsed through this month.'
years_licensed:
type:
- integer
- 'null'
deprecated: true
description: 'Deprecated: always null. A count of years since the first state license record would imply continuous licensure, which a regulator''s initial effective date does not establish. Use earliest_license_record.'
earliest_license_record:
type:
- object
- 'null'
properties:
date:
type: string
format: date
state:
type: string
description: 'Earliest state regulator license record LenDb holds (only states with loaded rosters): a record date, not proof of continuous licensure or total experience. Shown as ''Earliest state license record: <date> (<state>), per state regulator''.'
licensed_since:
type:
- object
- 'null'
deprecated: true
properties:
year:
type: integer
state:
type: string
description: 'Deprecated: the year and state of earliest_license_record.'
years_experience:
type:
- integer
- 'null'
description: Years of experience the loan officer states on their lender page.
lender_profile_url:
type:
- string
- 'null'
description: The loan officer's own page at their lender. Phone and email are not in the API.
disciplinary_check:
type: string
enum:
- not_checked
- checked
description: 'not_checked: LenDb has not loaded regulator disciplinary records for this person yet. An empty disciplinary_actions list does not mean a clean record. Verify at NMLS Consumer Access.'
ParsedSituation:
type: object
properties:
specialties:
type: array
items:
type: string
state:
type:
- string
- 'null'
city:
type:
- string
- 'null'
language:
type:
- string
- 'null'
unmatched_terms:
type: array
items:
type: string
zip:
type:
- string
- 'null'
local:
type: boolean
description: The query asked for someone nearby (local, nearby, near me).
near_me:
type: boolean
lender_type:
type:
- string
- 'null'
enum:
- bank
- credit_union
- imb
- broker
- other
- null
region:
type:
- string
- 'null'
place_terms:
type: array
items:
type: string
nmls_id:
type:
- integer
- 'null'
description: An NMLS ID read from the query.
person_name:
type:
- string
- 'null'
description: '2 to 4 name-like words and nothing else recognized: looked up as a loan officer''s name before places.'
location:
type:
- object
- 'null'
description: The resolved search origin (Census ZIP or place centroid).
properties:
label:
type: string
kind:
type: string
enum:
- zip
- place
- county
- region
- coords
lat:
type: number
lng:
type: number
state:
type:
- string
- 'null'
zip:
type:
- string
- 'null'
radius_mi:
type: number
RankedLoanOfficer:
type: object
required:
- rank
- score
- loan_officer
- reasons
- canonical_url
properties:
rank:
type: integer
score:
type: number
reasons:
type: array
items:
type: string
description: Why this person is in the list, with source and verification date.
canonical_url:
type: string
format: uri
loan_officer:
$ref: '#/components/schemas/LoanOfficerSummary'
distance_mi:
type:
- number
- 'null'
description: Miles from the searched place to the nearest current branch (place searches only).
distance_basis:
type:
- string
- 'null'
enum:
- office_zip
- branch_city
- null
description: Measured to the office ZIP centroid, or to the branch city's center when no ZIP is on file.
office_location_unknown:
type: boolean
description: 'Local searches: LenDb cannot place this office; listed after placed offices.'
match_scope:
type: string
enum:
- state
description: '''state'': a place with few offices nearby; this person is listed after the local results only because they are licensed in the property''s state (search.state_fill).'
license_check:
type: object
description: License evidence for the property state. Only confidence 'confirmed' is a state regulator record.
properties:
state:
type: string
confidence:
type: string
enum:
- confirmed
- lender_reported
- self_reported
- federal_registration
- unknown
eligible:
type: boolean
label:
type: string
verified_at:
type:
- string
- 'null'
source_url:
type:
- string
- 'null'
match_status:
type: string
enum:
- exact
- partial
description: 'Specialty searches: exact = every requested specialty on file; partial = some not confirmed.'
matched_specialties:
type: array
items:
type: string
unconfirmed_specialties:
type: array
items:
type: string
description: Requested specialties with no officer-level evidence on file for this person.
match_level:
type: string
enum:
- officer
- lender
description: officer = matched on the person's own focus (their bio, title, certification, own specialty list or claim). lender = listed only because their current lender offers the program (lender_offered_specialties); not confirmed as their focus. Lender-level results appear only in lender_level, never in results.
lender_offered_specialties:
type: array
items:
type: string
description: 'Lender-level results: requested specialties their current lender offers.'
mentioned_by_loan_officer:
type: array
items:
type: string
description: 'Free-text searches (q): phrases from this loan officer''s own_words that the query names, labeled ''mentioned by the loan officer''. A label only: never why the result is listed or where it ranks. Absent when none.'
LicensedName:
type: object
required:
- name
- first_name
- last_name
- states
- source
- as_of
properties:
name:
type: string
description: First and last name as the state regulator licenses it, e.g. 'Nicholas Bucca' for Nic Bucca.
name_with_middle_initial:
type:
- string
- 'null'
description: '''Nicholas A. Bucca'' when the regulator lists a middle name. LenDb never publishes the full middle name.'
first_name:
type: string
middle_initial:
type:
- string
- 'null'
last_name:
type: string
states:
type: array
items:
type: string
description: Two-letter codes of the states whose regulator lists this form.
source:
type: string
enum:
- state_regulator
as_of:
type: string
format: date
description: Date of the newest regulator file with this form.
responses:
BadRequest:
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Rate limit or daily quota reached. Honor Retry-After.
headers:
Retry-After:
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Unknown, malformed or revoked API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
bearerKey:
type: http
scheme: bearer
description: Free API key, ldb_live_... Optional.
queryKey:
type: apiKey
in: query
name: api_key
description: 'Deprecated: the same key as a query parameter. Prefer the Authorization header; keys in URLs end up in logs and history. Not accepted by /mcp.'
externalDocs:
description: llms-full.txt
url: https://lendb.ai/llms-full.txt