Retrieve all upcoming public events hosted by a specific user, sorted chronologically.
This endpoint returns only future events created by the user, sorted by start date (earliest first). Perfect for displaying a user’s event schedule.
Endpoint
GET https://api.evento.so/api/public/v1/users/{username}/upcoming-events
Path Parameters
The username of the Evento userExample: johndoe
Query Parameters
Number of results to return per page
- Minimum: 1
- Maximum: 100
- Default: All upcoming events (no limit)
Example: 10
Number of results to skip for paginationExample: 20
(skip first 20 results)
Your API key for authentication
Response
Success Response (200)
Indicates whether the request was successful
Success message including the username
An array of upcoming event objects sorted by start date (earliest first)Show Event Object Properties
Unique identifier for the event
Detailed description of the event
URL to the event’s cover image
Location details for the event
Event start date and time in ISO 8601 format
Event end date and time in ISO 8601 format
Timezone for the event (IANA timezone)
Event status (always “published” for public API)
Event visibility (always “public” for public API)
Event cost in USD (null = free)
Timestamp when the event was created
Information about the event creator
Username of the event creator
URL to the user’s profile image
Verification status of the user
External links for the event
Payment methods for contributionsShow Contribution Properties
Bitcoin Lightning address
Examples
curl -X GET "https://api.evento.so/api/public/v1/users/johndoe/upcoming-events?limit=5" \
-H "x-evento-api-key: YOUR_API_KEY"
Response Example
{
"success": true,
"message": "Upcoming events fetched successfully for user johndoe",
"data": [
{
"id": "evt_future1",
"title": "Web Development Workshop",
"description": "Learn modern web development techniques",
"cover": "https://example.com/webdev.jpg",
"location": "Tech Center, San Francisco",
"start_date": "2025-01-15T18:00:00Z",
"end_date": "2025-01-15T21:00:00Z",
"timezone": "America/Los_Angeles",
"status": "published",
"visibility": "public",
"cost": null,
"created_at": "2024-11-20T10:00:00Z",
"creator": {
"id": "usr_xyz789",
"username": "johndoe",
"image": "https://example.com/johndoe.jpg",
"verification_status": "verified"
},
"links": {
"spotify_url": null,
"wavlake_url": null
},
"contributions": {
"cashapp": "$johndoe",
"venmo": "@johndoe",
"paypal": null,
"btc_lightning": null
}
},
{
"id": "evt_future2",
"title": "Spring Music Festival",
"description": "Annual outdoor music festival",
"cover": "https://example.com/spring-fest.jpg",
"location": "Golden Gate Park, San Francisco",
"start_date": "2025-03-21T12:00:00Z",
"end_date": "2025-03-21T22:00:00Z",
"timezone": "America/Los_Angeles",
"status": "published",
"visibility": "public",
"cost": 55.00,
"created_at": "2024-11-15T14:00:00Z",
"creator": {
"id": "usr_xyz789",
"username": "johndoe",
"image": "https://example.com/johndoe.jpg",
"verification_status": "verified"
},
"links": {
"spotify_url": "https://spotify.com/playlist/spring2025",
"wavlake_url": null
},
"contributions": {
"cashapp": "$johndoe",
"venmo": "@johndoe",
"paypal": "[email protected]",
"btc_lightning": null
}
}
]
}
Error Responses
400 - Bad Request (Invalid Parameters)
{
"success": false,
"message": "Limit must be between 1 and 100"
}
400 - Bad Request (Missing Username)
{
"success": false,
"message": "Username is required"
}
{
"success": false,
"message": "Not authenticated."
}
{
"success": false,
"message": "User not found"
}
Notes
- Upcoming means
start_date >= current_time
- Events are sorted by start date in ascending order (earliest first)
- Only events created by the specified user are returned
- Empty array is returned if the user has no upcoming events
- Use pagination parameters for large result sets
Combine limit
and offset
for efficient pagination. For example:
- Page 1:
limit=10&offset=0
- Page 2:
limit=10&offset=10
- Page 3:
limit=10&offset=20