{
  "openapi": "3.0.1",
  "info": {
    "title": "Craigslist Listings Scraper",
    "description": "Craigslist Listings Scraper SD - Craigslist Listings Scraper is a logged-out tool that extracts craigslist listings from any city, category or search URL: title, price, location, coordinates, images, posted date, plus full description and attributes.",
    "version": "1.0",
    "x-build-id": "62K4JSatFUO3T1mSI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~craigslist-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-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/neuro-scraper~craigslist-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-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/neuro-scraper~craigslist-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-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": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "What you would type into the craigslist search box, one search per line. Every city below is searched for every query. Leave empty to list the whole category. Example: bike",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities / areas",
            "type": "array",
            "description": "Craigslist areas to search: the site's subdomain (newyork, sfbay, losangeles, chicago, london ...) or the area name as on craigslist.org/about/sites (\"SF bay area\"). Names are checked against craigslist's live area list (reference.craigslist.org/Areas) on every run. Default: newyork.",
            "default": [
              "newyork"
            ],
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Craigslist category code as in the site's search URLs (cat=...): sss all for sale, cta cars+trucks, ela electronics, fua furniture, bik bicycles, hhh all housing, apa apartments / housing for rent, roo rooms & shares, sub sublets, rea real estate for sale, jjj jobs, ggg gigs, bbb services, ccc community, eee events. A category name (\"bicycles - by owner\") is looked up in the live category list. Default: sss.",
            "default": "sss"
          },
          "startUrls": {
            "title": "Craigslist URLs",
            "type": "array",
            "description": "Optional. Search URLs copied from the browser, with all their filters (https://www.craigslist.org/search/area/sfbay?cat=apa&max_price=3000 or https://sfbay.craigslist.org/search/sss?query=bike) and/or single listing URLs (https://www.craigslist.org/view/d/milpitas-giant-bicycle/dycCiogaBGgeLurEG7oC4d or the older https://sfbay.craigslist.org/sby/bik/d/<title>/<id>.html).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "includeDetails": {
            "title": "Include full listing details",
            "type": "boolean",
            "description": "Open every listing page for the description, all attributes (condition, make, model, odometer, bathrooms, pets, laundry, compensation ...), street address, map accuracy, updated date and notices. Turn off for a fast search-only run (title, price, location, coordinates, images, date, bedrooms/sqft, miles, salary still included).",
            "default": true
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "",
              "date",
              "rel",
              "priceasc",
              "pricedsc",
              "dateoldest",
              "dist"
            ],
            "type": "string",
            "description": "Order of the results, as on craigslist. Empty = the site's default (newest without a query, relevance with a query). Checked against the sort menu craigslist returns with every search.",
            "default": ""
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Only listings at or above this price (craigslist's own min_price filter, in the area's currency). Example: 100"
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Only listings at or below this price (craigslist's own max_price filter). Example: 3000"
          },
          "postedToday": {
            "title": "Posted today",
            "type": "boolean",
            "description": "Only listings posted today (craigslist's own filter).",
            "default": false
          },
          "maxAge": {
            "title": "Maximum age (days)",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Optional. Only listings posted within this many days (0 = no limit). Applied to the posting date craigslist returns with every search result, before any detail page is opened. Example: 3",
            "default": 0
          },
          "hasImage": {
            "title": "Has image",
            "type": "boolean",
            "description": "Only listings with photos (craigslist's own filter).",
            "default": false
          },
          "searchTitlesOnly": {
            "title": "Search titles only",
            "type": "boolean",
            "description": "Match the search query against listing titles only (craigslist's own filter).",
            "default": false
          },
          "hideDuplicates": {
            "title": "Hide duplicates",
            "type": "boolean",
            "description": "Bundle duplicate postings the way craigslist does (craigslist's own filter).",
            "default": false
          },
          "condition": {
            "title": "Condition (for sale only)",
            "type": "array",
            "description": "Optional. Item condition, one per line: new, like new, excellent, good, fair, salvage (or craigslist's codes 10-60). Checked against the condition menu of the category on every run.",
            "items": {
              "type": "string"
            }
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "all",
              "owner",
              "dealer"
            ],
            "type": "string",
            "description": "For-sale categories: everyone, owners only or dealers only (craigslist's \"sold by\" filter).",
            "default": "all"
          },
          "deliveryAvailable": {
            "title": "Delivery available",
            "type": "boolean",
            "description": "Only listings that offer delivery (craigslist's own filter, for-sale categories).",
            "default": false
          },
          "postalCode": {
            "title": "ZIP / postal code",
            "type": "string",
            "description": "Optional. Search around this ZIP code (craigslist's postal filter) - combine with Search distance. Example: 94103"
          },
          "searchDistance": {
            "title": "Search distance (miles)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Optional. Radius around the ZIP code, in the area's distance unit. Example: 10"
          },
          "searchNearby": {
            "title": "Include nearby areas",
            "type": "boolean",
            "description": "When a search has few local results, craigslist adds \"more from nearby areas\". Off: only results of the chosen area are saved; on: the nearby ones too, marked isNearby.",
            "default": false
          },
          "extraFilters": {
            "title": "More craigslist filters",
            "type": "array",
            "description": "Optional. Any other filter of the craigslist search form as name=value, one per line - exactly as it appears in the site's search URL. Examples: min_bedrooms=2, max_bedrooms=3, min_bathrooms=1, pets_cat=1 (cats OK), pets_dog=1 (dogs OK), housing_type=1, auto_make_model=honda civic, min_auto_year=2015, max_auto_miles=80000, employment_type=1. Names are checked against the filter menu craigslist returns with every search.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max listings (total)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of listings for the whole run. Results are read with craigslist's own cursor (batches of 1,080 results after the first answer) until this number, Max results per search or the end of the search (craigslist returns at most 10,000 results per search - split big searches by sub-area or price).",
            "default": 30
          },
          "maxResults": {
            "title": "Max results per search / URL",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Optional limit for each search (city x query) and each search URL; 0 = only Max listings applies. Example: 200",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many listing pages are opened at the same time when Include full listing details is on (each on its own proxy session).",
            "default": 3
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many times a blocked or failed request is tried again on a new proxy session before the target is skipped.",
            "default": 3
          },
          "city": {
            "title": "City (single, alias)",
            "type": "string",
            "description": "Optional. One craigslist site (subdomain such as sfbay, chicago, london) or its name. Same as one line of Cities."
          },
          "region": {
            "title": "Region (alias)",
            "type": "string",
            "description": "Optional. Same as City: a craigslist site subdomain or name."
          },
          "subdomain": {
            "title": "Subdomain (alias)",
            "type": "string",
            "description": "Optional. Same as City: the craigslist subdomain, e.g. newyork for newyork.craigslist.org."
          },
          "onlyFreeListings": {
            "title": "Only free listings",
            "type": "boolean",
            "description": "true = only free items. With the default category the free-stuff category is searched; with another category only rows priced 0 or free are kept.",
            "default": false
          },
          "onlyWithPhotos": {
            "title": "Only with photos (alias)",
            "type": "boolean",
            "description": "Same as Has image: only listings with at least one photo."
          },
          "minBedrooms": {
            "title": "Min bedrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Housing: minimum number of bedrooms (craigslist's own filter)."
          },
          "maxBedrooms": {
            "title": "Max bedrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Housing: maximum number of bedrooms."
          },
          "minBathrooms": {
            "title": "Min bathrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Housing: minimum number of bathrooms."
          },
          "maxBathrooms": {
            "title": "Max bathrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Housing: maximum number of bathrooms."
          },
          "catsOk": {
            "title": "Cats OK",
            "type": "boolean",
            "description": "Housing: only listings that allow cats.",
            "default": false
          },
          "dogsOk": {
            "title": "Dogs OK",
            "type": "boolean",
            "description": "Housing: only listings that allow dogs.",
            "default": false
          },
          "monitoringMode": {
            "title": "Monitoring mode (only new listings)",
            "type": "boolean",
            "description": "true = remember the listings of this search (by Monitoring name) and return only listings not seen in earlier runs. Schedule it for alerts.",
            "default": false
          },
          "stateKey": {
            "title": "Monitoring name",
            "type": "string",
            "description": "Name of the saved state for Monitoring mode; use one name per search you monitor.",
            "default": "default"
          },
          "emitSeen": {
            "title": "Monitoring: also return known listings",
            "type": "boolean",
            "description": "Monitoring mode: true = also return listings seen before (marked isNew false).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Craigslist blocks datacenter and most non-US IPs (HTTP 403 \"blocked\"). Residential US proxies are the default and recommended.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}