querystringobligatoire
Search term. Supports long natural-language descriptions
https://api.sandbase.ai/v1/api/querit/searchSearch the web with Querit and get ranked results with title, URL, snippet and optional page content chunks for AI grounding.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Search the web with Querit and get ranked results with title, URL, snippet and optional page content chunks for AI grounding.
curl -X POST "https://api.sandbase.ai/v1/api/querit/search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "electric vehicle market share 2026"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search term. Supports long natural-language descriptions |
chunksPerDoc | integer | No | Summary chunks per document. Free / PAYG support up to 1; Enterprise up to 3. Deprecated — still available, but migrate to highlights |
contentMaxChars | integer | No | Optional body-text length limit per result, from 1 to 1,000,000 Unicode code points. Used with needContent: true; omit or send null to return the full available body text without truncation. Default: Full available body |
count | integer | No | Maximum number of results returned. Default: server default (value unspecified). |
filters | object | No | Filter conditions, see below |
highlights | boolean | No | Request relevant fragments from the body text. true extracts against the original query at the length the model judges best; the object form takes query and maxCharacters, see below |
needContent | boolean | No | Whether to return body text. When true, body text lands in each result's sentence field (sentence array) |
Billed at the actual upstream cost of each call (about $0.0048 for the request above). Failed calls are not charged.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
curl -X POST "https://api.sandbase.ai/v1/api/querit/search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "electric vehicle market share 2026",
"needContent": false,
"chunksPerDoc": 1
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
querystringobligatoireSearch term. Supports long natural-language descriptions
chunksPerDocintegerSummary chunks per document. Free / PAYG support up to 1; Enterprise up to 3. Deprecated — still available, but migrate to highlights
Par défaut : 1
contentMaxCharsintegerOptional body-text length limit per result, from 1 to 1,000,000 Unicode code points. Used with needContent: true; omit or send null to return the full available body text without truncation. Default: Full available body text (value unspecified).
countintegerMaximum number of results returned. Default: server default (value unspecified).
filtersobjectFilter conditions, see below
highlightsbooleanRequest relevant fragments from the body text. true extracts against the original query at the length the model judges best; the object form takes query and maxCharacters, see below
needContentbooleanWhether to return body text. When true, body text lands in each result's sentence field (sentence array)
Par défaut : false
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
Querit Web SearchCette API Querit | À partir de $0.0048 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/querit/search avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
À partir de $0.0048 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : query (string). Facultatif : chunksPerDoc (integer), contentMaxChars (integer), count (integer), filters (object), highlights (boolean) et needContent (boolean). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone).
Non. Querit Web Search fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Querit séparément.