This API provides access to parcel locker locations within the City Express courier network. Developed and maintained by AntSoft, the City Express Parcel Locker API offers a reliable RESTful interface to query all active parcel lockers, retrieve details for a specific locker, or find the nearest lockers based on address, postal code, or city. Responses are delivered in structured JSON, with geographic coordinates in standard GeoJSON format for seamless integration with mapping, logistics, and e‑commerce systems. Whether you are enhancing customer delivery options, building dynamic locker selection workflows, or integrating internal planning tools, this API ensures accurate, real‑world parcel locker data with reliable performance.
Parcel locker location is given in commonly used World Geodetic System 1984 (WGS84, EPSG:4326) as longitude/latitude pair. In API response parcel locker location is represented in GeoJSON format as geometry of type 'Point'.
Reference info:
City Express Parcel Locker API base URL is https://api.antsoft.eu/ce/parcellocker/
{
"id": 1,
"address": "Jurija Gagarina bb",
"city": "BEOGRAD-NOVI BEOGRAD",
"postalCode": 11073,
"description": "OMV, Jurija Gagarina bb, Novi Beograd",
"commonName": "CE-10 OMV - (Blok 70)",
"company": "OMV",
"shortName": "Paketomat_3",
"geometry": {
"type": "Point",
"coordinates": [
20.39094812,
44.80311843
]
},
"workingHours": [
{
"day": "MON",
"from": "0000",
"to": "2359"
},
{
"day": "TUE",
"from": "0000",
"to": "2359"
},
{
"day": "WED",
"from": "0000",
"to": "2359"
},
{
"day": "THU",
"from": "0000",
"to": "2359"
},
{
"day": "FRI",
"from": "0000",
"to": "2359"
},
{
"day": "SAT",
"from": "0000",
"to": "2359"
},
{
"day": "SUN",
"from": "0000",
"to": "2359"
}
]
}
| Endpoint | Parameters description |
|---|---|
|
HTTP GET / HTTP POST Returns a summary list of all active parcel lockers. |
No parameters. |
|
HTTP GET / HTTP POST Returns detailed information about requested parcel locker. |
|
|
HTTP GET / HTTP POST Returns a list of parcel lockers nearest to given location (address/city/postal code), within the distance defined. Results include parcel locker ID, geometry, address info and distance from given location. Distance is returned in meters as well as pre-formatted value. |
|
The API implements both URI path form and query parameter form. For example, last endpoint listed above can be called in the URI path form:
/getNearestParcelLockers/{address}/{postalCode}/{city}/{maxDistance}
/getNearestParcelLockers/{address}/{postalCode}/{city}
or in query parameter form:
/getNearestParcelLockers?address={address}&postalCode={postalCode}&city={city}&maxDistance={maxDistance}
/getNearestParcelLockers?address={address}&postalCode={postalCode}&city={city}
Parameter values must be URL-encoded according to IETF URI Specification (RFC 3986). Caution: The same specification defines slash symbol "/" as a path separator, so in URI path form parameter values cannot contain slash symbols. One example is address "Dragise Petrovica 15/2". With such parameter values URI path form would result in error. If your parameter value contains slash symbols, either replace them by other symbol (minus, underscore) or use query parameter form.
In all list representations there is a node 'entriesCount' that shows the number of result entries provided.
/getNearestParcelLockers:{
"entries": [
{
"parcelLocker": {
"address": "Sarajevska 19",
"city": "BEOGRAD-SAVSKI VENAC",
"postalCode": 11000,
"geometry": {
"type": "Point",
"coordinates": [
20.4563596,
44.80439374
]
},
"id": 27,
"commonName": "CE-28 IDEA Sarajevska - (Beograd)",
"company": "IDEA",
"shortName": "Paketomat_31"
},
"distance": 698,
"distanceFormatted": "698 m"
},
{
"parcelLocker": {
"address": "Ilije Garašanina 26",
"city": "BEOGRAD-PALILULA",
"postalCode": 11060,
"geometry": {
"type": "Point",
"coordinates": [
20.47241424,
44.81011419
]
},
"id": 97,
"commonName": "CE-123 Stadion Tasmajdan - (Palilula)",
"company": "STADION TAŠMAJDAN",
"shortName": "Paketomat_126"
},
"distance": 774,
"distanceFormatted": "774 m"
},
{
"parcelLocker": {
"address": "Cara Dušana 36",
"city": "BEOGRAD-STARI GRAD",
"postalCode": 11158,
"geometry": {
"type": "Point",
"coordinates": [
20.45996128,
44.82333444
]
},
"id": 12,
"commonName": "CE-12 IDEA - (Dorcol)",
"company": "IDEA",
"shortName": null
},
"distance": 1647,
"distanceFormatted": "1,6 km"
},
{
"parcelLocker": {
"address": "Bulevar vojvode Bojovića bb",
"city": "BEOGRAD-STARI GRAD",
"postalCode": 11000,
"geometry": {
"type": "Point",
"coordinates": [
20.4493141,
44.8202359
]
},
"id": 36,
"commonName": "Ep-37 LUKOIL - (Kalemegdan)",
"company": "LUKOIL",
"shortName": null
},
"distance": 1673,
"distanceFormatted": "1,7 km"
}
],
"entriesCount": 4
}
In order to use this API, requests must contain authentication header i.e. user must provide valid authentication token. Please contact AntSoft for getting the authentication token.
| Header-Name | Description |
|---|---|
api-auth-key |
Your authentication token |
Rate limit is API key-dependent. By default, authenticated users are allowed to send up to 1000 requests per minute. If rate limit is exceeded, error response is returned.
Examples are given for plain HTTP, PHP and Java. Of course, request can be sent using other programming/script languages or tools for APIs testing such as Postman.
/getNearestParcelLockers call, URI path formGET /ce/parcellocker/getNearestParcelLockers/Obiliceva/23000/Zrenjanin HTTP/1.1
Host: api.antsoft.eu
api-auth-key: YOUR-AUTHENTICATION-TOKEN
Cache-Control: no-cache
/getNearestParcelLockers call, query parameters form<?php
$uri = 'https://api.antsoft.eu/ce/parcellocker/getNearestParcelLockers';
$query_data = array(
'address' => 'Kralja Milana 28',
'postalCode' => 11000,
'city' => 'Beograd Stari Grad',
'maxDistance' => 1500
);
$stream_context = stream_context_create(array(
'http' => array(
'header' => 'api-auth-key: YOUR-AUTHENTICATION-TOKEN',
'method' => 'GET',
'content' => http_build_query($query_data)
)
));
$response = file_get_contents($uri, false, $stream_context);
$data = json_decode($response);
?>
/getNearestParcelLockers call, URI path formString urlString = "https://api.antsoft.eu/ce/parcellocker/getNearestParcelLockers/Kralja+Milana+28/11000/Beograd+Stari+Grad";
URL url = new URL(urlString);
HttpURLConnection conn = (HttpsURLConnection) url.openConnection();
conn.setRequestProperty("api-auth-key", "YOUR-AUTHENTICATION-TOKEN");
conn.setRequestMethod("POST");
BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream(), StandardCharsets.UTF_8.toString()));
// reader processing ommited
reader.close();
conn.disconnect();
If an error occurs, the API will return one of the following HTTP status codes. If the error is caused by the user the API will try to give a hint with a JSON encoded error message.
{
"status": "403 Forbidden",
"message": "Not authorized. Please provide valid credentials. More info at: https://api.antsoft.eu/documentation/ce/"
}
{
"status": "429 Too Many Requests",
"message": "Requests limit reached. Try again in 6 seconds."
}