- Takes: Name
- Passive: the target is not contacted
Searches POIs by one keyword and/or type codes. Provide keywords or types. Without city and with a generic keyword, the response lists cities with match counts instead of POIs.
Query parameters
keywordsOne search keyword (keywords or types is required)
typesPOI type codes or Chinese names, separated by |
cityCity name, citycode or adcode; adcode is recommended
citylimitReturn only data from the given city
offsetRecords per page; the docs advise 25 or fewer
pagePage number
extensionsbase returns basic fields; all adds detail fields
langCodeResult language; multilingual search is an advanced service
Response fields · 13ShowHide
status
1 for success, 0 for failure
info
OK, or the error reason when status is 0
count
Number of results
id
POI ID
name
POI name
type
Type: major;medium;minor category
typecode
Type code
address
Address
location
Coordinates as longitude,latitude
tel
Phone number
pname
Province name
cityname
City name
adname
District name
curl 'https://restapi.amap.com/v3/place/text?key=YOUR_API_KEY'{
"status": "1",
"info": "OK",
"count": "1",
"pois": [
{
"id": "B000000001",
"name": "Example Cafe",
"type": "Food;Cafe;Cafe",
"typecode": "050500",
"address": "1 Example Road",
"location": "116.000000,39.000000",
"tel": "+1 555 0100",
"pname": "Example Province",
"cityname": "Example City",
"adname": "Example District"
}
]
}