API Documentation
Web Scrape
Web Search
Prompt Engine
Speech to Text
File Store
Web Search
Search Suggestion
Get suggestions for a given query in real time.
GET
/
v1
/
web
/
search
/
suggest
Copy
import { JigsawStack } from "jigsawstack";
const jigsaw = JigsawStack({ apiKey: "your-api-key" });
const response = await jigsaw.web.search_suggestions({
"query": "What is the capital"
})
Copy
{
"success": true,
"suggestions": [
"what is the capital of california",
"what is the capital of australia",
"what is the capital of canada",
"what is the capital of the united states",
"what is the capital of england",
"what is the capital of texas",
"what is the capital of france",
"what is the capital of florida",
"what is the capital of new york",
"what is the capital of italy",
"what is the capital of japan",
"what is the capital of turkey",
"what is the capital of alaska",
"what is the capital of georgia",
"what is the capital of brazil"
],
"_usage": {
"input_tokens": 8,
"output_tokens": 133,
"inference_time_tokens": 332,
"total_tokens": 473
}
}
Query
The search value. The maximum query character length is 200.
Header
Your JigsawStack API key
Response
Indicates whether the call was successful.
Copy
import { JigsawStack } from "jigsawstack";
const jigsaw = JigsawStack({ apiKey: "your-api-key" });
const response = await jigsaw.web.search_suggestions({
"query": "What is the capital"
})
Copy
{
"success": true,
"suggestions": [
"what is the capital of california",
"what is the capital of australia",
"what is the capital of canada",
"what is the capital of the united states",
"what is the capital of england",
"what is the capital of texas",
"what is the capital of france",
"what is the capital of florida",
"what is the capital of new york",
"what is the capital of italy",
"what is the capital of japan",
"what is the capital of turkey",
"what is the capital of alaska",
"what is the capital of georgia",
"what is the capital of brazil"
],
"_usage": {
"input_tokens": 8,
"output_tokens": 133,
"inference_time_tokens": 332,
"total_tokens": 473
}
}
Was this page helpful?
Copy
import { JigsawStack } from "jigsawstack";
const jigsaw = JigsawStack({ apiKey: "your-api-key" });
const response = await jigsaw.web.search_suggestions({
"query": "What is the capital"
})
Copy
{
"success": true,
"suggestions": [
"what is the capital of california",
"what is the capital of australia",
"what is the capital of canada",
"what is the capital of the united states",
"what is the capital of england",
"what is the capital of texas",
"what is the capital of france",
"what is the capital of florida",
"what is the capital of new york",
"what is the capital of italy",
"what is the capital of japan",
"what is the capital of turkey",
"what is the capital of alaska",
"what is the capital of georgia",
"what is the capital of brazil"
],
"_usage": {
"input_tokens": 8,
"output_tokens": 133,
"inference_time_tokens": 332,
"total_tokens": 473
}
}
Assistant
Responses are generated using AI and may contain mistakes.