LocationLists
v1.2.0US business location data: search, sample, count, query rows or buy CSVs (Stripe or x402 USDC).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_datasets Search location datasets
Find LocationLists datasets by brand, kind of business or industry (e.g. 'bobcat', 'restaurants', 'bank branches', 'dental practices', 'hardware stores'). Returns every matching dataset, best first, with slug, name, business type, industry, record count, coverage, whether it can be searched by distance (distanceSearch), and page URL. A kind of business or an industry in the query matches every dataset of that kind, and `kinds` names it as a category that count_locations can combine into one answer. Each brand or chain is its own dataset. After finding one you can filter it by city, state, zip,…
| Parameter | Type | Description |
|---|---|---|
category | string | Restrict to one catalog category, industry or subcategory |
kind | string | list (default): the lists we sell. register: live public registers read from their publisher, e.g. {"query": "child care", "kind": "register", "state": "NY"} — each result's source goes in relate_lo… |
limit | integer | Max results (default: every match) |
query | string | Free text: brand, kind of business, industry or product |
state | string | With kind "register": prefer registers covering this state, e.g. "NY" |
relate_locations Relate two sets of locations (free)
Free. How one set of places relates to another, by straight-line distance. The base set is the usual dataset / datasets / category plus filters; relate.anchor is the other set, given the same way. Modes: nearest (each base row's k<=3 nearest anchors with miles), count_within (rank base rows by how many anchors are within radius_miles), within_any (base rows with at least one anchor within radius_miles), none_within (base rows with no anchor within radius_miles). Mode next_best (no anchor, needs the base set's state) ranks the candidate new sites in that state by how well they match what the ba…
count_by_area Count locations by area (free)
Free, counts only. Counts places per county / zip / state / metro for 1 to 4 labeled sets (each a dataset, datasets or category plus filters), and compares them: has (areas with at least one of every listed set) and lacks (areas with none of any listed set). E.g. counties that have set a but no set b; ZIPs where a closure-filtered set exists and another set still has places. Rows that cannot be placed are counted, never read as zero. Every area row can carry Census / NOAA figures (area_columns) and the areas can be ranked by one of them or by a count (order_by), so markets rank by demand; limi…
cotenancy Cotenancy between two sets (free)
Free, counts only. How two sets of places sit together: the share of set a within radius_miles of set b and of b within radius_miles of a, how many places overlap, and the county / zip / state / metro areas that have both, only a, or only b (top 10 of each named). Each set is a dataset, datasets or category plus filters, the same as count_locations; any US brand or kind of place works, including Overture lists from search_datasets. Example: {"a": {"dataset": "<slug>"}, "b": {"dataset": "<other slug>"}, "radius_miles": 1, "by": "county"}.
| Parameter | Type | Description |
|---|---|---|
a * | object | First set: dataset, datasets or category, plus filters |
b * | object | Second set, given the same way |
by | string | Area unit for both/only-a/only-b (default county) |
in_state | string | Only areas in this state |
radius_miles | number | Distance that counts as together (default 1 mile) |
get_dataset Get dataset details
Full record for one dataset: fields with descriptions, record and state counts, coverage measured on the rows (a list in 14 states says "partial U.S.: 14 states"; coverageDetail lists the states, rows per state and the states with none), whether it can be searched by distance, advertised refresh cadence and the real last-modified date of the file, FAQs, sample URL and the dataset's page on locationlists.com.
| Parameter | Type | Description |
|---|---|---|
slug * | string | Dataset slug from search_datasets, e.g. bobcat-dealers |
count_locations Count matching locations (free)
Free. How many rows of one dataset match a filter — on geography and any other column (e.g. nonprofits with revenue_amt gt 2000000, dealers with dealerClass eq 'Elite'). Also reports how many rows were excluded only because a tested column was blank, so a thin column is not mistaken for a small answer; a small or empty answer says how many rows each condition removed and what the column really holds. Returns the exact card price of the matching rows, a link where the user can see and buy them, and the same rows in a cheaper list when one has them. Works for geography: city, state, county, zi…
get_sample Get sample rows
Free. Real rows from the live file, as JSON plus CSV text. Show these to the user so they can judge the fields and quality. Without filters: up to 10 rows spread across the whole dataset. With filters (the same ones count_locations takes: city, state, county, zip, metro, `where` on any column, areas_in (county / ZIP / metro / state ids from count_by_area), area_where, area_columns (Census figures as columns on every row), or `near` a place such as {place: "Los Angeles, CA", radius_miles: 25} on lists with coordinates): how many rows match, plus the list's FIXED free sample rows — the same pu…
request_list Request a new list
Ask LocationLists to add a list we do not have yet. Use it when search_datasets finds nothing that fits, or the user wants a brand, place or kind of business we do not publish. Before calling: ask the user whether to send the request, and ask for their email so we can tell them when the list is ready. Pass an email only if the user gave it to you in this conversation; never guess or invent one. Called with neither email nor email_declined, it sends nothing and asks for the email. The request goes to the LocationLists team, the same place as the request box on locationlists.com. We add new data…
| Parameter | Type | Description |
|---|---|---|
topic * | string | The list the user wants, in their words (2-200 characters) |
company | string | The user's company, if they gave it |
details | string | Anything else they specified: places, fields needed (phone, website, email), timing |
email | string | The user's email, only if they gave it, so we can tell them when the list is ready |
email_declined | boolean | True only when you asked the user for their email and they chose not to leave one |
name | string | The user's name, if they gave it |
use_case | string | What they will use the list for, if they said (e.g. sales outreach, territory planning) |
send_feedback Send feedback
Send a message to the LocationLists team: wrong or missing data in a dataset, something that did not work, a pricing question, an idea, or anything else. Ask the user before sending and use their words. Ask for their email so the team can reply, and pass it only if they gave it; never guess or invent one. Called with neither email nor email_declined, it sends nothing and asks for the email. Free.
| Parameter | Type | Description |
|---|---|---|
message * | string | The feedback, in the user's words (5-4000 characters) |
category | string | What it is about (default other) |
dataset | string | Dataset slug it concerns, if any, e.g. generac-dealers |
email | string | The user's email, only if they gave it |
email_declined | boolean | True only when you asked the user for their email and they chose not to leave one |
price_my_list Price a list the user wants to sell
For a user who HAS a list of business locations and wants to sell it on LocationLists. Nothing is stored and nothing is charged. Give what the list is (one sentence), about how many rows, and the figure they have in mind in US dollars: the result says whether it holds up against what lists that size sell for here and the closest lists already on the site, what the seller would keep (80%), and what we would list it at (list prices end in 9). Then sell_list hands the file over. The same check in a browser: https://locationlists.com/sell.
| Parameter | Type | Description |
|---|---|---|
rows * | integer | About how many rows (locations) the list has |
target_usd * | number | The price the user has in mind for the whole file, US dollars |
what * | string | What the list is, in the user's words: 'Florida marinas with slip counts, from marina websites and county records' |
sell_list Sell a list on LocationLists
Put the user's list of business locations up for sale on LocationLists. They keep 80% of each sale; we host, check out, deliver and pay out. No account. The steps, each one call: (1) call with the user's email alone: a six-digit code is emailed to them (ask the user for their email first; never invent one). (2) Ask the user for the code from that email (never guess it) and call again with email, code, and the list: `rows` inline, an array of objects, one per location, with a name and an address or latitude/longitude (up to 5,000 rows), or for a bigger file `filename` + `bytes` and no rows, whi…
| Parameter | Type | Description |
|---|---|---|
bytes | integer | The file's size in bytes, with filename, for an upload URL |
code | string | The six-digit code from the email we sent, as the user read it to you |
email | string | The seller's email, exactly as the user gave it. Every message about the list goes there. |
filename | string | The file's name with its extension (.csv, .tsv, .json, .geojson); with bytes and no rows, asks for an upload URL |
lists | array | A batch: up to 10 lists in one call, with email + code (or token). Each item is one list: rows inline (5,000 rows across the whole batch), or filename + bytes for an upload URL. Each becomes its own l… |
rows | array | The list itself, one object per location, up to 5,000. Keep the user's own column names. |
rows_claimed | integer | About how many rows, as the user said |
target_usd | number | The price the user wants for the whole file, US dollars (ends in 9 after rounding) |
token | string | The token a previous sell_list call returned with an upload_url |
upload_id | string | The upload_id from the upload_url call, after the PUT finished |
uploads | array | A batch's finished uploads, with the token: one item per upload_url you PUT a file to |
what | string | What the list is, one sentence, in the user's words |
email_quote Email the user a quote (free)
Free. Emails the user a plain-English quote for exactly this request: how many rows match, the card price, a few of the matches and a card checkout link, so they can pay later, from any device, or forward it to whoever holds the card. Takes the same arguments as count_locations: dataset, or datasets / category with total, plus filters. Before calling: ask the user for their email and whether to send it. Pass an email only if the user gave it to you in this conversation; never guess or invent one. Nothing is charged and nothing is bought; the price is checked again when they open the link.
get_quote Price one or more datasets
Line-item prices and total for a list of dataset slugs, each with how it is sold (soldBy: file, row, or both) — the same rule create_checkout, buy_dataset, create_query_checkout and query_locations enforce, so a quote never offers a route checkout refuses. A list sold by the row only (an Overture Maps list) is quoted at its per-row rate with the route named, not as a file; count_locations with filters gives the exact price of the rows. Every list sold by the row is quoted with its perRow rate and the per-call fee, next to any file price. A paid call is billed for the rows it returns: each ro…
| Parameter | Type | Description |
|---|---|---|
slugs * | array | Dataset slugs |
create_checkout Create a checkout link
Opens a Stripe Checkout session for one dataset and returns the payment URL plus the session id. Give the URL to the user to pay (card, Apple Pay, Google Pay). After payment Stripe emails them a permanent download link; use check_order with the session id to confirm and fetch it. Does not charge anything by itself.
| Parameter | Type | Description |
|---|---|---|
slug * | string | Dataset slug |
email | string | Buyer email, if known — prefills Checkout and is where the download link is sent |
check_order Check order status
Given a Stripe Checkout session id (cs_…), reports whether it is paid and, if so, returns the permanent download link for the CSV. Works for whole files, filtered rows and combined (several-dataset) orders. Any download link takes ?shape=hubspot or ?shape=salesforce for CRM-ready column names (every column kept).
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | Checkout session id from create_checkout |
create_query_checkout Card checkout for filtered rows
For buyers paying by card: opens a Stripe Checkout for just the rows of one dataset that match a filter, and returns the payment URL to give the user. Takes the same filters as count_locations (state/city/county/zip, `where` on any column, `near`, `order_by`) and up to 10,000 rows. It counts the matches first, so the buyer pays only for rows that exist: the data price is the same per-row price query_locations charges, plus a card processing fee (2.9% + $0.30) added on top, one price the buyer sees at checkout. After payment the buyer is emailed a CSV download link; check_order with the session…
query_locations Query locations (paid)
Return matching rows from one dataset, filtered on any of its columns — state/city/county/zip shortcuts plus `where` conditions with numeric comparisons (e.g. [{field:"revenue_amt",op:"gt",value:2000000}]), sorted with `order_by` and paged with `offset`. `near` ({place:"Topeka, KS"}, a zip, or lat+lng, optional radius_miles) returns the closest rows first with distance_miles, on lists with coordinates — so "10 banks closest to Topeka" is one call for 10 rows. get_dataset lists the columns; count_locations (free) tells you how many rows match and what fetching them costs before you pay. Pri…
buy_dataset Buy a complete dataset (paid)
Buy an entire dataset outright and get a permanent download link for the CSV. Pays once, at the same list price a human pays by card — no account and no checkout page.\n\nPrefer this over repeated query_locations calls whenever you want most of a file. Metered queries are priced per row and deliberately cost more than the file if you assemble it that way, so past a few hundred rows buying outright is both cheaper and complete. get_dataset (free) gives the price and record count first.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | Dataset slug, e.g. generac-dealers. Use search_datasets first. |