Create a location grid
Ask one prompt from every point of a grid around a center, up to 9 × 9 points.
POST
/
v1
/
async
/
task
/
grid
Create a location grid
curl --request POST \
--url https://api.querying.ai/v1/async/task/grid \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"taskType": "CHATGPT",
"payload": {
"prompt": "dermatologist near me",
"country": "KR"
},
"grid": {
"center": {
"latitude": 37.4979,
"longitude": 127.0276
},
"size": 5,
"radiusMeters": 2000
},
"idempotencyKey": "gangnam-derm-2026-10-09"
}
'import requests
url = "https://api.querying.ai/v1/async/task/grid"
payload = {
"taskType": "CHATGPT",
"payload": {
"prompt": "dermatologist near me",
"country": "KR"
},
"grid": {
"center": {
"latitude": 37.4979,
"longitude": 127.0276
},
"size": 5,
"radiusMeters": 2000
},
"idempotencyKey": "gangnam-derm-2026-10-09"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
taskType: 'CHATGPT',
payload: {prompt: 'dermatologist near me', country: 'KR'},
grid: {center: {latitude: 37.4979, longitude: 127.0276}, size: 5, radiusMeters: 2000},
idempotencyKey: 'gangnam-derm-2026-10-09'
})
};
fetch('https://api.querying.ai/v1/async/task/grid', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.querying.ai/v1/async/task/grid",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'taskType' => 'CHATGPT',
'payload' => [
'prompt' => 'dermatologist near me',
'country' => 'KR'
],
'grid' => [
'center' => [
'latitude' => 37.4979,
'longitude' => 127.0276
],
'size' => 5,
'radiusMeters' => 2000
],
'idempotencyKey' => 'gangnam-derm-2026-10-09'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.querying.ai/v1/async/task/grid"
payload := strings.NewReader("{\n \"taskType\": \"CHATGPT\",\n \"payload\": {\n \"prompt\": \"dermatologist near me\",\n \"country\": \"KR\"\n },\n \"grid\": {\n \"center\": {\n \"latitude\": 37.4979,\n \"longitude\": 127.0276\n },\n \"size\": 5,\n \"radiusMeters\": 2000\n },\n \"idempotencyKey\": \"gangnam-derm-2026-10-09\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.querying.ai/v1/async/task/grid")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"taskType\": \"CHATGPT\",\n \"payload\": {\n \"prompt\": \"dermatologist near me\",\n \"country\": \"KR\"\n },\n \"grid\": {\n \"center\": {\n \"latitude\": 37.4979,\n \"longitude\": 127.0276\n },\n \"size\": 5,\n \"radiusMeters\": 2000\n },\n \"idempotencyKey\": \"gangnam-derm-2026-10-09\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.querying.ai/v1/async/task/grid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"taskType\": \"CHATGPT\",\n \"payload\": {\n \"prompt\": \"dermatologist near me\",\n \"country\": \"KR\"\n },\n \"grid\": {\n \"center\": {\n \"latitude\": 37.4979,\n \"longitude\": 127.0276\n },\n \"size\": 5,\n \"radiusMeters\": 2000\n },\n \"idempotencyKey\": \"gangnam-derm-2026-10-09\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"grid": {
"id": "<string>",
"center": {
"latitude": 37.4979,
"longitude": 127.0276
},
"size": 123,
"radiusMeters": 123,
"spacingMeters": 123
},
"summary": {
"total": 123,
"succeeded": 123,
"failed": 123
},
"points": [
{
"row": 123,
"col": 123,
"location": {
"latitude": 37.4979,
"longitude": 127.0276
},
"success": true,
"task": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taskType": "CHATGPT",
"status": "QUEUED",
"priority": 123,
"createdAt": "2023-11-07T05:31:56Z",
"idempotencyKey": "<string>"
},
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z"
}
}
]
}
Authorizations
Your API key, sent as Authorization: Bearer <key>.
Body
application/json
An engine that answers for a location.
Available options:
CHATGPT, GEMINI, GOOGLE, AIMODE, GOOGLE_SERP The task payload without location: each point's task gets its own.
Show child attributes
Show child attributes
A square grid of points. Row 0 is the north edge and column 0 the west edge; points sit 2 × radiusMeters ÷ (size − 1) apart.
Show child attributes
Show child attributes
Names the grid. Each point's key is :rc, so sending the same grid again admits only the missing points. Minted when absent and returned as grid.id.
Maximum string length:
200Required range:
1 <= x <= 10Show child attributes
Show child attributes
⌘I
Create a location grid
curl --request POST \
--url https://api.querying.ai/v1/async/task/grid \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"taskType": "CHATGPT",
"payload": {
"prompt": "dermatologist near me",
"country": "KR"
},
"grid": {
"center": {
"latitude": 37.4979,
"longitude": 127.0276
},
"size": 5,
"radiusMeters": 2000
},
"idempotencyKey": "gangnam-derm-2026-10-09"
}
'import requests
url = "https://api.querying.ai/v1/async/task/grid"
payload = {
"taskType": "CHATGPT",
"payload": {
"prompt": "dermatologist near me",
"country": "KR"
},
"grid": {
"center": {
"latitude": 37.4979,
"longitude": 127.0276
},
"size": 5,
"radiusMeters": 2000
},
"idempotencyKey": "gangnam-derm-2026-10-09"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
taskType: 'CHATGPT',
payload: {prompt: 'dermatologist near me', country: 'KR'},
grid: {center: {latitude: 37.4979, longitude: 127.0276}, size: 5, radiusMeters: 2000},
idempotencyKey: 'gangnam-derm-2026-10-09'
})
};
fetch('https://api.querying.ai/v1/async/task/grid', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.querying.ai/v1/async/task/grid",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'taskType' => 'CHATGPT',
'payload' => [
'prompt' => 'dermatologist near me',
'country' => 'KR'
],
'grid' => [
'center' => [
'latitude' => 37.4979,
'longitude' => 127.0276
],
'size' => 5,
'radiusMeters' => 2000
],
'idempotencyKey' => 'gangnam-derm-2026-10-09'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.querying.ai/v1/async/task/grid"
payload := strings.NewReader("{\n \"taskType\": \"CHATGPT\",\n \"payload\": {\n \"prompt\": \"dermatologist near me\",\n \"country\": \"KR\"\n },\n \"grid\": {\n \"center\": {\n \"latitude\": 37.4979,\n \"longitude\": 127.0276\n },\n \"size\": 5,\n \"radiusMeters\": 2000\n },\n \"idempotencyKey\": \"gangnam-derm-2026-10-09\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.querying.ai/v1/async/task/grid")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"taskType\": \"CHATGPT\",\n \"payload\": {\n \"prompt\": \"dermatologist near me\",\n \"country\": \"KR\"\n },\n \"grid\": {\n \"center\": {\n \"latitude\": 37.4979,\n \"longitude\": 127.0276\n },\n \"size\": 5,\n \"radiusMeters\": 2000\n },\n \"idempotencyKey\": \"gangnam-derm-2026-10-09\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.querying.ai/v1/async/task/grid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"taskType\": \"CHATGPT\",\n \"payload\": {\n \"prompt\": \"dermatologist near me\",\n \"country\": \"KR\"\n },\n \"grid\": {\n \"center\": {\n \"latitude\": 37.4979,\n \"longitude\": 127.0276\n },\n \"size\": 5,\n \"radiusMeters\": 2000\n },\n \"idempotencyKey\": \"gangnam-derm-2026-10-09\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"grid": {
"id": "<string>",
"center": {
"latitude": 37.4979,
"longitude": 127.0276
},
"size": 123,
"radiusMeters": 123,
"spacingMeters": 123
},
"summary": {
"total": 123,
"succeeded": 123,
"failed": 123
},
"points": [
{
"row": 123,
"col": 123,
"location": {
"latitude": 37.4979,
"longitude": 127.0276
},
"success": true,
"task": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taskType": "CHATGPT",
"status": "QUEUED",
"priority": 123,
"createdAt": "2023-11-07T05:31:56Z",
"idempotencyKey": "<string>"
},
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z"
}
}
]
}