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

# Scrape Craigslist search

> Searches Craigslist for `query` in a given metro (`site`) and section (`category`) and returns the listings as JSON: `pid`, `title`, `url`, `price`, `currency`, `location` and `image`. Filter with `min_price`/`max_price` and cap the count with `max_results`. Results are merged from the gallery DOM and the embedded JSON-LD ItemList.



## OpenAPI

````yaml /api-reference/openapi.json post /marketplace/craigslist-search
openapi: 3.1.0
info:
  title: ScrapeUnblocker API
  description: >-
    Public API for the ScrapeUnblocker proxy/anti-bot service. Authenticate
    every request with the `x-scrapeunblocker-key` header. Three endpoints are
    documented here: page-source extraction, Google SERP scraping, and image
    fetch. All other paths exist for internal operations and are intentionally
    hidden from this spec.
  version: 3.0.0
servers:
  - url: https://api.scrapeunblocker.com
    description: Production
security: []
paths:
  /marketplace/craigslist-search:
    post:
      tags:
        - Plugins
      summary: Scrape Craigslist search
      description: >-
        Searches Craigslist for `query` in a given metro (`site`) and section
        (`category`) and returns the listings as JSON: `pid`, `title`, `url`,
        `price`, `currency`, `location` and `image`. Filter with
        `min_price`/`max_price` and cap the count with `max_results`. Results
        are merged from the gallery DOM and the embedded JSON-LD ItemList.
      operationId: craigslist_search_marketplace_craigslist_search_post
      parameters:
        - name: query
          in: query
          required: true
          schema:
            type: string
            description: What to search, e.g. 'bicycle' or 'sofa'.
            title: Query
          description: What to search, e.g. 'bicycle' or 'sofa'.
        - name: site
          in: query
          required: false
          schema:
            type: string
            description: Metro subdomain, e.g. 'newyork', 'sfbay', 'chicago'.
            default: newyork
            title: Site
          description: Metro subdomain, e.g. 'newyork', 'sfbay', 'chicago'.
        - name: category
          in: query
          required: false
          schema:
            type: string
            description: >-
              Craigslist code: sss=for sale, cta=cars+trucks, apa=housing,
              jjj=jobs.
            default: sss
            title: Category
          description: >-
            Craigslist code: sss=for sale, cta=cars+trucks, apa=housing,
            jjj=jobs.
        - name: min_price
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                minimum: 0
              - type: 'null'
            description: Lowest price to include (USD).
            title: Min Price
          description: Lowest price to include (USD).
        - name: max_price
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                minimum: 0
              - type: 'null'
            description: Highest price to include (USD).
            title: Max Price
          description: Highest price to include (USD).
        - name: max_results
          in: query
          required: false
          schema:
            type: integer
            maximum: 500
            minimum: 1
            description: How many listings to return (1-500).
            default: 120
            title: Max Results
          description: How many listings to return (1-500).
        - name: proxy_country
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Exit-IP country (ISO-2). Defaults to a US exit.
            title: Proxy Country
          description: Exit-IP country (ISO-2). Defaults to a US exit.
      responses:
        '200':
          description: JSON with a `listings` array.
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid parameters.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: Blocked by Craigslist or no results page returned.
        '504':
          description: Fetch timed out.
      security:
        - ScrapeUnblockerKey: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ScrapeUnblockerKey:
      type: apiKey
      in: header
      name: x-scrapeunblocker-key
      description: Your ScrapeUnblocker API key. Apply on every request.

````