Search Events
This endpoint (without params) returns the list of all events visible for the current user; this means all events with
visible = true and also the events with visible = false and subscribed by the current user. The list of events can
be filtered by some params (see the parameters section for more information).
The events will be ordered by end_date.
info
This operation requires authentication only if content_availability community option is false.
HTTP Request
GET /api/v2/event/search/
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| search | query | string | false | A term that will be searched for within the event name and description |
| date_filter | query | string | false | Filter events by date (default: all). Return only events that will be running in the: all (events in the past, present and future), past (events already finished), not_past (events not finished), today, tomorrow, this_week, next_week, this_month |
| follows | query | boolean | false | Return only events my followings (or connections) are subscribed to |
| recurring | query | string | false | Filter by recurring recurring |
| location | query | string | false | Filter by location location |
| limit | query | integer | false | Number of results to return per page |
| offset | query | integer | false | The initial index from which to return the results |
Example Request
- JavaScript
- Bash
const headers = {
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};
fetch('/api/v2/event/search/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
# You can also use wget
curl -X GET /api/v2/event/search/ \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access_token}'
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Response status code | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » count | integer | false | none | Total results count |
| » next | string(uri)¦null | false | none | Next page url |
| » previous | string(uri)¦null | false | none | Previous page url |
| » results | list(Event) | false | none | List of results |