REST API

As of version 3.8.1, Locatoraid provides a number of REST API endpoints to query and update its locations database.

You can always view the up-to date REST options by clicking the following menu in your WordPress admin: Locatoraid, REST API.

List locations

GET /locatoraid/v3/locations

Arguments

page
per_page
search

Examples

GET https://www.yoursite.com/wp-json/locatoraid/v3/locations

GET https://www.yoursite.com/wp-json/locatoraid/v3/locations?page=2&per_page=100

GET https://www.yoursite.com/wp-json/locatoraid/v3/locations?search=helsinki

Retrieve a location

GET /locatoraid/v3/locations/<id>

Examples

GET https://www.yoursite.com/wp-json/locatoraid/v3/locations/<id>

Delete a location

DELETE /locatoraid/v3/locations/<id>

Headers

X-WP-Locatoraid-AuthCode [required]

Examples

DELETE https://www.yoursite.com/wp-json/locatoraid/v3/locations/<id>

Create a location

POST /locatoraid/v3/locations

Headers

X-WP-Locatoraid-AuthCode [required]

Arguments

name
street1
street2
city
state
zip
country
phone
website
latitude
longitude

Examples

POST https://www.yoursite.com/wp-json/locatoraid/v3/locations

Latest update: Version 3.8.6

Order Now

Get the Pro version for a lot more nice features.

Order Now

Download

Lite version to test on your WordPress website.

⇩ Download