1. Get Cars Nearby
Curl request
$ curl 'https://api.limosys.com/cars?lat=25.0&lon=-25.0&radius=10.0' -i -X POST \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Authorization: YOUR_API_KEY' \
-H 'Accept: application/json' \
-d '[{"compId":"COMP_ID","systemComp":"SYSTEM_COMP"}]'
HTTP request
POST /cars?lat=25.0&lon=-25.0&radius=10.0 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: YOUR_API_KEY
Accept: application/json
Content-Length: 49
Host: api.limosys.com
[{"compId":"COMP_ID","systemComp":"SYSTEM_COMP"}]
HTTP response
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, DELETE
Access-Control-Max-Age: 3600
Access-Control-Allow-Headers: origin, content-type, accept, authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: Set-Cookie
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 652
[{"id":{"comp":{"compId":"COMP_ID","systemComp":"SYSTEM_COMP"},"carId":"000001"},"make":"Lincoln","model":"Town Car","year":2012,"color":"Black","carClass":"SD","coords":[{"lat":25.0,"lon":-25.0,"dtm":1717074830566}]},{"id":{"comp":{"compId":"COMP_ID","systemComp":"SYSTEM_COMP"},"carId":"000002"},"make":"Lincoln","model":"Town Car","year":2012,"color":"Black","carClass":"SD","coords":[{"lat":25.0,"lon":-25.0,"dtm":1717074830566}]},{"id":{"comp":{"compId":"COMP_ID","systemComp":"SYSTEM_COMP"},"carId":"000003"},"make":"Lincoln","model":"Town Car","year":2012,"color":"Black","carClass":"SD","coords":[{"lat":25.0,"lon":-25.0,"dtm":1717074830566}]}]
HTTPie request
$ echo '[{"compId":"COMP_ID","systemComp":"SYSTEM_COMP"}]' | http POST 'https://api.limosys.com/cars?lat=25.0&lon=-25.0&radius=10.0' \
'Content-Type:application/json;charset=UTF-8' \
'Authorization:YOUR_API_KEY' \
'Accept:application/json'
Request body
[{"compId":"COMP_ID","systemComp":"SYSTEM_COMP"}]
Request fields
Path | Type | Description |
---|---|---|
|
|
Array of affiliate IDs to filter results (Optional) |
|
|
System Company |
|
|
Company ID - leave null for all (Optional) |
Request parameters
Parameter | Description |
---|---|
|
Search coordinate Latitude |
|
Search coordinate Longitude |
|
(optional) Search radius, miles (default: 10) |
|
(optional) Results limit (default: 10) |
|
(optional) Search car class only |
|
(optional) Search group of companies only (see /groups API) |
Response body
[{"id":{"comp":{"compId":"COMP_ID","systemComp":"SYSTEM_COMP"},"carId":"000001"},"make":"Lincoln","model":"Town Car","year":2012,"color":"Black","carClass":"SD","coords":[{"lat":25.0,"lon":-25.0,"dtm":1717074830566}]},{"id":{"comp":{"compId":"COMP_ID","systemComp":"SYSTEM_COMP"},"carId":"000002"},"make":"Lincoln","model":"Town Car","year":2012,"color":"Black","carClass":"SD","coords":[{"lat":25.0,"lon":-25.0,"dtm":1717074830566}]},{"id":{"comp":{"compId":"COMP_ID","systemComp":"SYSTEM_COMP"},"carId":"000003"},"make":"Lincoln","model":"Town Car","year":2012,"color":"Black","carClass":"SD","coords":[{"lat":25.0,"lon":-25.0,"dtm":1717074830566}]}]
Response fields
Path | Type | Description |
---|---|---|
|
|
Array of cars nearby of given coordinate |
|
|
Internal Car ID |
|
|
System Company of the car |
|
|
Company ID of the car |
|
|
Make of the car |
|
|
Model of the car |
|
|
Year of the car |
|
|
Car class of the car (e.g. 'SD' - sedan) |
|
|
Color of the car |
|
|
Cached coordinates |
2. Get Affiliate Group (for cars)
Curl request
$ curl 'https://api.limosys.com/group/Group%20ID' -i -X GET \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Authorization: YOUR_API_KEY' \
-H 'Accept: application/json'
HTTP request
GET /group/Group%20ID HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: YOUR_API_KEY
Accept: application/json
Host: api.limosys.com
HTTP response
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, DELETE
Access-Control-Max-Age: 3600
Access-Control-Allow-Headers: origin, content-type, accept, authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: Set-Cookie
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 177
{"id":"Group ID","comps":[{"compId":"SYSTEM_COMP1","systemComp":"COMP_ID1"},{"compId":"SYSTEM_COMP2","systemComp":"COMP_ID2"},{"compId":"SYSTEM_COMP3","systemComp":"COMP_ID3"}]}
HTTPie request
$ http GET 'https://api.limosys.com/group/Group%20ID' \
'Content-Type:application/json;charset=UTF-8' \
'Authorization:YOUR_API_KEY' \
'Accept:application/json'
Path parameters
Parameter | Description |
---|---|
|
Group ID |
Request body
Response body
{"id":"Group ID","comps":[{"compId":"SYSTEM_COMP1","systemComp":"COMP_ID1"},{"compId":"SYSTEM_COMP2","systemComp":"COMP_ID2"},{"compId":"SYSTEM_COMP3","systemComp":"COMP_ID3"}]}
3. Save Affiliate Group (for cars)
Curl request
$ curl 'https://api.limosys.com/group/Group%20ID' -i -X PUT \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Authorization: YOUR_API_KEY' \
-H 'Accept: application/json' \
-d '[{"compId":"SYSTEM_COMP1","systemComp":"COMP_ID1"},{"compId":"SYSTEM_COMP2","systemComp":"COMP_ID2"},{"compId":"SYSTEM_COMP3","systemComp":"COMP_ID3"}]'
HTTP request
PUT /group/Group%20ID HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: YOUR_API_KEY
Accept: application/json
Content-Length: 151
Host: api.limosys.com
[{"compId":"SYSTEM_COMP1","systemComp":"COMP_ID1"},{"compId":"SYSTEM_COMP2","systemComp":"COMP_ID2"},{"compId":"SYSTEM_COMP3","systemComp":"COMP_ID3"}]
HTTP response
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, DELETE
Access-Control-Max-Age: 3600
Access-Control-Allow-Headers: origin, content-type, accept, authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: Set-Cookie
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
HTTPie request
$ echo '[{"compId":"SYSTEM_COMP1","systemComp":"COMP_ID1"},{"compId":"SYSTEM_COMP2","systemComp":"COMP_ID2"},{"compId":"SYSTEM_COMP3","systemComp":"COMP_ID3"}]' | http PUT 'https://api.limosys.com/group/Group%20ID' \
'Content-Type:application/json;charset=UTF-8' \
'Authorization:YOUR_API_KEY' \
'Accept:application/json'
Path parameters
Parameter | Description |
---|---|
|
Group ID |
Request body
[{"compId":"SYSTEM_COMP1","systemComp":"COMP_ID1"},{"compId":"SYSTEM_COMP2","systemComp":"COMP_ID2"},{"compId":"SYSTEM_COMP3","systemComp":"COMP_ID3"}]
Request fields
Path | Type | Description |
---|---|---|
|
|
Array of Affiliate IDs (COMP_ID and SYSTEM_COMP) |
|
|
System company |
|
|
Company ID |
Response body