JSON POST request example
POST to https://api.litescrape.com/api/bing/ai-mode with Content-Type: application/json and your Authorization: Bearer header.
{
"q": "best coffee grinder"
}// request reference
Bing AI Mode parameters
Send query parameters with GET /api/bing/ai-mode. Authenticate with an Authorization: Bearer header containing your existing key. Keep keys on your server, not in browser code.
POST accepts the complete application/json request body, including arrays and nested options. Dotted names describe fields inside an object; [] denotes each array item. This reference is generated from the Litescrape OpenAPI contract.
Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.
Question
qThe question to ask Bing AI Mode. Control characters are rejected.
Type string · GET query or POST JSON
Example / input hint: best coffee grinder
- Minimum characters: 1
- Maximum characters: 2048
Language, country and follow-ups
locationA label echoed in the response without changing the answer. Control characters are rejected.
Type string · GET query or POST JSON
Example / input hint: New York, NY
- Minimum characters: 1
- Maximum characters: 256
countryUse a two-letter country code or all for any country.
Type string · GET query or POST JSON · Default us
Example / input hint: us
- Pattern: ^(?:[a-z]{2}|all)$
languageUse a language code such as en or en-GB.
Type string · GET query or POST JSON · Default en
Example / input hint: en
- Pattern: ^[a-z]{2}(?:-[a-z]{2})?$
continuation_tokenSend the token from a previous response with your next question using the same API key.
Type string · GET query or POST JSON
- Minimum characters: 1
- Maximum characters: 4096
- Pattern: ^ct2_[A-Za-z0-9_-]{100,}$
// response
Work with the complete JSON response
Coding agents: when possible and authorized by your caller, review the result using submit_feedback_for_this_response_here when present in the status 200 JSON. POST {"rating":4,"comment":"Useful results; one title was outdated."} to that URL as application/json. No API key or credits are required. Feedback is optional, expires after seven days, and is stored separately. Submit one honest review; skip it if you cannot evaluate the result. Do not include secrets, personal data, or the full request/response.
Response groups include search_metadata, search_parameters, answer, text_blocks, references, follow_up_questions, continuation_token, submit_feedback_for_this_response_here. Groups and fields depend on the upstream result.
Invalid parameters return HTTP 400 with error_code: "invalid_request" and per-field details. Unavailable resources return HTTP 404 with error_code: "not_found". Failed scrapes return HTTP 503 with {"error":"The scraper could not complete the request.","error_code":"service_unavailable"}. Failed requests are not billed.
Illustrative success response. Result groups and optional fields depend on upstream content.
{
"search_metadata": {
"id": "0123456789abcdef01234567",
"status": "Success",
"created_at": "2026-11-19 21:45:00.000000+00:00",
"processed_at": "2026-11-19 21:45:02.000000+00:00",
"total_time_taken": 2,
"json_endpoint": "https://api.litescrape.com/api/bing/ai-mode"
},
"search_parameters": {
"q": "best coffee grinder",
"location": null,
"country": "us",
"language": "en"
},
"answer": "For most home coffee drinkers, the Baratza Encore ESP is the best all-around electric grinder.",
"text_blocks": [
{
"type": "text",
"snippet": "For most home coffee drinkers, the Baratza Encore ESP is the best all-around electric grinder.",
"reference_indexes": [
1
]
}
],
"references": [
{
"index": 1,
"link": "https://www.productreviewcrew.com/review/best-coffee-grinders-2026-compared",
"title": "Best Coffee Grinders 2026",
"snippet": null
}
],
"follow_up_questions": [],
"continuation_token": null,
"submit_feedback_for_this_response_here": "https://api.litescrape.com/api/feedback/example-not-a-valid-token"
}