{
  "openapi": "3.0.1",
  "info": {
    "title": "Craigslist Scraper — Listings From Any City, No Login",
    "description": "Extract Craigslist listings from any city: apartments, cars, jobs, for sale, free stuff and more. Up to 10,000 results per search, working listing URLs, price, location, images and optional full descriptions. No login or cookies.",
    "version": "0.1",
    "x-build-id": "xm40cMLoTU9gGCu4C"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crowdpull~craigslist-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crowdpull-craigslist-listings-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/crowdpull~craigslist-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crowdpull-craigslist-listings-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/crowdpull~craigslist-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crowdpull-craigslist-listings-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searches": {
            "title": "Searches",
            "type": "array",
            "description": "Advanced: run several searches in one run. Each object can override city, category, query, filters and maxResultsPerSearch, for example {\"city\": \"chicago\", \"category\": \"cta\", \"query\": \"honda civic\"}. Leave empty to use the fields below.",
            "items": {
              "type": "object"
            }
          },
          "startUrls": {
            "title": "Craigslist URLs",
            "type": "array",
            "description": "Optional. Paste Craigslist search URLs (for example https://sfbay.craigslist.org/search/apa?min_price=2000) and the city, category, query and price filters are read from them. Direct posting URLs are returned as detail records.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL",
                  "description": "Craigslist search, category, or posting URL."
                }
              }
            }
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Any Craigslist city: the subdomain from its URL (sfbay for sfbay.craigslist.org, newyork, chicago, detroit, london, toronto...) or its name, such as \"New York\". About 700 cities worldwide. Results are the same listings you see on that city's Craigslist site.",
            "default": "newyork"
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Optional list of cities (subdomains or names). Each city runs the same category, query and filters, so one run can cover many cities.",
            "items": {
              "type": "string"
            }
          },
          "postalCode": {
            "title": "Postal Code",
            "type": "string",
            "description": "Optional. Search a radius around this ZIP/postal code instead of the whole city area. Combine with Search Distance. Can include neighboring Craigslist areas (a 10001 search also returns New Jersey)."
          },
          "searchDistance": {
            "title": "Search Distance",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Radius around the Postal Code in miles. Ignored when no Postal Code is set.",
            "default": 25
          },
          "category": {
            "title": "Category",
            "enum": [
              "sss",
              "cta",
              "zip",
              "gms",
              "apa",
              "hhh",
              "rea",
              "roo",
              "sub",
              "vac",
              "off",
              "prk",
              "jjj",
              "ggg",
              "srv",
              "bbb",
              "ccc",
              "eee",
              "rrr"
            ],
            "type": "string",
            "description": "Craigslist category code. Real estate examples: apa apartments, hhh all housing, rea real estate for sale, roo rooms, sub sublets, vac vacation rentals, off office, prk parking. Broad examples: sss for sale, cta cars, gms garage sales, jjj jobs, ggg gigs, srv services, ccc community, eee events, zip free stuff.",
            "default": "apa"
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Optional list of category codes to run with the same filters. Use this for all-housing or all-classifieds fanout.",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search Query",
            "type": "string",
            "description": "Free-text Craigslist search query. Leave empty to browse the latest listings in the category."
          },
          "minPrice": {
            "title": "Minimum Price",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in the local Craigslist currency."
          },
          "maxPrice": {
            "title": "Maximum Price",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in the local Craigslist currency."
          },
          "postedToday": {
            "title": "Posted Today",
            "type": "boolean",
            "description": "Only return listings Craigslist marks as posted in the last 24 hours.",
            "default": false
          },
          "hasPic": {
            "title": "Has Image",
            "type": "boolean",
            "description": "Only return listings with at least one image.",
            "default": false
          },
          "ownerOnly": {
            "title": "Owner Only",
            "type": "boolean",
            "description": "Compatibility toggle for owner/private posts. Prefer listingType for owner/dealer/all workflows.",
            "default": false
          },
          "listingType": {
            "title": "Listing Type",
            "enum": [
              "all",
              "owner",
              "dealer"
            ],
            "type": "string",
            "description": "Craigslist owner/dealer filter. Use owner for private-owner real-estate or vehicle searches, dealer for dealer listings, or all for no seller filter.",
            "default": "all"
          },
          "hideDuplicates": {
            "title": "Hide Craigslist Duplicates",
            "type": "boolean",
            "description": "Ask Craigslist to bundle/hide duplicate postings when supported by the category.",
            "default": false
          },
          "searchNearby": {
            "title": "Search Nearby Areas",
            "type": "boolean",
            "description": "Ask Craigslist to include nearby areas when supported by the search endpoint.",
            "default": false
          },
          "deliveryAvailable": {
            "title": "Delivery Available",
            "type": "boolean",
            "description": "Only return listings marked with delivery available when Craigslist supports the filter.",
            "default": false
          },
          "condition": {
            "title": "Condition",
            "type": "array",
            "description": "Optional Craigslist condition filters. Use values like new, like-new, excellent, good, fair, salvage, or numeric Craigslist codes 10/20/30/40/50/60.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "date",
              "dateoldest",
              "rel",
              "priceasc",
              "pricedsc",
              "dist"
            ],
            "type": "string",
            "description": "Craigslist sort order.",
            "default": "date"
          },
          "minBedrooms": {
            "title": "Minimum Bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum number of bedrooms for housing categories."
          },
          "maxBedrooms": {
            "title": "Maximum Bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of bedrooms for housing categories."
          },
          "minBathrooms": {
            "title": "Minimum Bathrooms",
            "minimum": 0,
            "type": "number",
            "description": "Minimum number of bathrooms for housing categories."
          },
          "maxBathrooms": {
            "title": "Maximum Bathrooms",
            "minimum": 0,
            "type": "number",
            "description": "Maximum number of bathrooms for housing categories."
          },
          "minSqft": {
            "title": "Minimum Square Feet",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum square footage for housing categories."
          },
          "maxSqft": {
            "title": "Maximum Square Feet",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum square footage for housing categories."
          },
          "catsOk": {
            "title": "Cats OK",
            "type": "boolean",
            "description": "Only include housing listings that allow cats when Craigslist supports the filter.",
            "default": false
          },
          "dogsOk": {
            "title": "Dogs OK",
            "type": "boolean",
            "description": "Only include housing listings that allow dogs when Craigslist supports the filter.",
            "default": false
          },
          "furnished": {
            "title": "Furnished",
            "type": "boolean",
            "description": "Only include furnished housing listings when Craigslist supports the filter.",
            "default": false
          },
          "startDate": {
            "title": "Start Date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Garage-sale date filter start, formatted as YYYY-MM-DD."
          },
          "endDate": {
            "title": "End Date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Garage-sale date filter end, formatted as YYYY-MM-DD. Date ranges are capped at 31 days."
          },
          "includeDetails": {
            "title": "Include Details",
            "type": "boolean",
            "description": "Fetch each posting page for full description, attribute text, and richer images. Search-card mode is faster and cheaper.",
            "default": false
          },
          "includeContactInfo": {
            "title": "Include Contact Info",
            "type": "boolean",
            "description": "Fetch each public posting page and extract visible phone/email text, mailto/tel links, and Craigslist reply URL metadata when exposed.",
            "default": false
          },
          "onlyNew": {
            "title": "Only New or Changed",
            "type": "boolean",
            "description": "Use a named key-value store cache to emit only listings that are new or materially changed since a previous run.",
            "default": false
          },
          "cacheName": {
            "title": "Smart Scrape Cache Name",
            "type": "string",
            "description": "Named key-value store used by onlyNew. Keep the same value for scheduled monitor runs.",
            "default": "craigslist-scraper-cache"
          },
          "maxResultsPerSearch": {
            "title": "Max Results Per Search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum listings to save per search (one city and category). Craigslist exposes up to 10,000 results per search; the default is kept small so a first run is quick and cheap.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Max Detail Concurrency",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Maximum concurrent detail-page fetches when includeDetails or includeContactInfo is enabled.",
            "default": 4
          },
          "requestDelayMs": {
            "title": "Request Delay Milliseconds",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Delay between Craigslist search API batch requests.",
            "default": 250
          },
          "maxRequestRetries": {
            "title": "Max Request Retries",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Retry attempts for transient Craigslist API/detail failures.",
            "default": 3
          },
          "saveDebugHtml": {
            "title": "Save Debug HTML",
            "type": "boolean",
            "description": "Save failed detail-page HTML/error snippets to the default key-value store.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}