Search places
curl --request POST \
--url https://app.dumplingai.com/api/v1/search-places \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "coffee shop",
"location": "Austin, TX"
}
'import requests
url = "https://app.dumplingai.com/api/v1/search-places"
payload = {
"query": "coffee shop",
"location": "Austin, TX"
}
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({query: 'coffee shop', location: 'Austin, TX'})
};
fetch('https://app.dumplingai.com/api/v1/search-places', 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://app.dumplingai.com/api/v1/search-places",
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([
'query' => 'coffee shop',
'location' => 'Austin, TX'
]),
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://app.dumplingai.com/api/v1/search-places"
payload := strings.NewReader("{\n \"query\": \"coffee shop\",\n \"location\": \"Austin, TX\"\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://app.dumplingai.com/api/v1/search-places")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"coffee shop\",\n \"location\": \"Austin, TX\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.dumplingai.com/api/v1/search-places")
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 \"query\": \"coffee shop\",\n \"location\": \"Austin, TX\"\n}"
response = http.request(request)
puts response.read_body{
"searchParameters": {
"q": "<string>",
"type": "<string>",
"engine": "<string>",
"gl": "<string>",
"location": "<string>"
},
"places": [
{
"position": 123,
"title": "<string>",
"address": "<string>",
"latitude": 123,
"longitude": 123,
"cid": "<string>",
"website": "<string>",
"rating": 123,
"ratingCount": 123,
"category": "<string>",
"phoneNumber": "<string>"
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}Data APIs
Search Places
Search for places, businesses, and points of interest with structured metadata.
POST
/
api
/
v1
/
search-places
Search places
curl --request POST \
--url https://app.dumplingai.com/api/v1/search-places \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "coffee shop",
"location": "Austin, TX"
}
'import requests
url = "https://app.dumplingai.com/api/v1/search-places"
payload = {
"query": "coffee shop",
"location": "Austin, TX"
}
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({query: 'coffee shop', location: 'Austin, TX'})
};
fetch('https://app.dumplingai.com/api/v1/search-places', 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://app.dumplingai.com/api/v1/search-places",
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([
'query' => 'coffee shop',
'location' => 'Austin, TX'
]),
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://app.dumplingai.com/api/v1/search-places"
payload := strings.NewReader("{\n \"query\": \"coffee shop\",\n \"location\": \"Austin, TX\"\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://app.dumplingai.com/api/v1/search-places")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"coffee shop\",\n \"location\": \"Austin, TX\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.dumplingai.com/api/v1/search-places")
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 \"query\": \"coffee shop\",\n \"location\": \"Austin, TX\"\n}"
response = http.request(request)
puts response.read_body{
"searchParameters": {
"q": "<string>",
"type": "<string>",
"engine": "<string>",
"gl": "<string>",
"location": "<string>"
},
"places": [
{
"position": 123,
"title": "<string>",
"address": "<string>",
"latitude": 123,
"longitude": 123,
"cid": "<string>",
"website": "<string>",
"rating": 123,
"ratingCount": 123,
"category": "<string>",
"phoneNumber": "<string>"
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}Description
This endpoint performs a Google Places search using the provided query and optional parameters. It returns information about places matching the search criteria.Endpoint
POST https://app.dumplingai.com/api/v1/search-places
Headers
- Content-Type:
application/json - Authorization: Bearer
<API_KEY>(required)
Request Body
{
"query": "string", // Required. The search query for Google Places.
"country": "string", // Optional. Country code for location bias (e.g., "US" for United States).
"location": "string", // Optional. Specific location to focus the search (e.g., "New York, NY").
"language": "string", // Optional. Language code for the search results (e.g., "en" for English).
"page": "number" // Optional. Page number for paginated results.
}
Responses
Success (200)
Returns the search results from Google Places.{
"searchParameters": {
"q": "string",
"gl": "string", // Optional. Country code if provided.
"type": "string",
"location": "string", // Optional. Location if provided.
"engine": "string"
},
"places": [
{
"position": "number",
"title": "string",
"address": "string",
"latitude": "number",
"longitude": "number",
"website": "string", // Optional
"cid": "string",
"rating": "number", // Optional
"ratingCount": "number", // Optional
"category": "string", // Optional
"phoneNumber": "string" // Optional
}
]
}
- Content-Type:
application/json - X-RateLimit-Limit: The rate limit for the user.
- X-RateLimit-Remaining: The remaining number of requests for the user.
Bad Request (400)
Returned if the request is invalid.{
"error": "query parameter is required"
}
Unauthorized (401)
Returned if the API key is invalid or missing.{
"error": "Invalid or missing Authorization header"
}
Internal Server Error (500)
Returned if there’s an error during the search process.{
"error": "Failed to perform places search: [error message]"
}
Example Request
curl -X POST https://app.dumplingai.com/api/v1/search-places \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"query": "pizza restaurants",
"country": "US",
"location": "Chicago, IL",
"language": "en"
}'
Notes
- This endpoint uses 30 credits per page of results.
- The
countryparameter should be a two-letter country code (e.g., “US” for United States). - The
locationparameter can be used to focus the search on a specific area. You can find a list of supported locations at GET:/api/v1/google-locations - The
languageparameter can be used to specify the desired language for the search results. - Usage is recorded with detailed parameters for each request.
- Events may be logged for analytics purposes if enabled.
- Pagination details (
pageparameter) are recorded but do not affect the API call to the search service.
Rate Limiting
Rate limit headers (X-RateLimit-Limit and X-RateLimit-Remaining) are included in the response to indicate the user’s current rate limit status.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Required range:
x >= 1Optional identifier describing where the API request originated.
Available options:
API, WEB, MAKE_DOT_COM, ZAPIER, N8N, PLAYGROUND, DEFAULT_AUTOMATION, AGENT_PREVIEW, AGENT_LIVE, AUTOPILOT, STUDIO