Skip to main content
GET
/
api
/
locations
Get locations with finds
curl --request GET \
  --url https://serengo.zias.be/api/locations \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "latitude": 123,
    "longitude": 123,
    "name": "<string>",
    "finds": [
      {
        "id": "<string>",
        "title": "<string>",
        "description": "<string>",
        "category": "<string>",
        "isPublic": true,
        "locationId": "<string>",
        "userId": "<string>",
        "media": [
          {
            "id": "<string>",
            "type": "image",
            "url": "<string>",
            "thumbnailUrl": "<string>"
          }
        ],
        "createdAt": "2023-11-07T05:31:56Z",
        "rating": 123,
        "likeCount": 123,
        "commentCount": 123,
        "isLiked": true
      }
    ]
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

lat
number

Latitude for radius search

lng
number

Longitude for radius search

radius
integer
default:50

Search radius in km

includePrivate
boolean

Include private finds

includeFriends
boolean

Include friends' private finds

order
enum<string>
default:desc

Sort order

Available options:
desc,
asc

Response

200 - application/json

Locations with finds

id
string
latitude
number
longitude
number
name
string | null
finds
object[]