Skip to main content
POST
Returns active liquor licenses from the register of the New York State Liquor Authority, refreshed daily, by license id or part of a trade or legal name: class, premises, issue dates and expiration date. Pending and inactive licenses are not searched, so an empty list is not evidence that the location never held one.

Authentication

Requires x402 payment in the payment-signature header.

Request Body

string
required
State issuing the licence. One of NY.
string
The source licence identifier; takes precedence over name.
string
A distinctive fragment of the trade or legal name, matched ignoring case. 2 to 100 characters.
string
ZIP code to narrow the search.
integer
Most licences to return. From 1 to 25. Defaults to 10.

Response (200 OK)

Top-level envelope: success (boolean) and data (object). All fields below are nested under data.
string
Durable job ID for audit and lookup
string
Job status: completed
string
Always business_liquor_license
object
The answer, described under Result below
object
Where the answer came from and when
boolean
true when the answer was served from OneShot’s store of earlier lookups (or its own copy of a public dataset), false when the source was asked for this call
string
When the record was obtained from its source, as an ISO 8601 UTC time; equals evidence.retrieved_at
string
The public body the data comes from. Always New York State Liquor Authority.
string
public when the data comes from a public body, commercial otherwise
string
When the lookup was made, as an ISO 8601 UTC time
string | null
The rows have no update timestamp; null. retrieved_at dates the answer.

Result

Nested under data.result.
string
The state asked for.
object[]
Matching active licences, newest last issue date first; empty when none matched.
string
The source licence identifier.
The legal name on the licence. null when the source gives no value.
string | null
The trade name (DBA), or null when absent.
string | null
The licence type in the authority’s words. null when the source gives no value.
string | null
The licence class code, retaining leading zeros. null when the source gives no value.
string | null
The actual address of the premises, or null when absent.
string | null
The city of the premises, or null when absent.
string | null
The county of the premises. null when the source gives no value.
string | null
The ZIP code of the premises. null when the source gives no value.
string | null
Original issue date, YYYY-MM-DD or null.
string | null
Most recent issue date, YYYY-MM-DD or null.
string | null
Effective date, YYYY-MM-DD or null.
string | null
Expiration date, YYYY-MM-DD or null.
number | null
Latitude of the premises, or null when absent.
number | null
Longitude of the premises, or null when absent.
integer
Rows returned, not a count of all matches; the source does not send a count.
See Pricing for this tool’s price. A wallet (x402) call receives it in the 402 quote before anything is charged; a call paid from prepaid credits is charged when the API accepts the request and answers 200.

Notes

  • state is required and must be NY. Give at least one of license_id and name; the id takes precedence when both are given.
  • Names are matched as stored, ignoring case, as a substring of the trade or legal name. Try a short distinctive fragment: SORLEY matches MC SORLEYS, but McSorley’s does not.
  • zipcode narrows either search.
  • Returns at most limit licenses, newest last issue date first.
  • Missing values are null; dates are YYYY-MM-DD.
  • An empty licenses list is a completed result: no active license was found under that name or id.
  • Results return inline. The finished job stays available at /v1/requests/{request_id}