I’m a Developer if I can:
- Understand JSON data format
- Happing making RESTful API calls
- Want to use the latlng.io API directly to write my own client or sync data with another system
Step 1: Sign up
You need a LatLng.io account. You’ll need a valid email address for this. You can either signup online here or download the Android or iOS app. Make sure you have taken a note of your username and password.


Step 2: Log In
Full documentation for the latlng.io API can be found here. In this step we are going to be making a http POST request to the API endpoint (If you wish you can actually call this endpoint from the documentation page without writing any code)
https://api.latlng.io/auth/login
Request
The body of the http POST request must contain the following payload. Replace user/password with your own credentials
{
"username": "youremail@yourdomain.com",
"password": "yourpassword"
}
Response
A successful response will return a status code of 200 with a payload similar to the following:
{
"id": "425cf691-e004-44b1-b82a-bd1ae2d1c2c0",
"subType": "SU",
"name": "youremail@yourdomain.com",
"expires": "3000-01-13T09:51:23.000Z",
"ext": {
"i18n": {
"distance_units": "mile"
},
"username": "youremail",
"last_login": "2025-09-20T08:21:50.078Z"
}
}
The http headers will contain a SetCookie directive, the connect.sid must be passed on all subsequent requests
connect.sid=somelongstringofcookie; Path=/;SameSite=none;Secure
Step 3 – Log Out
In this step we are going to be making a http POST request to the API endpoint (If you wish you can actually call this endpoint from the documentation page without writing any code)
https://api.latlng.io/users/logout
Request
The payload of this request will be empty but you must ensure the Cookie from Step 2 is passed in the http header
Response
A successful response will return a status code of 200 with an empty payload. Note that after the logout request, the cookie will be invalidated.