POST /v1/graph/query
Query the business graph in reverse: which businesses use technology X in state Y. It returns company facts from sources cleared for reuse, never owner personal data or raw source records.
Request
POST /v1/graph/query
Content-Type: application/json
x-api-key: YOUR_KEYAt least one selective filter is required (tech, techAny, industry, state, or city).
hasDomain and notTech alone are not selective enough; this bounds the query cost.
Body
| Field | Type | Description |
|---|---|---|
tech | string | string[] | Firms using this technology (all of, when an array). Case-insensitive: shopify finds Shopify. |
techAny | string[] | Firms using any of these technologies. |
notTech | string[] | Exclude firms using these. |
industry | string | Industry / NAICS title filter. |
state | string | Two-letter state. |
city | string | City. |
hasDomain | boolean | Only firms with (or without) a website. |
limit | number | Max results. Default 50, clamped to 200. |
Arrays are capped at 25 terms each. Technology names match without regard to case.
Reverse-index form
The same endpoint also takes signal, bucket (hot, warm, cold), a geo object
({ state, city, industry }) or a filters object ({ state, city, industry, freshnessWithinDays, limit, offset }). That form answers { businesses, count, total }. With tech, a geo object
narrows the tech query: {"tech": "Shopify", "geo": {"state": "TX"}} returns Shopify sites in Texas
only. When filters and geo both name the same key, filters wins.
Example
curl -X POST https://api.superscraper.dev/v1/graph/query \
-H "x-api-key: ss_live_xxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"tech": "shopify", "state": "OR", "limit": 50}'Response
{
"count": 128,
"results": [
{
"domain": "northside-roasters.example",
"name": "Northside Coffee Roasters LLC",
"industry": "Coffee Roasters",
"naics": "311920",
"tech_stack": [
{ "name": "Shopify", "category": "ecommerce", "confidence": 0.9 },
{ "name": "WordPress", "category": "cms", "confidence": 0.8 }
],
"city": "Portland",
"state": "OR",
"employee_band": "11-50",
"_freshness": "2026-07-10T00:00:00.000Z"
}
],
"criteria": { "tech": "shopify", "state": "OR", "limit": 50 }
}Every row is a clean-title business fact. The projection never returns raw_data, owner records,
phone, or email; those are stripped at the API boundary. tech_stack is an array of objects, one per
detected technology, each with name, category and confidence.
Withheld fields
Some fields can come from sources whose terms we have not cleared for resale, so each one is served
only once it is verified: name, phone, opening hours, category (industry), coordinates and
description. A field that is not verified is returned as null. On a single record
(/v1/graph/business) the withheld fields are listed in unverified_fields, so null there means
"withheld", not "unknown". When you filter by industry, businesses whose category is not verified
are left out, because returning them would reveal the withheld category.
Businesses that asked to be removed (a takedown) are never returned and never counted. A platform
domain such as yelp.com or facebook.com is never a business identity: a business whose stored
website was a listing page is returned with domain: null.
Counts
{ count, results }:countis the estimated number of businesses matching the filters, which can be larger thanresults(one page, at mostlimit). When you filter byindustry,countis the number of rows served on this page.{ businesses, count, total }:countis the rows in this page;totalis the estimated number of matches.
Counts are estimates from the database planner, good for sizing a market, not for exact totals.
Errors
| Status | Cause |
|---|---|
| 400 | no selective filter (provide tech, techAny, industry, state, or city) |
| 400 | invalid JSON |
| 503 | graph not available on this deployment |
Read a single record
GET /v1/graph/business/:idOrDomain returns one fused business (PII-stripped: clean-title facts +
marketing summary + a signal count, never owner PII or raw payloads). Withheld fields are null
and listed in unverified_fields. A removed business, or a platform domain such as yelp.com,
answers 404.
curl https://api.superscraper.dev/v1/graph/business/northside-roasters.example -H "x-api-key: ss_live_..."Notes
- This is the reverse-index over the same graph Resolve reads.
- A
503means the graph is not available on this deployment right now.