> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrapio.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Search Facebook Marketplace

> Search Marketplace listings by keyword and location (lat/lng required).



## OpenAPI

````yaml get /v1/facebook/marketplace/search
openapi: 3.1.0
info:
  title: Scrapio
  version: 1.0.0
  description: >-
    Turn any URL into structured data. Fetch raw HTML, crawl sites, extract
    structured content, interact with dynamic pages, and search the web through
    one API.
  contact:
    name: Scrapio Support
    url: https://scrapio.dev
  license:
    name: Proprietary
servers:
  - url: https://api.scrapio.dev
    description: Production
security:
  - bearerAuth: []
tags:
  - name: System
  - name: Fetch
  - name: Crawl
  - name: Map
  - name: Interact
  - name: Search
  - name: Google
  - name: Fast Search
  - name: Jobs
  - name: YouTube
  - name: Amazon
  - name: Walmart
  - name: Booking
  - name: Agoda
  - name: Airbnb
  - name: AutoTrader
  - name: ChatGPT
  - name: Perplexity
  - name: Gemini
  - name: Bing
  - name: Reddit
  - name: Instagram
  - name: Twitter
  - name: Facebook
  - name: Hacker News
  - name: GitHub
  - name: TikTok
  - name: Apple App Store
  - name: Target
  - name: Monitors
paths:
  /v1/facebook/marketplace/search:
    get:
      tags:
        - Facebook
      summary: Search Facebook Marketplace
      description: >-
        Searches Marketplace listings by keyword and location (`lat`/`lng`
        required — Facebook's own search has no query-only mode) — id, title,
        price, photo, and sold/live status per result. Requires a Starter plan
        or higher.
      operationId: getFacebookMarketplaceSearch
      parameters:
        - name: query
          in: query
          required: true
          schema:
            type: string
            minLength: 1
        - name: lat
          in: query
          required: true
          schema:
            type: number
        - name: lng
          in: query
          required: true
          schema:
            type: number
      responses:
        '200':
          description: Matching listings.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FacebookMarketplaceSearchResponse'
        '400':
          description: Missing query, lat, or lng.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: Facebook dedicated endpoints require a Starter plan or higher.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Daily credit cap exceeded, or Facebook rate-limited the request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: Facebook blocked the request or returned an unusable response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: The Facebook execution backend is unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-codeSamples:
        - lang: cURL
          label: cURL
          source: >-
            curl
            "https://api.scrapio.dev/v1/facebook/marketplace/search?query=bike&lat=30.2677&lng=-97.7475"
            \
              -H "Authorization: Bearer $SCRAPIO_API_KEY"
components:
  schemas:
    FacebookMarketplaceSearchResponse:
      type: object
      properties:
        provider:
          type: string
          enum:
            - facebook
        request_id:
          type: string
        query_context:
          type: object
          properties:
            query:
              type: string
            lat:
              type: number
            lng:
              type: number
          required:
            - query
            - lat
            - lng
          additionalProperties: false
        items:
          type: array
          items:
            type: object
            properties:
              id:
                anyOf:
                  - type: string
                  - type: 'null'
              title:
                anyOf:
                  - type: string
                  - type: 'null'
              url:
                anyOf:
                  - type: string
                  - type: 'null'
              price:
                type: object
                properties:
                  amount:
                    anyOf:
                      - type: number
                      - type: 'null'
                  currency:
                    anyOf:
                      - type: string
                      - type: 'null'
                  formatted:
                    anyOf:
                      - type: string
                      - type: 'null'
                required:
                  - amount
                  - currency
                  - formatted
                additionalProperties: false
              photo_url:
                anyOf:
                  - type: string
                  - type: 'null'
              is_sold:
                anyOf:
                  - type: boolean
                  - type: 'null'
              is_live:
                anyOf:
                  - type: boolean
                  - type: 'null'
            required:
              - id
              - title
              - url
              - price
              - photo_url
              - is_sold
              - is_live
            additionalProperties: false
      required:
        - provider
        - request_id
        - query_context
        - items
      additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        request_id:
          type: string
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
        diagnostics:
          type: object
          properties:
            outcome:
              type: string
              enum:
                - failed
            retryable:
              type: boolean
            blocked:
              type: boolean
            timed_out:
              type: boolean
          required:
            - outcome
            - retryable
          additionalProperties: false
      required:
        - request_id
        - error
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````