Search
Search Suggestion
API Documentation
Prompt Engine
Store
- KV
- File
Search
Search Suggestion
Get suggestions for a given query in real time.
GET
/
v1
/
web
/
search
/
suggest
import { JigsawStack } from "jigsawstack";
const jigsawstack = JigsawStack({
apiKey: "your-api-key",
});
const result = await jigsawstack.web.search_suggestion({
query: "Time Square New York",
});
{
"success": true,
"suggestions": [
"time square new york",
"time square new york hotels",
"time square new york live",
"time square new york city",
"time square new york billboard price",
"time square new york weather",
"time square new york map",
"time square new york zip code",
"time square new york restaurants",
"time square new york today",
"time square new york live cam",
"time square new york stores",
"time square new york parking",
"time square new york things to do",
"time square new york time now"
]
}
Query
The search value. The maximum query character length is 200.
Header
Your JigsawStack API key
Response
Indicates whether the call was successful.
import { JigsawStack } from "jigsawstack";
const jigsawstack = JigsawStack({
apiKey: "your-api-key",
});
const result = await jigsawstack.web.search_suggestion({
query: "Time Square New York",
});
{
"success": true,
"suggestions": [
"time square new york",
"time square new york hotels",
"time square new york live",
"time square new york city",
"time square new york billboard price",
"time square new york weather",
"time square new york map",
"time square new york zip code",
"time square new york restaurants",
"time square new york today",
"time square new york live cam",
"time square new york stores",
"time square new york parking",
"time square new york things to do",
"time square new york time now"
]
}
Was this page helpful?
import { JigsawStack } from "jigsawstack";
const jigsawstack = JigsawStack({
apiKey: "your-api-key",
});
const result = await jigsawstack.web.search_suggestion({
query: "Time Square New York",
});
{
"success": true,
"suggestions": [
"time square new york",
"time square new york hotels",
"time square new york live",
"time square new york city",
"time square new york billboard price",
"time square new york weather",
"time square new york map",
"time square new york zip code",
"time square new york restaurants",
"time square new york today",
"time square new york live cam",
"time square new york stores",
"time square new york parking",
"time square new york things to do",
"time square new york time now"
]
}