Node.js · REST API · Updated
Use a latitude, longitude and radius to find events around a home, hotel or map pin. This guide makes a REST request, follows every results page and saves JSON you can use in your own app.
The API takes lat, lng and radius_miles together. A radius is in miles, greater than zero and at most 25. Keep the exact coordinates; replacing them with a city center changes the search.
curl --fail-with-body \
-H "Authorization: Bearer $VENUNITE_API_KEY" \
'https://venunite.com/v1/events?lat=39.7392&lng=-104.9903&radius_miles=5&limit=25'This searches around central Denver and returns one page. With dates omitted, the API applies its default window and the account’s lookahead limit. Set starts_after and starts_before to explicit ISO timestamps if your application needs a particular window.
Only add city or state if you want those additional filters: they intersect the radius and can remove nearby events across a boundary. An empty result is an empty result for that area and window; keep the radius the user requested.
The response has data and page. These are selected fields from an illustrative response, not a live coverage measurement:
{
"data": [{
"id": 123,
"title": "Example neighborhood trivia",
"startDate": "2026-12-05T02:00:00Z",
"venue": {
"name": "Example venue",
"timezone": "America/Denver",
"distanceMiles": 1.2,
"geocodePrecision": "street"
}
}],
"page": { "count": 1, "hasMore": true, "nextCursor": "opaque-token" }
}venue.distanceMiles measures distance from your point. Results are ordered by event start and ID, rather than nearest first. In-progress events can start before the window opens. Read venue.geocodePrecision before treating a location as an exact entrance: the default includes street and source-supplied points; include_centroids=true additionally admits approximate locations.
Download the script below, set your environment key, then run:
node venunite-events.mjs nearby 39.7392 -104.9903 5Open nearby-events.json to inspect the result. The script keeps the query fixed, sends page.nextCursor as cursor and continues until page.hasMore is false. It continues through short or empty pages, deduplicates by event ID and refuses a missing or repeated cursor.
A geographic request costs 5 quota units. The example pauses 5 seconds between pages against the baseline 60-unit/minute budget. Other traffic shares the account budget. HTTP errors stop the run without replacing the previous output; a production retry should honor Retry-After and retry the same cursor.
The script uses pages of 25, compatible with the REST trial, and stops at a safety ceiling of 100 pages rather than writing a partial result. Returned rows consume the account allowance; a trial may end before a large area finishes. Narrow the area or window, or use an appropriate paid plan.
Add exclude_aggregators=true to inspect listings sourced outside the named major ticketing feeds. Read each event’s source, website and venue. This is a provenance filter; it does not prove that an event is absent from another catalog, free, or non-ticketed.
The hyperlocal guide includes dated examples and reproducible source queries. Test your own coordinates and dates before promising coverage to your users.
Use Node.js 22 or newer. Create a key and keep it in the server’s VENUNITE_API_KEY environment variable. Never put it in browser JavaScript, a public repository or the generated calendar.
Eligible verified accounts get a separate REST trial: 7 days or 1,000 delivered rows total, whichever comes first. Ongoing REST access requires a paid plan. Free MCP access is separate. Repeated results consume rows again.
Download venunite-events.mjs. The file has no package dependencies; inspect its source before running it.
Prefer Postman? Open the VenuNite Postman collection for city, nearby and pagination requests. Fork it into your workspace and set api_key in a local, unshared Postman environment. Use the Postman desktop app or Desktop Agent; no credentials are included in the collection.
Try your key in the API explorer or review plans and limits.