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] = …) -> Any

Parameters

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_cursor back 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();

Was this page helpful? Send us feedback

LLM? Read llms.txt.