local-search
Search for places, businesses, and locations using Google Maps APIs via x402. USE FOR: - Finding businesses by name or type - Searching nearby places - Getting detailed place information (address, hours, reviews) - Finding restaurants, stores, services in an area - Getting business ratings and reviews TRIGGERS: - "find", "search for", "locate", "nearby" - "restaurants near", "hotels in", "stores around" - "business details", "opening hours", "reviews for" - "places in", "what's near", "directions to" Choose partial ($0.02) vs full ($0.05-0.08) based on data needs. IMPORTANT: Never guess endpoint paths. All paths follow the pattern https://enrichx402.com/api/{provider}/{action}. Use exact URLs from the Quick Reference table below or call x402.discover_api_endpoints first.
NPX Install
npx skill4agent add merit-systems/x402scan-skills local-searchTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Local Search with Google Maps
STOP — Read before making any API call. enrichx402.com endpoints are not the same as each provider's native API. All paths use the format. You MUST either:https://enrichx402.com/api/{provider}/{action}
- Copy exact URLs from the Quick Reference table below, OR
- Run
to get the correct pathsx402.discover_api_endpoints(url="https://enrichx402.com")Guessing paths will fail with 405 errors (wrong path) or 404 errors (missingprefix)./api/
Setup
Quick Reference
| Task | Endpoint | Price | Data Included |
|---|---|---|---|
| Text search (basic) | | $0.02 | Name, address, rating |
| Text search (full) | | $0.08 | + reviews, atmosphere |
| Nearby search (basic) | | $0.02 | Name, address, rating |
| Nearby search (full) | | $0.08 | + reviews, atmosphere |
| Place details (basic) | | $0.02 | Core info |
| Place details (full) | | $0.05 | All fields |
Text Search
x402.fetch(
url="https://enrichx402.com/api/google-maps/text-search/partial",
method="POST",
body={
"textQuery": "coffee shops in downtown Seattle"
}
)- - Search query (required)
textQuery - - Prefer results near a location
locationBias - - Minimum rating filter (1-5)
minRating - - Only open places
openNow - - Limit results (default: 20)
maxResultCount
Nearby Search
x402.fetch(
url="https://enrichx402.com/api/google-maps/nearby-search/partial",
method="POST",
body={
"locationRestriction": {
"circle": {
"center": {
"latitude": 47.6062,
"longitude": -122.3321
},
"radius": 1000
}
},
"includedTypes": ["restaurant", "cafe"]
}
)- - Circle with center (lat/lng) and radius in meters
locationRestriction - - Place types to include
includedTypes - - Place types to exclude
excludedTypes - - Minimum rating
minRating - - Only open places
openNow
Place Details
x402.fetch(
url="https://enrichx402.com/api/google-maps/place-details/partial",
method="POST",
body={
"placeId": "ChIJN1t_tDeuEmsRUsoyG83frY4"
}
)- - Google Place ID (from search results)
placeId
Common Place Types
includedTypesexcludedTypesWorkflows
Find Businesses in Area
- (Optional) Check balance:
x402.get_wallet_info - Discover endpoints (required before first fetch):
x402.discover_api_endpoints(url="https://enrichx402.com") - Text search (partial) to find options
- Review results and select top picks
- Get full details for selected places
x402.fetch(
url="https://enrichx402.com/api/google-maps/text-search/partial",
method="POST",
body={"textQuery": "Italian restaurants downtown Portland"}
)x402.fetch(
url="https://enrichx402.com/api/google-maps/place-details/full",
method="POST",
body={"placeId": "ChIJ..."}
)Nearby Search with Filters
- Get coordinates for the area
- Search with location restriction and filters
- Present sorted results
x402.fetch(
url="https://enrichx402.com/api/google-maps/nearby-search/partial",
method="POST",
body={
"locationRestriction": {
"circle": {
"center": {"latitude": 40.7128, "longitude": -74.0060},
"radius": 500
}
},
"includedTypes": ["restaurant"],
"minRating": 4.0,
"openNow": true
}
)Compare Places with Reviews
- Search to get place IDs
- Fetch full details for each candidate
- Compare ratings, reviews, and amenities
x402.fetch(
url="https://enrichx402.com/api/google-maps/place-details/full",
method="POST",
body={"placeId": "place_id_here"}
)Cost Optimization
Use Partial Tier When:
- Just need name, address, basic info
- Browsing/discovering options
- Initial search before drilling down
Use Full Tier When:
- Need reviews/ratings details
- Need atmosphere info (accessibility, etc.)
- Final decision-making
Efficient Patterns
-
Search partial, detail full:
- Text search (partial) to find places
- Place details (full) for the one you care about
-
Batch searches:
- Combine filters to reduce calls
- Use to limit results
maxResultCount
-
Cache place IDs:
- Place IDs are stable
- Re-fetch details only when needed
Response Data
Partial Tier Fields
- - Place name
name - - Full address
formattedAddress - - Lat/lng coordinates
location - - Average rating (1-5)
rating - - Number of ratings
userRatingCount - - Place type categories
types - - OPERATIONAL, CLOSED, etc.
businessStatus - - Hours of operation
regularOpeningHours - - Phone number
nationalPhoneNumber - - Website URL
websiteUri
Full Tier Additional Fields
- - User reviews with text and ratings
reviews - - $ to $$$$
priceLevel - - Wheelchair accessible, etc.
accessibilityOptions - - Parking availability
parkingOptions - - Accepted payment methods
paymentOptions - - Photo references
photos