← Back to Home

📖 API Documentation

Complete reference for the Places API Proxy endpoints

🔐 Authentication

Include your API key in every request using one of these methods:

Option 1: Bearer Token (recommended)

Authorization: Bearer YOUR_API_KEY

Option 2: Query Parameter

?key=YOUR_API_KEY

🔌 Endpoints

Base URL: https://places.abhibots.com

Place Details

GET /api/place/details

Get detailed information about a specific place.

ParamRequiredDescription
place_idYesGoogle Place ID
fieldsNoComma-separated fields (name,rating,formatted_phone_number,website,opening_hours,reviews,photos)
languageNoLanguage code (en, hi, etc.)
curl "https://places.abhibots.com/api/place/details?place_id=ChIJN1t_tDeuEmsRUsoyG83frY4&fields=name,rating,formatted_phone_number" \
  -H "Authorization: Bearer YOUR_KEY"

Text Search

GET /api/place/textsearch

Search for places using a text query.

ParamRequiredDescription
queryYesSearch query (e.g., "restaurants in Delhi")
locationNolat,lng (e.g., "28.6139,77.2090")
radiusNoSearch radius in meters
typeNoPlace type filter
curl "https://places.abhibots.com/api/place/textsearch?query=restaurants+in+Delhi" \
  -H "Authorization: Bearer YOUR_KEY"

Nearby Search

GET /api/place/nearbysearch

ParamRequiredDescription
locationYeslat,lng
radiusYesRadius in meters (max 50000)
typeNoPlace type (restaurant, hospital, etc.)
keywordNoKeyword filter

Autocomplete

GET /api/place/autocomplete

ParamRequiredDescription
inputYesText to autocomplete
typesNoType filter (geocode, address, establishment)
componentsNoCountry filter (country:in)

Find Place

GET /api/place/findplacefromtext

ParamRequiredDescription
inputYesPlace name or phone
inputtypeYestextquery or phonenumber
fieldsNoResponse fields

Place Photos

GET /api/place/photo

ParamRequiredDescription
photo_referenceYesPhoto reference from place details
maxwidthYes*Max width in pixels
maxheightYes*Max height (* one of maxwidth/maxheight required)

Geocoding

GET /api/geocode

ParamRequiredDescription
addressYes*Address to geocode
latlngYes*Reverse geocode (* one of address/latlng required)

📊 Rate Limits

TierDailyPer MinutePrice
Free5010₹0
Starter50060₹499/mo
Pro2,000120₹1,499/mo
Business10,000300₹3,999/mo

⚡ Response Headers

HeaderDescription
X-CacheHIT or MISS — whether response was cached
X-Response-TimeServer response time in ms

❌ Error Codes

CodeMeaning
401Missing or invalid API key
403Key disabled or expired
429Rate limit exceeded
502Upstream Google API error
503Service at capacity

💬 Support

Contact @flyingabhi on Telegram for API keys, upgrades, and support.