GET
/
v1
/
web
/
search
/
suggest
import { JigsawStack } from "jigsawstack";

const jigsaw = JigsawStack({ apiKey: "your-api-key" });

const response = await jigsaw.web.search_suggestions({
  "query": "What is the capital"
})
{
  "success": true,
  "suggestions": [
        "what is the capital of singapore",
        "what is the capital of australia",
        "what is the capital of dubai",
        "what is the capital of canada",
        "what is the capital of japan",
        "what is the capital of vietnam",
        "what is the capital of china",
        "what is the capital of india",
        "what is the capital of germany",
        "what is the capital of malaysia",
        "what is the capital of italy",
        "what is the capital of new zealand",
        "what is the capital of switzerland",
        "what is the capital of brazil",
        "what is the capital of thailand"
  ]
}

Query

query
string
required

The search value. The maximum query character length is 200.

x-api-key
string
required

Your JigsawStack API key

Response

success
boolean

Indicates whether the call was successful.

import { JigsawStack } from "jigsawstack";

const jigsaw = JigsawStack({ apiKey: "your-api-key" });

const response = await jigsaw.web.search_suggestions({
  "query": "What is the capital"
})
{
  "success": true,
  "suggestions": [
        "what is the capital of singapore",
        "what is the capital of australia",
        "what is the capital of dubai",
        "what is the capital of canada",
        "what is the capital of japan",
        "what is the capital of vietnam",
        "what is the capital of china",
        "what is the capital of india",
        "what is the capital of germany",
        "what is the capital of malaysia",
        "what is the capital of italy",
        "what is the capital of new zealand",
        "what is the capital of switzerland",
        "what is the capital of brazil",
        "what is the capital of thailand"
  ]
}