← Back to Fiber AI
POST/v1/google-maps-search/start
Start a search on Google Maps. Searches businesses by query across specified areas. Charges 3 credits ($0.06) per business found. Async: poll with /google-maps-search/poll.
Fiber AI·Dynamic pricing
Dynamic pricing
get(body, 'maxResults', 100) * 0.06
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "fiber",
path: "/v1/google-maps-search/start",
body: {
"query": "example",
"strategy": {}
}
});
console.log(output);Body parameters
queryrequired
string
Search query for Google Maps (e.g. 'dominos pizza'). Do not include location.
maxResults
integer
Max results to return (default 100, max 10000)
strategyrequired
object
Search strategy. Use {"strategy":"whole-usa"} or {"strategy":"specific-areas","unionAll":[...]}
name
string
Optional project name for reference
Response
output.searchID
string
chargeInfo.method
string
chargeInfo.message
string