SDK reference · Python SDK
prov.authorize.discovery.search
prov.authorize.discovery.search in Python SDK.
Signature
prov.authorize.discovery.search(category: Optional[str] = …, sells_to_agents: Optional[bool] = …, limit: Optional[int] = …, cursor: Optional[str] = …) -> AnyParameters
categoryOptional[str]sells_to_agentsOptional[bool]limitOptional[int]cursorOptional[str]
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
Any 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()