{
  "openapi": "3.0.1",
  "info": {
    "title": "Craigslist Scraper",
    "description": "Scrape Craigslist listings from any city and category: for sale, cars, housing, jobs, gigs and services. Full description, photos, attributes, location, filters and sorting. Seller contact emails included free when Craigslist shows them. No login.",
    "version": "0.0",
    "x-build-id": "Bpk3IAfmi8nAhTws9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/calm_builder~craigslist-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-calm_builder-craigslist-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/calm_builder~craigslist-scraper/runs": {
      "post": {
        "operationId": "runs-sync-calm_builder-craigslist-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/calm_builder~craigslist-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-calm_builder-craigslist-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": {
          "locations": {
            "title": "Craigslist cities",
            "type": "array",
            "description": "The Craigslist cities or regions to search, one per line. Use the name from the city's Craigslist web address, or the city name as Craigslist shows it:<br>• <code>newyork</code> or <code>New York</code><br>• <code>sfbay</code> or <code>SF bay area</code><br>• <code>losangeles</code>, <code>chicago</code>, <code>toronto</code>, <code>london</code><br>Every Craigslist city works, in the US, Canada and abroad. Each city is searched separately and the results are combined into one list without duplicates. The run log shows which city each line was matched to.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category",
            "enum": [
              "sss",
              "cta",
              "cto",
              "ctd",
              "mca",
              "boo",
              "rva",
              "pta",
              "ela",
              "moa",
              "sya",
              "fua",
              "ppa",
              "tla",
              "zip",
              "gms",
              "hhh",
              "apa",
              "roo",
              "sub",
              "rea",
              "off",
              "jjj",
              "ggg",
              "bbb",
              "ccc",
              "res"
            ],
            "type": "string",
            "description": "What kind of listings to collect. The \"everything\" options cover all their sub-categories. Used with the cities above; links below keep their own category.",
            "default": "sss"
          },
          "searchTerms": {
            "title": "Keywords (optional)",
            "type": "array",
            "description": "Only listings that match these words, one search per line, e.g. <code>iphone 15</code> or <code>honda civic</code>. Each line is searched in every city above, and the results are combined without duplicates.<br>Craigslist needs every word of a line to appear in the listing, so short phrases find more. Leave empty to get all listings of the category.",
            "items": {
              "type": "string"
            }
          },
          "searchTitlesOnly": {
            "title": "Match keywords in the title only",
            "type": "boolean",
            "description": "Off: a keyword can match the title or the description. On: only listings with the keyword in their title. Turn on for more precise results (e.g. \"bike\" in the title, not a car listing that mentions a bike rack).",
            "default": false
          },
          "startUrls": {
            "title": "Craigslist links (optional)",
            "type": "array",
            "description": "Paste links straight from Craigslist, one per line. Two kinds work:<br>• <b>Search pages</b>, with any filters you set on Craigslist: <code>https://newyork.craigslist.org/search/cta?min_price=5000&auto_make_model=toyota</code><br>• <b>Single listings</b>: <code>https://newyork.craigslist.org/brk/cto/d/brooklyn-2018-honda-civic/7998312627.html</code><br>A search link is used exactly as it is: the category, keywords and filters fields of this form do not change it. The sorting, limit, details and email settings below still apply.",
            "items": {
              "type": "string"
            }
          },
          "postalCode": {
            "title": "ZIP or postal code",
            "type": "string",
            "description": "Search around this ZIP or postal code instead of the whole city, e.g. <code>10001</code>. Set the distance below. Works best with one city in the list above (the one the code belongs to)."
          },
          "searchDistance": {
            "title": "Distance from the ZIP code (miles)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How far from the ZIP or postal code to look, in miles (kilometres for Canadian postal codes). Craigslist allows up to 1,000."
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or above this amount. Listings without a price are left out when this is set."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or below this amount. Listings without a price are left out when this is set."
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "all",
              "owner",
              "dealer"
            ],
            "type": "string",
            "description": "Private sellers, dealers and businesses, or both. For-sale categories only.",
            "default": "all"
          },
          "condition": {
            "title": "Condition",
            "type": "array",
            "description": "Only items in these conditions. For-sale categories only. Listings where the seller did not set a condition are left out when this is set.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "like_new",
                "excellent",
                "good",
                "fair",
                "salvage"
              ],
              "enumTitles": [
                "New",
                "Like new",
                "Excellent",
                "Good",
                "Fair",
                "Salvage"
              ]
            }
          },
          "postedToday": {
            "title": "Posted in the last 24 hours only",
            "type": "boolean",
            "description": "Only listings posted or reposted in the last 24 hours.",
            "default": false
          },
          "hasImage": {
            "title": "With photos only",
            "type": "boolean",
            "description": "Only listings with at least one photo.",
            "default": false
          },
          "makeModel": {
            "title": "Make and model",
            "type": "string",
            "description": "E.g. <code>toyota</code>, <code>honda civic</code>, <code>ford f-150</code>."
          },
          "minYear": {
            "title": "Model year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Only vehicles from this model year or newer, e.g. 2018."
          },
          "maxYear": {
            "title": "Model year to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Only vehicles from this model year or older."
          },
          "minMileage": {
            "title": "Mileage from",
            "minimum": 0,
            "type": "integer",
            "description": "Odometer reading, in miles."
          },
          "maxMileage": {
            "title": "Mileage up to",
            "minimum": 0,
            "type": "integer",
            "description": "Odometer reading, in miles."
          },
          "minBedrooms": {
            "title": "Bedrooms from",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Only places with at least this many bedrooms."
          },
          "maxBedrooms": {
            "title": "Bedrooms up to",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Only places with at most this many bedrooms."
          },
          "minBathrooms": {
            "title": "Bathrooms from",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Only places with at least this many bathrooms."
          },
          "dogsOk": {
            "title": "Dogs allowed",
            "type": "boolean",
            "description": "Only places where dogs are allowed.",
            "default": false
          },
          "catsOk": {
            "title": "Cats allowed",
            "type": "boolean",
            "description": "Only places where cats are allowed.",
            "default": false
          },
          "noBrokerFee": {
            "title": "No broker fee",
            "type": "boolean",
            "description": "Only rentals without a broker fee.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum number of listings",
            "minimum": 1,
            "type": "integer",
            "description": "The most listings to collect in this run, across all cities, keywords and links. Big cities have tens of thousands of listings in the larger categories, and all of them can be collected.",
            "default": 100
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "date",
              "dateoldest",
              "priceasc",
              "pricedsc"
            ],
            "type": "string",
            "description": "The order listings are collected in. With a limit set, it also decides which listings you get: e.g. \"Price: low to high\" with a limit of 100 gives the 100 cheapest listings of the whole search, not just the first page.",
            "default": "date"
          },
          "includeDetails": {
            "title": "Include full listing details",
            "type": "boolean",
            "description": "On: each listing also gets its full description, all photos, every attribute Craigslist shows (e.g. make, model, VIN, mileage, bathrooms, pets, condition), the address when given, and the last update time.<br>Off: faster runs with the basics only: title, price, link, date, location, photos and a few key attributes.",
            "default": true
          },
          "skipReposts": {
            "title": "Skip reposted listings",
            "type": "boolean",
            "description": "Leave out listings that Craigslist marks as reposts of an older listing, so each item shows up once. Needs full listing details on.",
            "default": false
          },
          "includeEmail": {
            "title": "Get the seller's contact email (free)",
            "type": "boolean",
            "description": "On: each listing also gets the seller's Craigslist reply email when Craigslist shows it. The field <code>contactEmailStatus</code> tells you, per listing, whether an email was found or why not.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}