/
API
v2.0
v2.1
latest
v2.0
supported until 05/2027
Partner with us
Try Foxentry
Intro
Low Code & No Code
API Reference
Recipes
FAQ
Support
SDKs
?
+100
Intro
Low Code & No Code
API Reference
Recipes
FAQ
Support
SDKs
Try Foxentry
Partner with us
API version
v2.1
v2.0
You are reading the docs for
API v2.0
, an older version.
Go to v2.1
All recipes
Location
POST /location/search
Address autocomplete
Stage
1
/11
01
Authenticate
Firstly you need to properly authenticate. If you do not have your API key. Please sign up at app.foxentry.com/registration
02
Choose the API version
You can choose the API if you need to. If you remove this part, the latest version would be used by default.
03
Specify the type of the search
Specify the type of search you would like to use. Full address search (one input) is used in this example.
04
Specify the searched value
Searched value. It is expected to send a new request with updated value every time the user on your front end makes a change in the input.
05
Use filter criteria if you need so
You can set up filter criteria in order to specify the search results. In this example, we would like to search primarily in locations that are located in the Czech republic but the search should not be limited only to this country. More about that in the filterMode.
06
Use filterMode
You can set "limit" or "prefer". Limit means the results will be limited to the filter criteria. Prefer means the results that meet the criteria will be prefered (higher up) but not limited.
07
Check filterAcceptFormat
If true, the user is able to put down the value with any format (lower/uppercase letters, diacritics, etc.)
08
Check filterAcceptAlternatives
If true, alternative values for filter types would be accepted. For example for City, also CityDistrict and CityDistrictSpecial would be accepted. (Praha, Praha 8, Karlín).
09
Check filterExactMatch
If true, only exact match would be accepted. For example "Prah" would return 0 results, since no city with the exact name exists.
10
Check cityFormat
This option determines in what format is city returned. Minimal = Praha, basic = Praha 8, extended = Praha 8 - Karlín.
11
Optional data about the user
You can include information about your user (his location) in order to make the results order more relevant for him.
‹ Back
Next step ›
Try it live ›
Request
Response
Copy
Copied