Skip to content
scrapeatlas.Dashboard

Search Couchsurfing hosts by location

Try in Playground

Search the public hosts of a Couchsurfing location with optional sleeping-arrangement, pets, family, wheelchair, smoking and recent-activity filters: member cards with languages, interests, home location and reference counts, paged with a cursor.

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

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

Query parameters
9
locationstringrequiredquery

Published location record: id, slug, level, description with country codes, timezone, coordinates and images.

max 160 chars

Examplelisbon-lisbon-district-portugal
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 20; default 10.

default: "10" · max 2 chars

sleepingArrangementenumquery

Optional: private_room, shared_room, common_area, floor_or_tent or other.

one of: common_area, private_room, shared_room, floor_or_tent, other

petsAllowedenumquery

Optional.

one of: true, false

familyFriendlyenumquery

Optional.

one of: true, false

wheelchairAccessibleenumquery

Optional.

one of: true, false

smokingAllowedenumquery

Optional.

one of: true, false

recentlyActiveenumquery

Optional.

one of: true, false

Response fields
18
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

Canonical public Couchsurfing page for the record.

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.

locationobject

Published location record: id, slug, level, description with country codes, timezone, coordinates and images.

hostsobject[]

Host member cards in source order.

up to 20 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.