Skip to content
scrapeatlas.Dashboard

List Marketplace categories

Try in Playground

List the top-level Marketplace categories, or the children of one category, with the slug used to browse each category.

GET/v1/facebook/marketplace/categoriesx-api-key
x-api-keystringrequiredheader

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

Query parameters
1
parent_idstringquery

Numeric category ID from a previous response. Omit for the top-level categories; send to list that category's children.

Response fields
31
dataobjectoptional

Normalized result with author, post, event or listing data and per-item coverage where applicable.

Optional.

hydration.totalinteger

Always included.

hydration.enrichedinteger

Always included.

hydration.failedinteger

Always included.

successboolean

True when usable public data is returned.

statusenum

success or partial on HTTP 200; failed or challenged on failure.

one of: success, partial

requestIdstring

Request correlation UUID.

sourceUrlstring

Canonical public Facebook page used for retrieval.

absolute HTTPS URL

fetchedAtstring

UTC retrieval timestamp.

order is source_order. Completeness of this bounded response. Warnings name restricted, missing, interrupted or unavailable optional data.

coverage.sourcestring

Always included.

coverage.completeboolean

Always included.

coverage.warningsstring[]

Always included.

coverage.orderenum

Always included.

one of: newest_first, oldest_first, ranked, relevance, source_order

Optional.

coverage.window.sincestringoptional

Optional.

coverage.window.untilstringoptional

Optional.

Counted upstream requests, decoded response bytes and elapsed milliseconds.

accounting.upstreamRequestsinteger

Always included.

≥ 0

accounting.responseBytesinteger

Always included.

≥ 0

accounting.durationMsinteger

Always included.

≥ 0

One level of the category tree: id, name, slug, url, parent_id, level (0 for top level) and children_count. slug and url are null for a category without a public page.

up to 1000 items

categories.idstring

Always included.

categories.namestringnullable

Always included.

categories.slugstringnullable

Always included.

categories.urlstringnullable

Always included.

categories.parent_idstringnullable

Always included.

categories.levelinteger

Always included.

categories.children_countinteger

Always included.

total_countinteger

Number of categories in the whole Marketplace tree.

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
10
HTTPfailure.codeMeaning
200partialUsable data with explicit missing/failed auxiliary coverage.
400invalid_requestMalformed, duplicate, conflicting or unsupported parameters.
401unauthorizedMissing or invalid service API key.
403restricted_pageThe resource is private or restricted.
404not_foundUnknown route or missing resource.
429upstream_rate_limitedFacebook throttled retrieval.
502upstream_challenged upstream_error unsupported_pageSource challenge, failure or unsupported/mismatched structure.
502response_too_large payload_too_complex request_limit unsafe_redirectBounded retrieval or fixed-origin policy failed.
503busyAll Facebook worker slots are occupied.
504timeoutRequest deadline expired.