DEV Community

Your Evenings Data
Your Evenings Data

Posted on Edited on

New LLCs in New York, Colorado, Oregon and Connecticut every morning, with curl and jq

Article type: How-to guide

Prerequisites: curl and jq. No API key is needed for the state open-data APIs. For the Actor section: an Apify API token in APIFY_TOKEN.

Tested on: 30 October 2026

A business that registered this week has no reviews, often no website, and hasn't picked its accountant, insurer, bank or agency yet. That makes new filings one of the few lead sources where timing does the qualifying for you. The same records also answer the KYB question "is this entity real, and is it still on the register?".

Several states publish their business register as official open data. This post pulls the last week's filings from four of them into one shape with curl and jq, filters by industry, and then sets up a daily watch on entities you already work with.

Disclosure: the hosted API used here is ours, and it's paid per record. The free open-data queries are shown too, so you can see exactly where the data comes from.

What the raw sources look like

Each state runs a Socrata portal, and you can query them directly with no key. Connecticut, everything registered since 20 October:

curl -sG "https://data.ct.gov/resource/n7gp-d28j.json" \
  --data-urlencode "\$select=accountnumber,name,business_type,status,date_registration,naics_code" \
  --data-urlencode "\$where=date_registration>='2026-10-20T00:00:00'" \
  --data-urlencode "\$order=date_registration DESC" \
  --data-urlencode "\$limit=50000" | jq length
Enter fullscreen mode Exit fullscreen mode

As of 30 Oct 2026 that returned 1,768 entities, and Colorado's dataset (data.colorado.gov, 4ykn-tg5h) returned 6,024 for the same window on the same day. The counts grow as new filings land. For one state that's all you need.

The work starts when you want four: different column names and status words, different date columns, and different ideas of what's in the dataset at all. Connecticut's naics_code arrives as one string like "Other Spectator Sports (711219)". Colorado puts notes like ", Delinquent April 1, 2020" inside the entity name.

Four states, one shape

The Actor normalises all four into one row format. newFilings mode returns entities formed in a window, newest first:

curl -s -X POST \
  "https://api.apify.com/v2/acts/yourevenings~us-state-business-entities/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"mode":"newFilings","states":["NY","CO","OR","CT"],"filedWithinDays":7,
       "maxResults":100,"maxResultsPerState":25}' \
  > week.json
Enter fullscreen mode Exit fullscreen mode

That input is the README's own "new business filings in the last 7 days" example. Raise maxResultsPerState (0 means no limit) once you've seen the volume. Each entity row looks like this (a lookup row from the 30 October test run, shortened):

{
  "rowType": "entity",
  "state": "OR",
  "registerId": "338616",
  "name": "PORTLAND TERMINAL RAILROAD COMPANY",
  "entityType": "DOMESTIC BUSINESS CORPORATION",
  "status": "active",
  "statusDetail": "Listed in the Active Businesses dataset",
  "formationDate": "1882-08-28",
  "address": { "street": "3500 NW YEON AVE", "city": "PORTLAND", "state": "OR", "postalCode": "97210", "full": "3500 NW YEON AVE, PORTLAND, OR 97210" },
  "addressType": "principal_place_of_business",
  "naicsCode": null,
  "recordUrl": "https://egov.sos.state.or.us/br/pkg_web_name_srch_inq.do_name_srch?...",
  "dataset": "https://data.oregon.gov/d/tckn-sxa6",
  "licence": "Public domain (ORS 276A.368)"
}
Enter fullscreen mode Exit fullscreen mode

Status is always one of active, not_in_good_standing, inactive or unknown, with the state's own words in statusDetail. Only Colorado and Connecticut publish status data beyond "active", so not_in_good_standing and inactive come from those two. recordUrl points at the state's own page for that entity, which is useful when a human needs to double-check.

Filter to the leads you actually want

LLCs only, one row per line, ready for a CSV:

jq -r '.[] | select(.rowType=="entity" and (.entityType|test("LIMITED LIABILITY|LLC";"i")))
       | [.state, .registerId, .name, .formationDate, .address.city] | @csv' week.json
Enter fullscreen mode Exit fullscreen mode

For Connecticut you also get an industry code, already split into naicsCode and naicsDescription, so a "new consultancies" or "new restaurants" list is one more filter:

jq -r '.[] | select(.state=="CT" and ((.naicsCode // "") | startswith("5416")))
       | [.name, .naicsCode, .naicsDescription, .formationDate] | @tsv' week.json
Enter fullscreen mode Exit fullscreen mode

Other filters that pay off: drop names that look like property holding vehicles ("123 MAIN ST LLC"), and anything whose jurisdictionOfFormation isn't the state itself if you only want local businesses. That field keeps each state's own wording ("New York" and "Connecticut", but "CO" and "OR"), so match both forms.

A daily change watch for KYB

For customers or suppliers you already have, switch to lookup with monitorMode. Schedule it daily and it returns a row only when something watched changes (name, type, status, closed date, jurisdiction, addresses or NAICS):

curl -s -X POST \
  "https://api.apify.com/v2/acts/yourevenings~us-state-business-entities/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"mode":"lookup","entities":["CO:18961000001","CT:0067276","NY:4424185"],
       "monitorMode":true,"emitBaselineOnFirstRun":false,"stateStoreName":"kyb-us-entities"}' \
  | jq '.[] | select(.changeType=="updated") | {state, registerId, name, changedFields, previousValues}'
Enter fullscreen mode Exit fullscreen mode

If Colorado or Connecticut changes an entity's status, it shows up with changedFields: ["status"] and the old value in previousValues. In New York and Oregon, an entity that leaves the dataset gets a free no_longer_listed row instead (more on why below).

Honest limits

  • Four states only: NY, CO, OR and CT. They're included because they publish their business registers as open data that allows reuse. Most states don't.
  • Status data differs per state. Only Colorado and Connecticut publish all statuses. The New York and Oregon datasets list active entities only. A dissolved NY company comes back not_found, which may mean "inactive", not "never existed".
  • Freshness. New York's dataset can lag the Department of State by a few days, and Oregon refreshes about weekly. "Filed in the last 7 days" can miss the newest filings there. Use a slightly longer window and dedupe.
  • No people. Officer and owner names aren't requested. Sole proprietorships, DBAs and name reservations are skipped and free. Registered agents are opt-in (includeRegisteredAgent), NY and CO only, and only when the agent is an organisation.
  • Addresses can be homes. Small LLCs often register at the founder's home address. If you're using this for outreach, treat the address with care and follow the rules for your channel.
  • Colorado's disclaimer travels with the data. Every Colorado row carries the state's required notice in attribution. Keep it if you republish.
  • Run-sync waits up to 300 seconds. The portals are paced at up to 2 requests a second per state, so for big windows start an async run and fetch the dataset afterwards.
  • Cost: $0.0025 per entity row and $0.00005 per run start. Monitor mode adds $0.01 per run that returns at least one new or updated entity. Status rows, skipped records and monitor runs with nothing new carry no record or alert charges. Higher Apify plans get lower prices.

The Actor, with the input examples above ready to run: US State Business Entities API on Apify

Top comments (0)