Hi I'm having some issues displaying events from the Eventbrite API. I have managed to return 50 events (which are the first 50 events that the API displays by default, with the locations ranging all over the world). I am attempting to return events to a specific location (in my case Stoke-on-trent) but the api returns the same 50 events no matter what parameters I put in my search query. I have put the code for this below. Any help would be greatly appreciated!
var settings = {
"async": true,
"crossDomain": true,
// THIS IS WHAT SEARCHES FOR EVENTS >>>>
"url": "https://www.eventbriteapi.com/v3/events/search/?location.address=Stoke-on-trent&location.within=10mi&expand=organizer,venue",
/*"url": "https://www.eventbriteapi.com/v3/events/52782578112/",*/
"method": "GET",
"headers": {
"Authorization": "Bearer ***************",
"Content-Type": "application/json"
}
}
You are running into pagination. If you add page=2
to the end of your URL and you will get the next page.
There are 6 pages for your specific call.
'pagination': {'has_more_items': True,
'object_count': 283,
'page_count': 6,
'page_number': 1,
'page_size': 50}}
I hope this helps.