Skip to content
scrapeatlas.Dashboard

Search Couchsurfing locations

Try in Playground

Search Couchsurfing cities, regions and countries by name and get the location slugs used by the events, hosts and travelers endpoints, ranked by relevance.

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

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

Query parameters
3
querystringrequiredquery

Required place name, 2 to 100 characters.

min 2 chars · max 100 chars

Examplelisbon
cursorstringquery

Optional pagination cursor: pass nextCursor from the previous response. Omit for the first page.

max 5 chars

limitstringdefault: "10"query

Optional page size from 1 to 50; default 10.

default: "10" · max 2 chars

Response fields
17
requestIdstring

Request correlation UUID.

Upstream HTTP exchanges, 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

Couchsurfing location search source.

absolute HTTPS URL

fetchedAtstring

UTC retrieval timestamp.

Complete refers only to supported fields; coverage.source is public_api. Warnings: record_limit.

coverage.sourceenum

Always included.

one of: public_api, public_page

coverage.completeboolean

Always included.

coverage.warningsstring[]

Always included.

locationsobject[]

Matching locations in source relevance order.

up to 50 items

totalCountintegernullable

Source total for the query, or null when unavailable. Very large result sets report the source cap.

hasNextPagebooleannullable

True when the source reports more records after this page.

nextCursorstringnullable

Cursor for the next page, or null on the last 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 source data.
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.