API

Dezelfde juridische antwoorden en geverifieerde locatiegegevens die deze site aandrijven, beschikbaar voor je eigen applicatie.

Authenticatie

Stuur je sleutel mee in de X-API-Key header bij elk verzoek.

curl -H "X-API-Key: camp_your_key_here" \
  https://420.camp/api/v1/places?bbox=4.85,52.35,4.95,52.40

Een sleutel wordt eenmalig getoond bij het aanmaken en alleen als hash opgeslagen — als je hem kwijtraakt, trek hem in en maak een nieuwe aan.

Snelheidslimieten

AbonnementVerzoeken / minuutRecords / dag
Free101,000
Pro6010,000
Network300200,000

Twee budgetten, omdat een handvol grote pagina's evenveel data kost als duizenden kleine. Beide worden gereset in een voortschrijdend venster.

GET /places

Venues in an area. Give it a bounding box, a jurisdiction, or a point and radius.

bbox
west,south,east,north — the map viewport
jurisdictionId
all venues in a city, region or country
lat, lng, radiusKm
everything within a distance of a point
type
adult_use_dispensary, private_social_club, coffeeshop, pharmacy…
limit
up to 1000 with an area filter, 50 without
curl -H "X-API-Key: $KEY" \
  "https://420.camp/api/v1/places?bbox=4.85,52.35,4.95,52.40&limit=50"

GET /places/{slug}

One venue in full: address, hours, products, photos and its verification state.

curl -H "X-API-Key: $KEY" \
  "https://420.camp/api/v1/places/wonderland-bangkok-bangkok"

GET /places/search

Find a venue by name.

q
at least two characters
curl -H "X-API-Key: $KEY" \
  "https://420.camp/api/v1/places/search?q=green%20house"

GET /jurisdictions/{id}/legal-summary

What is legal here, in plain language — the answer behind every venue page.

locale
en, uk, es, nl, pl, de, it, th
curl -H "X-API-Key: $KEY" \
  "https://420.camp/api/v1/jurisdictions/{id}/legal-summary?locale=de"

POST /legal/evaluate

Ask one question about one place: may I buy, possess, consume here?

action
purchase, possession, public_consumption, tourist_access, medical_access…
jurisdictionId or lat/lng
where the question is being asked
locale
answer language
curl -X POST -H "X-API-Key: $KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "action": "tourist_access",
  "lat": 52.3702,
  "lng": 4.8952,
  "locale": "en"
}' \
  https://420.camp/api/v1/legal/evaluate

De data gebruiken

  • Juridische informatie verandert. Toon de datum waarop we het laatst hebben herzien, die in elk juridisch antwoord staat.
  • Presenteer onze data niet als juridisch advies — het is een samenvatting in gewone taal met bronnen.
  • Cache antwoorden in plaats van dezelfde records opnieuw op te vragen; het recordbudget telt wat je hebt opgevraagd.
  • Vermeld 420.camp als bron en link terug naar de locatie- of regelpagina waar je de data vandaan haalde.

Sleutel aanmaken

Sleutels worden aangemaakt in je dashboard. Het gratis niveau vereist geen betaalgegevens.

Sleutel aanmaken