Skip to content
scrapeatlas.Dashboard

List Couchsurfing events by location

Try in Playground

List the upcoming public events embedded in a Couchsurfing location page, together with the location's published summary, statistics and FAQ, and the source total.

GET/v1/couchsurfing/eventsx-api-key
x-api-keystringrequiredheader

Your ScrapeAtlas customer key. Create one on /account/ and set SCRAPEATLAS_API_KEY.

Query parameters
1
locationstringrequiredquery

Required location slug as it appears in couchsurfing.com/c/locations/<slug>, for example berlin-state-of-berlin-germany or tokyo-japan; lowercase letters, digits and single hyphens.

max 160 chars

Exampleberlin-state-of-berlin-germany
Response fields
17
requestIdstring

Request correlation UUID.

Upstream HTTP attempts, decoded response bytes and duration in milliseconds.

accounting.upstreamRequestsinteger

Always included.

≥ 0

accounting.responseBytesinteger

Always included.

≥ 0

accounting.durationMsnumber

Always included.

≥ 0

successboolean

True when usable public data is returned.

statusenum

success, partial, failed or challenged; HTTP 200 may be partial.

one of: success, partial

sourceUrlstring

Canonical public Couchsurfing page retrieved.

absolute HTTPS URL

fetchedAtstring

UTC retrieval timestamp.

Complete refers only to supported fields on this page. Warnings: first_page_only when more events exist than the embedded page, record_limit or unresolved_reference.

coverage.sourcestring

Always included.

coverage.completeboolean

Always included.

coverage.warningsstring[]

Always included.

locationobject

Required location slug as it appears in couchsurfing.com/c/locations/<slug>, for example berlin-state-of-berlin-germany or tokyo-japan; lowercase letters, digits and single hyphens.

eventsobject[]

Ordered public event records in source order, with the same fields as the event endpoint. Call event for a specific record.

up to 100 items

totalCountintegernullable

Source total number of upcoming events for the location, or null when unavailable.

hasNextPagebooleannullable

True when the source reports more events than the embedded page.

HTTP 200 returns the success variant. Check status: partial means usable data with warnings, and failed or challenged requests carry a failure object described in Errors & responses.

Error codes
12
HTTPfailure.codeMeaning
200partialUsable page data with explicit coverage warnings.
400invalid_requestMissing, duplicate, unsupported or malformed parameters.
401unauthorizedMissing or invalid service key.
403restrictedPrivate member profile.
404not_foundMissing or deleted profile, event or location.
429upstream_rate_limitedSource throttled retrieval.
502upstream_challengedThe source challenged the request.
502unsupported_pageMissing, malformed or mismatched structured page state.
502response_too_large payload_too_complexByte, node or depth limit exceeded.
502unsafe_redirect request_limit upstream_errorBounded retrieval failed.
503busyAll slots are occupied.
504timeoutDeadline expired.