Google maps search
curl --request POST \
--url https://api.aisa.one/apis/v1/serpapi/google-maps-search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"q": "pizza in New York"
}
'import requests
url = "https://api.aisa.one/apis/v1/serpapi/google-maps-search"
payload = { "q": "pizza in New York" }
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({q: 'pizza in New York'})
};
fetch('https://api.aisa.one/apis/v1/serpapi/google-maps-search', 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.aisa.one/apis/v1/serpapi/google-maps-search",
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([
'q' => 'pizza in New York'
]),
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.aisa.one/apis/v1/serpapi/google-maps-search"
payload := strings.NewReader("{\n \"q\": \"pizza in New York\"\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.aisa.one/apis/v1/serpapi/google-maps-search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"q\": \"pizza in New York\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/serpapi/google-maps-search")
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 \"q\": \"pizza in New York\"\n}"
response = http.request(request)
puts response.read_body{
"results": {
"search_information": {
"local_results_state": "<string>",
"query_displayed": "<string>"
},
"search_metadata": {
"created_at": "<string>",
"google_maps_url": "<string>",
"id": "<string>",
"json_endpoint": "<string>",
"processed_at": "<string>",
"status": "<string>",
"total_time_taken": 123,
"error": "<string>",
"prettify_html_file": "<string>",
"raw_html_file": "<string>"
},
"search_parameters": {
"engine": "<string>",
"type": "<string>",
"google_domain": "<string>",
"hl": "<string>",
"ll": "<string>",
"q": "<string>",
"start": 123
},
"ads": [
{
"position": 123,
"title": "<string>",
"address": "<string>",
"amenities": [
"<string>"
],
"data_cid": "<string>",
"data_id": "<string>",
"description": "<string>",
"extensions": [
{}
],
"extracted_price": 123,
"gps_coordinates": {
"latitude": 123,
"longitude": 123
},
"hours": "<string>",
"open_state": "<string>",
"phone": "<string>",
"photos_link": "<string>",
"place_id": "<string>",
"place_id_search": "<string>",
"price": "<string>",
"provider_id": "<string>",
"rating": 123,
"reviews": 123,
"reviews_link": "<string>",
"serpapi_thumbnail": "<string>",
"thumbnail": "<string>",
"type": "<string>",
"type_id": "<string>",
"type_ids": [
"<string>"
],
"types": [
"<string>"
],
"website": "<string>"
}
],
"error": "<string>",
"local_results": [
{
"place_id": "<string>",
"position": 123,
"title": "<string>",
"address": "<string>",
"amenities": [
"<string>"
],
"data_cid": "<string>",
"data_id": "<string>",
"description": "<string>",
"extensions": [
{}
],
"extracted_price": 123,
"gps_coordinates": {
"latitude": 123,
"longitude": 123
},
"hours": "<string>",
"open_state": "<string>",
"operating_hours": {},
"order_online": "<string>",
"phone": "<string>",
"photos_link": "<string>",
"place_id_search": "<string>",
"price": "<string>",
"provider_id": "<string>",
"rating": 123,
"reserve_a_table": "<string>",
"reviews": 123,
"reviews_link": "<string>",
"serpapi_thumbnail": "<string>",
"service_options": {
"curbside_pickup": true,
"delivery": true,
"dine_in": true,
"no_contact_delivery": true,
"takeout": true
},
"thumbnail": "<string>",
"type": "<string>",
"type_id": "<string>",
"type_ids": [
"<string>"
],
"types": [
"<string>"
],
"unsupported_extensions": [
{}
],
"user_review": "<string>",
"website": "<string>"
}
],
"serpapi_pagination": {
"next": "<string>",
"next_link": "<string>"
}
}
}SerpApi
Google maps search
Google maps search
POST
https://api.aisa.one
/
apis
/
v1
/
serpapi
/
google-maps-search
Google maps search
curl --request POST \
--url https://api.aisa.one/apis/v1/serpapi/google-maps-search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"q": "pizza in New York"
}
'import requests
url = "https://api.aisa.one/apis/v1/serpapi/google-maps-search"
payload = { "q": "pizza in New York" }
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({q: 'pizza in New York'})
};
fetch('https://api.aisa.one/apis/v1/serpapi/google-maps-search', 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.aisa.one/apis/v1/serpapi/google-maps-search",
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([
'q' => 'pizza in New York'
]),
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.aisa.one/apis/v1/serpapi/google-maps-search"
payload := strings.NewReader("{\n \"q\": \"pizza in New York\"\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.aisa.one/apis/v1/serpapi/google-maps-search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"q\": \"pizza in New York\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/serpapi/google-maps-search")
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 \"q\": \"pizza in New York\"\n}"
response = http.request(request)
puts response.read_body{
"results": {
"search_information": {
"local_results_state": "<string>",
"query_displayed": "<string>"
},
"search_metadata": {
"created_at": "<string>",
"google_maps_url": "<string>",
"id": "<string>",
"json_endpoint": "<string>",
"processed_at": "<string>",
"status": "<string>",
"total_time_taken": 123,
"error": "<string>",
"prettify_html_file": "<string>",
"raw_html_file": "<string>"
},
"search_parameters": {
"engine": "<string>",
"type": "<string>",
"google_domain": "<string>",
"hl": "<string>",
"ll": "<string>",
"q": "<string>",
"start": 123
},
"ads": [
{
"position": 123,
"title": "<string>",
"address": "<string>",
"amenities": [
"<string>"
],
"data_cid": "<string>",
"data_id": "<string>",
"description": "<string>",
"extensions": [
{}
],
"extracted_price": 123,
"gps_coordinates": {
"latitude": 123,
"longitude": 123
},
"hours": "<string>",
"open_state": "<string>",
"phone": "<string>",
"photos_link": "<string>",
"place_id": "<string>",
"place_id_search": "<string>",
"price": "<string>",
"provider_id": "<string>",
"rating": 123,
"reviews": 123,
"reviews_link": "<string>",
"serpapi_thumbnail": "<string>",
"thumbnail": "<string>",
"type": "<string>",
"type_id": "<string>",
"type_ids": [
"<string>"
],
"types": [
"<string>"
],
"website": "<string>"
}
],
"error": "<string>",
"local_results": [
{
"place_id": "<string>",
"position": 123,
"title": "<string>",
"address": "<string>",
"amenities": [
"<string>"
],
"data_cid": "<string>",
"data_id": "<string>",
"description": "<string>",
"extensions": [
{}
],
"extracted_price": 123,
"gps_coordinates": {
"latitude": 123,
"longitude": 123
},
"hours": "<string>",
"open_state": "<string>",
"operating_hours": {},
"order_online": "<string>",
"phone": "<string>",
"photos_link": "<string>",
"place_id_search": "<string>",
"price": "<string>",
"provider_id": "<string>",
"rating": 123,
"reserve_a_table": "<string>",
"reviews": 123,
"reviews_link": "<string>",
"serpapi_thumbnail": "<string>",
"service_options": {
"curbside_pickup": true,
"delivery": true,
"dine_in": true,
"no_contact_delivery": true,
"takeout": true
},
"thumbnail": "<string>",
"type": "<string>",
"type_id": "<string>",
"type_ids": [
"<string>"
],
"types": [
"<string>"
],
"unsupported_extensions": [
{}
],
"user_review": "<string>",
"website": "<string>"
}
],
"serpapi_pagination": {
"next": "<string>",
"next_link": "<string>"
}
}
}请求规范
- 方法与路径: POST /apis/v1/serpapi/google-maps-search
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/serpapi/google-maps-search
{
"operationId": "serpapi.google-maps-search",
"method": "POST",
"path": "/apis/v1/serpapi/google-maps-search",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"ll": {
"description": "GPS coordinates for the search, formatted as '@latitude,longitude,zoom_level'. Required when using pagination (start parameter). If unspecified and start is not provided, search may be less geographically specific or use a default location. Results are strictly viewport-bound to the area defined by the coordinates and zoom level; adjust coordinates and paginate via `start` to cover adjacent areas.",
"examples": [
"@40.7455096,-74.0083012,14z",
"@34.052235,-118.243683,12z"
],
"type": "string"
},
"q": {
"description": "Search query for Google Maps (e.g., 'coffee shops', 'restaurants near Central Park').",
"examples": [
"pizza in New York",
"hotels near LAX"
],
"type": "string"
},
"start": {
"description": "Starting result index for pagination, used to get subsequent pages of results. When start is provided, ll parameter becomes required. For the first page, omit start (or use start=0 only if ll is also provided).",
"examples": [
0,
10,
20
],
"type": "integer"
}
},
"required": [
"q"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按实际用量收费。 默认请求预估费用:$0.0253 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
application/json
GPS coordinates for the search, formatted as '@latitude,longitude,zoom_level'. Required when using pagination (start parameter). If unspecified and start is not provided, search may be less geographically specific or use a default location. Results are strictly viewport-bound to the area defined by the coordinates and zoom level; adjust coordinates and paginate via start to cover adjacent areas.
示例:
"@40.7455096,-74.0083012,14z"
"@34.052235,-118.243683,12z"