Guide
How to verify a U.S. business with an API
The United States has no national company register: each of the 50 states and D.C. keeps its own, with its own search and its own words for status. A business verification API runs that search for you. With Clerkfield, one GET /v1/business-check with the business name and the state returns a pass, review or fail verdict, the reasons, the state's record and its official source. This guide shows the call in curl, Node.js and Python, and one function that handles every answer.
One call
You need an API key. Create an account with Google or an email: it is free during the beta and asks for no card. Keep the key in an environment variable. A business check then needs two fields: the business name, and the two-letter code of the state where the company was formed.
export CLERKFIELD_API_KEY="paste-your-key-here" curl -sS -G "https://clerkfield.com/v1/business-check" \ -H "Authorization: Bearer $CLERKFIELD_API_KEY" \ --data-urlencode "name=Pizza and Company" \ --data-urlencode "state=KY" \ --max-time 300
The answer, trimmed to the fields that matter. Every response on this page is real: the calls were run against the live API on 25 November 2026.
{
"verdict": "pass",
"matchQuality": "exact",
"match": {
"legalName": "PIZZA AND COMPANY",
"entityId": "0148596",
"status": "active",
"statusDetail": "A - Active, standing G - Good",
"entityType": "KCO - Kentucky Corporation",
"formedOn": "1980-07-30",
"monthsInBusiness": 556,
"source": {
"name": "Kentucky Secretary of State business search",
"url": "https://sosbes.sos.ky.gov/BusSearchNProfile/Profile.aspx/?ctr=147328"
}
},
"flags": [],
"checkedAt": "2026-11-25T16:59:13.926Z",
"searchedAt": "2026-11-25T16:59:21.978Z"
}
- verdict is pass, review or fail. flags holds the reasons; each flag has a code, a severity and a message.
- matchQuality is exact, strong, possible or none. The check ignores capitals, punctuation and endings like LLC or Inc. Only an exact name can pass; a close name gets review, because it can be another company.
- match.status is active, inactive or unknown in every state, and match.statusDetail keeps the state's own words. Those words differ a lot: see what each business status means.
- match.formedOn is the formation date and match.monthsInBusiness is counted from it. A company younger than min_months (6 unless you send another number) gets review.
- match.source names the state office the record came from. Where the state publishes a data file, source.asOf is the date of that file; where Clerkfield runs the state's own search, as in Kentucky, searchedAt is when it ran. checkedAt is the time of your request. A repeat of the same search within 24 hours reuses the answer, so searchedAt can be earlier.
- When a state's free records leave something out, the answer says so in words. In New York, stateLimits is "Active companies only".
The same call in Node.js and Python
Node 18 or later has fetch built in. Save this as check.mjs and run node check.mjs.
const API = "https://clerkfield.com/v1";
const headers = { Authorization: `Bearer ${process.env.CLERKFIELD_API_KEY}` };
const params = new URLSearchParams({ name: "Pizza and Company", state: "KY" });
const res = await fetch(`${API}/business-check?${params}`, {
headers,
signal: AbortSignal.timeout(300_000),
});
const check = await res.json();
console.log(res.status, check.verdict, check.matchQuality, check.match?.status);
In Python, with requests:
import os
import requests
API = "https://clerkfield.com/v1"
headers = {"Authorization": f"Bearer {os.environ['CLERKFIELD_API_KEY']}"}
r = requests.get(
f"{API}/business-check",
headers=headers,
params={"name": "Pizza and Company", "state": "KY"},
timeout=300,
)
check = r.json()
print(r.status_code, check.get("verdict"), check.get("matchQuality"),
check.get("match", {}).get("status"))
Both print the same line:
200 pass exact active
Both samples wait up to 300 seconds. Many states answer in seconds, but where the check runs the state's own search at that moment, a few states take one to two minutes. GET /v1/timings gives each state's usual time.
Handle every outcome
One rule covers most of it: a search that found nothing is an answer, and a state that didn't answer is not.
| What comes back | What it means | What to do |
|---|---|---|
| 200, verdict pass, review or fail | The state answered. | Use it. On review, show the flags to a person. |
| 200, matchQuality none | No company with that name in that state. The verdict is fail, with the flag NOT_FOUND. | Treat it as an answer. The company may use another name or be formed in another state. In New York and Oregon the state's free records list active companies only, so an inactive company isn't found either. |
| 200 with stale | The state didn't answer, so this is its last answer for that name (up to 30 days old), dated in stale.asOf. The verdict is review at best. | Use it with its date, or ask again later. |
| 202 still_searching | Only when you send wait: the search is still running. | Send the same request again after retry_after_seconds. |
| 422 | The check doesn't cover that state. supported lists the states it covers. | Don't retry. |
| 502 state_failed, 503 state_unavailable | The state's records couldn't be reached, even after Clerkfield retried. | Try again after retry_after_seconds when retryable is true. |
| 504 search_timeout | The state was still answering after about 280 seconds. The search goes on. | Send the same request again after retry_after_seconds. |
A 400 or a 401 means the request or the key is wrong, so fix the code. Here is one function for all of it. Save it as verify.mjs.
const API = "https://clerkfield.com/v1";
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
export async function verifyBusiness(name, state, { wait = 20, budgetMs = 300_000 } = {}) {
const params = new URLSearchParams({ name, state, wait: String(wait) });
const headers = { Authorization: `Bearer ${process.env.CLERKFIELD_API_KEY}` };
const deadline = Date.now() + budgetMs;
for (;;) {
const res = await fetch(`${API}/business-check?${params}`, {
headers,
signal: AbortSignal.timeout(300_000),
});
const body = await res.json().catch(() => ({}));
if (res.status === 200) {
return {
// pass, review or fail; not_found when no company has that name
outcome: body.matchQuality === "none" ? "not_found" : body.verdict,
reasons: body.flags.map((f) => `${f.code}: ${f.message}`),
match: body.match,
alternatives: body.alternatives,
savedAsOf: body.stale?.asOf, // set when the state was down: an older answer
};
}
if (res.status === 422) {
return { outcome: "not_covered", error: body.error, supported: body.supported };
}
const running = res.status === 202 || res.status === 504;
const stateDown = res.status === 502 || res.status === 503;
if (!running && !stateDown) throw new Error(`Clerkfield ${res.status}: ${body.error}`);
const waitMs = (body.retry_after_seconds ?? 60) * 1000;
if ((stateDown && !body.retryable) || Date.now() + waitMs > deadline) {
return { outcome: "try_later", code: body.code, error: body.error };
}
await sleep(waitMs);
}
}
It sends wait=20, so no request stays open much longer than 20 seconds. When the state is slower, the API answers 202 and the function asks again. After budgetMs it stops and returns try_later. Use it like this:
import { verifyBusiness } from "./verify.mjs";
for (const [name, state] of [
["Pizza and Company", "KY"],
["No Such Company 4471 LLC", "KY"],
["Pizza and Company", "NC"],
]) {
const r = await verifyBusiness(name, state);
console.log(state, r.outcome, r.reasons ?? r.error);
}
KY pass [] KY not_found [ 'NOT_FOUND: No KY registry entry with this name. It may be registered under another name or in another state.' ] NC not_covered State NC is not supported yet
Check coverage first
What a check can return differs by state, and it changes over time. GET /v1/coverage returns it as JSON and needs no key:
const coverage = await (await fetch("https://clerkfield.com/v1/coverage")).json();
const ky = coverage.find((s) => s.state === "KY");
console.log(ky.business_check_available, ky.ucc_search_available, ky.business_check_unavailable_until);
const notCovered = coverage.filter((s) => !s.business_check_available).map((s) => s.state);
console.log(coverage.length, notCovered);
true true null 51 [ 'NC' ]
So on 25 November 2026 the business check covered 49 states and D.C., every state except North Carolina. business_check_unavailable_until is null while the state's search works; when a state has failed several times in a row it holds a time, and a check there answers 503 until then. The coverage page shows the same data as a table.
The UCC lien search
The second call lists the UCC filings against a business. Lenders and merchant cash advance funders use it to see who already has a lien. On the same day it covered 36 states and D.C.
curl -sS -G "https://clerkfield.com/v1/liens" \ -H "Authorization: Bearer $CLERKFIELD_API_KEY" \ --data-urlencode "state=CT" \ --data-urlencode "debtor=Bob's Discount Furniture" \ --max-time 300
{
"summary": {
"total": 2,
"active": 2,
"lapsed": 0,
"terminated": 0,
"activeSecuredParties": [
"Banc of America Leasing & Capital, LLC",
"SAMSARA CAPITAL FINANCE"
],
"notPublished": [],
"stateLimits": "Active liens and those lapsed under a year; includes tax and municipal liens"
},
"filings": [
{
"state": "CT",
"fileNumber": "0005369012",
"status": "active",
"filedOn": "2026-03-27",
"lapseOn": "2031-03-27",
"debtors": [{ "name": "BOB'S DISCOUNT FURNITURE, LLC", "address": "…" }],
"securedParties": [{ "name": "Banc of America Leasing & Capital, LLC", "address": "…" }],
"events": [],
"source": { "name": "Connecticut Secretary of the State, UCC Lien Filings (data.ct.gov)", "url": "…" }
},
…
],
"searchedAt": "2026-11-25T17:01:45.912Z"
}
summary counts the filings by status and names the lenders with active filings. Two fields keep you from reading too much into the list:
- summary.notPublished names the fields that state doesn't return. An empty field there means "not returned", not "none".
- summary.incomplete is set when the list may be partial, as a sentence that says why. Some states stop at a fixed number of filings per search (New York at 10, Illinois at 100); in other cases more filings matched than came back. When you see it, don't treat the list as complete: search again with the fuller legal name.
The outcomes are the same as for the business check: 422 for a state without lien search, 502 and 503 when the state is down, 202 when you send wait. A lien search can also answer 200 with stale: the filings saved the last time the state answered, so filings made after stale.asOf are missing. The UCC search API page lists what each state leaves out.
What state records don't tell you
A registry record tells you that a company exists, what its status is and, in some states, who its officers are. It doesn't tell you who really controls the company, what it owes, or whether the person applying is who they say. Some states don't publish a status or officers for free, so unknown is sometimes the honest answer. The registry is one part of a business check; sanctions screening and bank account checks are separate work. How to verify a business covers the full review.
General information about the Uniform Commercial Code as adopted across U.S. states, not legal advice. State versions can differ in details; for a specific filing, ask a lawyer in the state where it was filed.