Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Filtering

Mikkel Ricky edited this page Apr 6, 2018 · 3 revisions

Filtering events by tags

Get events having "Musik" as tag:

https://api.detskeriaarhus.dk/api/events.jsonld?tags=Musik

Get events having both "Musik" and "Koncert" as tag:

https://api.detskeriaarhus.dk/api/events.jsonld?tags=Musik,Koncert

Get events having either "Musik" or "Koncert" as tag:

https://api.detskeriaarhus.dk/api/events.jsonld?tags[]=Musik&tags[]=Koncert

Filtering events by (geo)location

First, get a list of places by location, e.g by geolocation:

https://api.detskeriaarhus.dk/api/places.jsonld?geolocation[origin]=56.20393,10.1785113&geolocation[radius]=1

or by postal code (zip code):

https://api.detskeriaarhus.dk/api/places.jsonld?postalCode=8000

Now, collect the place ids to get events:

https://api.detskeriaarhus.dk/api/events.jsonld?occurrences.place.id[]=1076&occurrences.place.id[]=1264&occurrences.place.id[]=1762&occurrences.place.id[]=18204&occurrences.place.id[]=2001&occurrences.place.id[]=407&occurrences.place.id[]=455&occurrences.place.id[]=487&occurrences.place.id[]=534&occurrences.place.id[]=585&occurrences.place.id[]=586&occurrences.place.id[]=7695

or occurrences:

https://api.detskeriaarhus.dk/api/occurrences.jsonld?place.id[]=1076&place.id[]=1264&place.id[]=1762&place.id[]=18204&place.id[]=2001&place.id[]=407&place.id[]=455&place.id[]=487&place.id[]=534&place.id[]=585&place.id[]=586&place.id[]=7695

Clone this wiki locally