# Changelog of Secretary of State Search & New LLC Filings: NY, TX, CO, OR, CT (`datatoolsforall/state-business-entity-search`) Actor

- **URL**: https://apify.com/datatoolsforall/state-business-entity-search/changelog.md
- **Full Actor documentation**: https://apify.com/datatoolsforall/state-business-entity-search.md

## Changelog

### 0.3.5 (2026-11-26)

- **Max results per state now defaults to 100** (was 1,000). A run that leaves it out, for example an AI agent's call, costs at most $0.15 per state ($0.75 for all five) instead of $1.50 per state. Set it higher when you need more.
- Tier prices are live: Bronze $1.35, Silver $1.20, Gold and above $1.05 per 1,000 records (Free plan unchanged at $1.50).
- README: "Use with AI agents" section (MCP URL, Claude Code, LangChain, minimal input with its cost), a plain statement that Texas data is the Comptroller's franchise-tax permit list and not the Texas Secretary of State register, real API examples instead of placeholders, and links to the author's other actors.
- Input and output schema descriptions shortened and given cost notes. No change to the search or the output fields.

### 0.3.4 (2026-11-26)

Fix from a sixth independent test pass:

- Texas: when both SOS file numbers of one taxpayer (12 such taxpayers live, e.g. FORD MOTOR CREDIT COMPANY LLC, 13816124443: `0002012606` and `0800808716`) were requested in a list long enough to be sent in several requests, the run returned the older row without the duplicate note **and** a billed, false `NOT_FOUND` for the other number. The second request's rows were dropped as "already seen" without being merged, so that number never counted as found. The same happened, minus the false `NOT_FOUND`, for an SOS number and its taxpayer number in different requests. Now an entity that comes back from more than one ID request is fetched again in one request (its taxpayer number, limited to the requested IDs that matched it, same filters), so a long list gives exactly the record a short list gives: the row with the latest charter date, with the note in `dataWarnings`, and every requested number of it counts as found. This costs one extra request only when it happens; the same row from two requests is never reported as a duplicate.

### 0.3.3 (2026-11-26)

Fix from a fifth independent test pass:

- Texas: an SOS file number typed with and without its leading zero (`TX:123456789` and `TX:0123456789`) got two billed `NOT_FOUND` rows, although both are queried as the same 10-digit SOS number. Texas IDs are now compared by the SOS number they are queried as (an ID of up to 10 digits is zero-padded to 10; checked live: every SOS number has 10 digits and every taxpayer number 11 digits without a leading zero), so all spellings of one SOS number are deduplicated, answered and billed once, prefixed or not. Longer Texas IDs still compare exactly.
- Colorado: an ID zero-padded beyond 20 digits (`CO:000000000019471112341`) got a free `INVALID_ID` row, and listed before `CO:19471112341` it even hid that entity, because the shape check looked at the typed text while duplicates were already merged by the leading-zero-free key. The shape check now uses the same key, so the ID is looked up (the portal returns 19471112341 for it).
- Whether a requested ID was found is decided by the same comparison key as the deduplication.

### 0.3.2 (2026-11-25)

Fix from a fourth independent test pass:

- The same requested ID written two ways (`NY:1` and `ny:1`, or `CO:05` and `CO:5`) got two identical billed `NOT_FOUND` rows. Duplicate IDs were removed on the raw text, before the state prefix was upper-cased and the ID trimmed, and each remaining entry got its own answer. Duplicates are now removed after normalizing (Colorado with its leading-zero-free comparison key), and the "not found" answers are written once per distinct ID and state, so an unprefixed ID and a prefixed spelling of it (`5` and `CO:05`) are not answered twice either. The 100-ID limit counts distinct IDs.

### 0.3.1 (2026-11-25)

Fix from a third independent test pass:

- Colorado: an entity ID typed with a leading zero (`CO:019471112341`) returned the record and also a billed, contradictory `NOT_FOUND` row, and the record had `matchedBy: formationDate`. Colorado's `entityid` is a number column, so the portal matches it numerically, but the actor then compared the returned ID with the typed one as text. Requested and returned IDs are now compared the way each portal compares its ID column (Colorado: without leading zeros; NY, CT, OR, TX text columns: exactly, ignoring surrounding spaces, as before). Rows from the ID lookup are always labelled `matchedBy: entityId`.

### 0.3 (2026-11-25)

Fixes from a second independent test pass:

- A backslash in a search name is escaped in the SoQL `like` pattern (`\`, verified on all five portals) instead of being sent as a one-character wildcard, which made the actor page through hundreds of thousands of rows in tiny requests. The literal re-check that remains as a safety net now uses full pages and stops a state with a `SCAN_LIMIT` error row after 5,000 rejected rows.
- Long ID lists are split into several requests by URL length. 100 nine-digit Texas IDs no longer fail with HTTP 414; Texas sends the zero-padded SOS variant only to the SOS file-number column.
- IDs that cannot exist in a state (all five use digits only, e.g. `OR:abc`) are not queried and not billed: free `INVALID_ID` row.
- Connecticut: `Expired` rows with no business type or only the placeholder date 0001-01-01 are excluded (phantom copies of real entities, about 3,170 rows). Mailing addresses with a comma in the street are parsed from the right instead of being kept whole in `line1`.
- Texas: new output field `sosStatusCode`; the duplicate-ID warning names the other rows' SOS status code.
- Name searches are ordered newest formation date first (documented), not by ID text.
- A very large relative date ("999999999999 days") is a clean input error instead of a crash.
- The final status message counts billed "not found" rows.
- Removed the unrelated "Related actors" README section.

### 0.2 (2026-11-25)

Fixes from an independent test pass:

- Colorado: all dated status suffixes are split from the name into `nameNote`, including `Colorado Authority Relinquished/Terminated <date>`, `Reinstated`, `delinquency cured` and chained notes.
- Connecticut: the placeholder registration date 0001-01-01 becomes `formationDate: null` with a `dataWarnings` note; date filters never match placeholder dates.
- Non-entities are no longer returned or billed: CT rejected filings, OR reserved and registered names, NY name reservations. OR assumed business names (DBAs) are kept and documented.
- `%` and `_` in search names are matched literally: they are escaped in the SoQL `like` pattern, and rows are re-checked literally before billing as a safety net. `matchedBy` falls back to `name`, never `formationDate`, for name searches.
- Requested entity IDs are queried separately from names and are never cut by `maxResultsPerState`.
- Source duplicates are removed (TX taxpayer numbers listed twice; one row kept with a note). CT placeholder account number `0000000` is not used as an ID. Paging order ends with the unique Socrata row id.
- "ATTN:" / "C/O <person>" address lines are removed unless names of people are opted in.
- Texas: SOS file numbers are found with or without leading zeros, and source IDs with a trailing space are found. Status codes documented.

### 0.1 (2026-11-25)

- First version.
- Five states from official Socrata open-data APIs: New York (Department of State), Colorado (Department of State), Connecticut (Secretary of the State, with Agents and Principals tables), Oregon (Secretary of State), Texas (Comptroller franchise-tax permit holders).
- Lookup by name (contains match) or state ID, and a new-filings feed by formation date (absolute or relative dates).
- One normalized record per entity; Oregon's several rows per entity are grouped by registry number.
- Names and addresses of individuals (agents, officers) only when `includeAgentAndOfficerNames` is on.
- Pay per event: `entity-record`.
