Skip to content

Returns a list of baskets close to a given location.​

GET
/api/baskets/nearby

If no valid location is given, the user's home location is used. If the user has no home location, lat and lon paramters are required.
Baskets created by the current user are excluded.

Authorizations​

api_key

Requests manipulating data need to supply a CSRF token

TypeAPI Key (header: X-CSRF-Token)

Parameters​

Query Parameters

lat
Typenumber
Format"float"
lon
Typenumber
Format"float"
distance

Distance in kilometers.

Typeinteger
Default30
Maximum50
Minimum1

Responses​

Success

application/json
JSON
[
{
"id": 0,
"description": "string",
"picture": "string",
"until": "string",
"distanceInKm": 0,
"creator": {
"id": 342528,
"name": "Franzi",
"avatar": "99d1fb45-9748-3510-ac02-87b46c40048c",
"isSleeping": true
}
}
]

Playground​

Authorization
Variables
Key
Value

Samples​

cURL
JavaScript
PHP
Python