Tools API
Tools catalog
Browse the Tools API's categories, groups and tools, read one tool's input, output and price, and quote a run before starting it.
The Tools API runs single-purpose data tools, such as reading one product page, at a price per run or per result. These routes describe what can be run: categories, groups (one per source) and tools, each with its input and output schemas, an example, its price and how long it takes. They are free. To run a tool, see Tools runs. For a walkthrough, see Tools API.
List categories#
GEThttps://api.sproutsdata.ai/tools/v1/categories
- Scope
- dsp.tools.read
- Cost
- Free
Categories with at least one listed tool, for the sidebar.
Response 200application/json
itemsarray of objectrequired3 fields inside
namestringrequiredslugstringrequiredtool_countintegerrequired
Errors
- 401
No usable credential (auth.unauthorized).
- 403
Not allowed: the workspace (auth.tenant_not_allowed) or the key's scope.
- 429
Too many requests (rate_limit.exceeded), runs in flight (tools.too_many_runs) or today's spend (tools.spend_cap_exceeded).
- 501
Tools are not served by this deployment (
not_implemented). - 503
Tools could not be reached (upstream.unavailable), or a tool is switched off (tools.tool_disabled, service.unavailable).
- 504
Tools did not answer in time (upstream.timeout). A run may still finish.
curl "https://api.sproutsdata.ai/tools/v1/categories" \
-H "X-API-Key: $SPROUTS_API_KEY"{
"items": [
{
"name": "string",
"slug": "string",
"tool_count": 0
}
]
}List groups#
GEThttps://api.sproutsdata.ai/tools/v1/groups
- Scope
- dsp.tools.read
- Cost
- Free
The cards on the Tools page. q keeps groups whose name or tools match.
Query parameters
categorystring or nullat most 40 charactersqstring or null1 to 200 characters
Response 200application/json
countintegerrequireditemsarray of objectrequired7 fields inside
categorystringrequiredmin_creditsnumberrequirednamestringrequiredslugstringrequiredsummarystringrequiredtool_countintegerrequiredlogostring or null
Errors
- 401
No usable credential (auth.unauthorized).
- 403
Not allowed: the workspace (auth.tenant_not_allowed) or the key's scope.
- 422
Validation Error
- 429
Too many requests (rate_limit.exceeded), runs in flight (tools.too_many_runs) or today's spend (tools.spend_cap_exceeded).
- 501
Tools are not served by this deployment (
not_implemented). - 503
Tools could not be reached (upstream.unavailable), or a tool is switched off (tools.tool_disabled, service.unavailable).
- 504
Tools did not answer in time (upstream.timeout). A run may still finish.
curl "https://api.sproutsdata.ai/tools/v1/groups?category=e-commerce" \
-H "X-API-Key: $SPROUTS_API_KEY"{
"count": 0,
"items": [
{
"category": "string",
"logo": "string",
"min_credits": 0,
"name": "string",
"slug": "string",
"summary": "string",
"tool_count": 0
}
]
}Get a group#
GEThttps://api.sproutsdata.ai/tools/v1/groups/{slug}
- Scope
- dsp.tools.read
- Cost
- Free
Path parameters
slugstringrequiredat most 40 characters
Response 200application/json
categorystringrequiredmin_creditsnumberrequirednamestringrequiredslugstringrequiredsummarystringrequiredtool_countintegerrequiredtoolsarray of objectrequired10 fields inside
availablebooleanrequiredcategorystringrequiredgroupstringrequiredidstringrequiredlatencyobjectrequired2 fields inside
max_secondsintegerrequiredtypical_secondsintegerrequired
namestringrequiredpersonal_databooleanrequiredpriceobjectrequiredWhat a run costs, before it is made.
5 fields inside
basisstringrequiredper_10_records:creditsis the price ofrecord_block(10) records the tool returns; a run is charged per 10 records returned, rounded up (11 records cost it twice).per_call: a tool that answers with one record,creditsa call.max_creditsis the most a run can be charged."per_10_records""per_call"chargedbooleanrequiredcreditsnumberrequiredmax_creditsnumberrequiredrecord_blockintegerRecords one price buys: 10.
summarystringrequiredtagsarray of stringrequired
logostring or null
Errors
- 401
No usable credential (auth.unauthorized).
- 403
Not allowed: the workspace (auth.tenant_not_allowed) or the key's scope.
- 404
No such tool, group or run for this workspace (tools.*_not_found).
- 422
Validation Error
- 429
Too many requests (rate_limit.exceeded), runs in flight (tools.too_many_runs) or today's spend (tools.spend_cap_exceeded).
- 501
Tools are not served by this deployment (
not_implemented). - 503
Tools could not be reached (upstream.unavailable), or a tool is switched off (tools.tool_disabled, service.unavailable).
- 504
Tools did not answer in time (upstream.timeout). A run may still finish.
curl "https://api.sproutsdata.ai/tools/v1/groups/amazon" \
-H "X-API-Key: $SPROUTS_API_KEY"{
"category": "string",
"logo": "string",
"min_credits": 0,
"name": "string",
"slug": "string",
"summary": "string",
"tool_count": 0,
"tools": [
{
"available": false,
"category": "string",
"group": "string",
"id": "string",
"latency": {
"max_seconds": 0,
"typical_seconds": 0
},
"name": "string",
"personal_data": false,
"price": {
"basis": "per_10_records",
"record_block": 0,
"charged": false,
"credits": 0,
"max_credits": 0
},
"summary": "string",
"tags": [
"string"
]
}
]
}List tools#
GEThttps://api.sproutsdata.ai/tools/v1/tools
- Scope
- dsp.tools.read
- Cost
- Free
Listed tools. With q, ranked by relevance to a plain-language need; without it, ordered by category, group and name. This is what an agent uses to find a tool.
Query parameters
categorystring or nullat most 40 charactersgroupstring or nullat most 40 charactersqstring or null1 to 500 characterslimitintegerdefault501 to 500
Response 200application/json
countintegerrequireditemsarray of objectrequired10 fields inside
availablebooleanrequiredcategorystringrequiredgroupstringrequiredidstringrequiredlatencyobjectrequired2 fields inside
max_secondsintegerrequiredtypical_secondsintegerrequired
namestringrequiredpersonal_databooleanrequiredpriceobjectrequiredWhat a run costs, before it is made.
5 fields inside
basisstringrequiredper_10_records:creditsis the price ofrecord_block(10) records the tool returns; a run is charged per 10 records returned, rounded up (11 records cost it twice).per_call: a tool that answers with one record,creditsa call.max_creditsis the most a run can be charged."per_10_records""per_call"chargedbooleanrequiredcreditsnumberrequiredmax_creditsnumberrequiredrecord_blockintegerRecords one price buys: 10.
summarystringrequiredtagsarray of stringrequired
Errors
- 401
No usable credential (auth.unauthorized).
- 403
Not allowed: the workspace (auth.tenant_not_allowed) or the key's scope.
- 422
Validation Error
- 429
Too many requests (rate_limit.exceeded), runs in flight (tools.too_many_runs) or today's spend (tools.spend_cap_exceeded).
- 501
Tools are not served by this deployment (
not_implemented). - 503
Tools could not be reached (upstream.unavailable), or a tool is switched off (tools.tool_disabled, service.unavailable).
- 504
Tools did not answer in time (upstream.timeout). A run may still finish.
curl "https://api.sproutsdata.ai/tools/v1/tools?group=amazon" \
-H "X-API-Key: $SPROUTS_API_KEY"{
"count": 0,
"items": [
{
"available": false,
"category": "string",
"group": "string",
"id": "string",
"latency": {
"max_seconds": 0,
"typical_seconds": 0
},
"name": "string",
"personal_data": false,
"price": {
"basis": "per_10_records",
"record_block": 0,
"charged": false,
"credits": 0,
"max_credits": 0
},
"summary": "string",
"tags": [
"string"
]
}
]
}Get a tool#
GEThttps://api.sproutsdata.ai/tools/v1/tools/{tool_id}
- Scope
- dsp.tools.read
- Cost
- Free
One tool in full: input and output schemas, an example, price, latency. Retired, paused and hidden tools still answer by id, so a stored id always resolves to an explanation.
Path parameters
tool_idstringrequiredat most 80 characters
Response 200application/json
alternativesarray of stringrequiredavailablebooleanrequiredcategorystringrequireddescriptionstringrequiredexample_outputobject or nullrequiredgroupstringrequiredidstringrequiredinput_schemaobjectrequiredlatencyobjectrequired2 fields inside
max_secondsintegerrequiredtypical_secondsintegerrequired
modestringrequired"sync""async"namestringrequiredoutput_schemaobject or nullrequiredpersonal_databooleanrequiredpriceobjectrequiredWhat a run costs, before it is made.
5 fields inside
basisstringrequiredper_10_records:creditsis the price ofrecord_block(10) records the tool returns; a run is charged per 10 records returned, rounded up (11 records cost it twice).per_call: a tool that answers with one record,creditsa call.max_creditsis the most a run can be charged."per_10_records""per_call"chargedbooleanrequiredcreditsnumberrequiredmax_creditsnumberrequiredrecord_blockintegerRecords one price buys: 10.
statusstringrequired"enabled""hidden""retired""paused"summarystringrequiredtagsarray of stringrequired
Errors
- 401
No usable credential (auth.unauthorized).
- 403
Not allowed: the workspace (auth.tenant_not_allowed) or the key's scope.
- 404
No such tool, group or run for this workspace (tools.*_not_found).
- 422
Validation Error
- 429
Too many requests (rate_limit.exceeded), runs in flight (tools.too_many_runs) or today's spend (tools.spend_cap_exceeded).
- 501
Tools are not served by this deployment (
not_implemented). - 503
Tools could not be reached (upstream.unavailable), or a tool is switched off (tools.tool_disabled, service.unavailable).
- 504
Tools did not answer in time (upstream.timeout). A run may still finish.
curl "https://api.sproutsdata.ai/tools/v1/tools/amazon/product" \
-H "X-API-Key: $SPROUTS_API_KEY"{
"alternatives": [
"string"
],
"available": false,
"category": "string",
"description": "string",
"example_output": {},
"group": "string",
"id": "string",
"input_schema": {},
"latency": {
"max_seconds": 0,
"typical_seconds": 0
},
"mode": "sync",
"name": "string",
"output_schema": {},
"personal_data": false,
"price": {
"basis": "per_10_records",
"record_block": 0,
"charged": false,
"credits": 0,
"max_credits": 0
},
"status": "enabled",
"summary": "string",
"tags": [
"string"
]
}Quote a run#
POSThttps://api.sproutsdata.ai/tools/v1/tools/{tool_id}/quote
- Scope
- dsp.tools.read
- Cost
- Free
The price of running this tool with this input, before running it. Free, and calls no vendor.
Path parameters
tool_idstringrequiredat most 80 characters
Request bodyJSON, required
inputobject
Response 200application/json
availablebooleanrequiredmax_creditsnumberrequiredpriceobjectrequiredWhat a run costs, before it is made.
5 fields inside
basisstringrequiredper_10_records:creditsis the price ofrecord_block(10) records the tool returns; a run is charged per 10 records returned, rounded up (11 records cost it twice).per_call: a tool that answers with one record,creditsa call.max_creditsis the most a run can be charged."per_10_records""per_call"chargedbooleanrequiredcreditsnumberrequiredmax_creditsnumberrequiredrecord_blockintegerRecords one price buys: 10.
toolstringrequired
Errors
- 401
No usable credential (auth.unauthorized).
- 403
Not allowed: the workspace (auth.tenant_not_allowed) or the key's scope.
- 404
No such tool, group or run for this workspace (tools.*_not_found).
- 410
A retired tool (tools.tool_disabled).
- 413
The body is too large (request.too_large).
- 422
Validation Error
- 429
Too many requests (rate_limit.exceeded), runs in flight (tools.too_many_runs) or today's spend (tools.spend_cap_exceeded).
- 501
Tools are not served by this deployment (
not_implemented). - 503
Tools could not be reached (upstream.unavailable), or a tool is switched off (tools.tool_disabled, service.unavailable).
- 504
Tools did not answer in time (upstream.timeout). A run may still finish.
curl -X POST "https://api.sproutsdata.ai/tools/v1/tools/amazon/product/quote" \
-H "X-API-Key: $SPROUTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"asin": "B0CP9YB3Q4"
}
}'{
"available": false,
"max_credits": 0,
"price": {
"basis": "per_10_records",
"record_block": 0,
"charged": false,
"credits": 0,
"max_credits": 0
},
"tool": "string"
}Tool ids#
A tool's id has two parts, area/name, such as amazon/product. In a path it stays as two segments: GET /tools/v1/tools/amazon/product. Retired, paused and hidden tools still answer by id, so a stored id always resolves to an explanation. A tool that is available: false cannot be run.
Finding a tool#
GET /tools/v1/tools with q ranks tools by how well they fit a need described in plain language; without it, tools come ordered by category, group and name. Read the chosen tool in full for its input_schema, then quote a run: the quote is the most that input can cost, which is what a run holds before it starts. Quoting is free and runs nothing.