SDK reference · Node SDK
prov.authorize.discovery.search
prov.authorize.discovery.search in Node SDK. Directory results, ordered by name (never ranked), with each selling agent's two-fact record.
Signature
prov.authorize.discovery.search(params?: BusinessSearchParams): Promise<ListResponse<DirectoryBusiness>>Parameters
paramsBusinessSearchParams
Request fields
categorystringquery- The business's category or one of its selling agents'.
sells_to_agentsenumquery- Only businesses that publish a selling agent. One of
true,false. limitintegerquery- Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery- Opaque; pass a response's
next_cursorback to get the next page.
Returns
Promise<ListResponse<DirectoryBusiness>> A page of businesses.
HTTP operation
GET /v1/public/businesses/search: Search businesses
Errors
Example
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/public/businesses/search?category=data&sells_to_agents=true`)).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/public/businesses/search?category=data&sells_to_agents=true").json()