{
  "openapi": "3.0.1",
  "info": {
    "title": "Craigslist Scraper",
    "description": "Scrape Craigslist listings from any city, state or whole country — up to 10,000 per search instead of 360. Get prices, full descriptions, attributes, addresses, photos and phone numbers for cars, housing, jobs and everything for sale.",
    "version": "0.0",
    "x-build-id": "qnnUTPHdqK2aPb8uS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alkausari_mujahid~craigslist-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alkausari_mujahid-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/alkausari_mujahid~craigslist-scraper/runs": {
      "post": {
        "operationId": "runs-sync-alkausari_mujahid-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/alkausari_mujahid~craigslist-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-alkausari_mujahid-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": "📍 Locations",
            "type": "array",
            "description": "Where to search. Type a city or Craigslist site (<code>New York</code>, <code>Austin, TX</code>, <code>sfbay</code>), part of one (<code>Brooklyn</code>, <code>San Francisco</code>), a whole US state or Canadian province (<code>Texas</code>, <code>NY</code>, <code>Ontario</code>), a country (<code>US</code>, <code>Canada</code>, <code>UK</code>) or a ZIP / postal code (<code>90210</code>). Add a distance to search a circle, like Craigslist's map: <code>College Grove, TN ± 970 mi</code>, <code>37046 ± 970 mi</code> or <code>35.79, -86.69 ± 970 mi</code>. A state or country searches every Craigslist site in it. Note: <code>New York</code> is the city, <code>NY</code> the whole state.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "🔍 Search terms",
            "type": "array",
            "description": "Keywords, as you'd type them into Craigslist's search box. Each term is searched separately in every location. Leave empty to get everything in the category.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Only listings that mention",
            "type": "array",
            "description": "Keep listings whose title, description or details contain at least one of these words or phrases. Matching ignores case and only counts whole words, so <code>mover</code> finds \"Mover?\" but not \"movers\" or \"removers\" — add plurals as separate entries. You can also paste a comma-separated list. With <b>Open each listing</b> off, only titles are checked. Leave empty to keep every listing.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Skip listings that mention",
            "type": "array",
            "description": "Drop listings containing any of these words or phrases, e.g. <code>study</code>, <code>survey</code>.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "🗂️ Category",
            "enum": [
              "sss",
              "cta",
              "mca",
              "rva",
              "boo",
              "pta",
              "bia",
              "fua",
              "ela",
              "sya",
              "moa",
              "ppa",
              "tla",
              "hva",
              "zip",
              "gms",
              "tia",
              "ata",
              "jwa",
              "msa",
              "vga",
              "wta",
              "hhh",
              "apa",
              "roo",
              "sub",
              "rea",
              "vac",
              "off",
              "prk",
              "jjj",
              "ggg",
              "lbg",
              "dmg",
              "evg",
              "cwg",
              "cpg",
              "crg",
              "tlg",
              "wrg",
              "bbb",
              "ccc",
              "eee",
              "rrr"
            ],
            "type": "string",
            "description": "Which part of Craigslist to search.",
            "default": "sss"
          },
          "categoryCode": {
            "title": "Other category code",
            "type": "string",
            "description": "For a category not in the list above, its Craigslist code from the site's address bar, e.g. <code>sof</code> (software jobs) or <code>cto</code> (cars by owner). Overrides Category."
          },
          "startUrls": {
            "title": "🔗 Craigslist links",
            "type": "array",
            "description": "Search pages or listing pages copied from craigslist.org. Set any filter on the website (bedrooms, make & model, mileage, pets…), then paste the link here; its filters are kept as they are. Use this alongside or instead of Locations.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price, in the site's currency."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price, in the site's currency."
          },
          "postedWithinDays": {
            "title": "Posted within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings posted or renewed in the last N days (Craigslist moves renewed ads back to the top, and its \"newest\" order uses the same date). 1 = last 24 hours. Leave empty for any age."
          },
          "radiusMiles": {
            "title": "Default distance (miles)",
            "minimum": 1,
            "maximum": 3000,
            "type": "integer",
            "description": "Distance used for ZIP / postal codes written without one. To give a location its own distance, write it after the place, e.g. <code>37046 ± 970 mi</code>.",
            "default": 25
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "all",
              "owner",
              "dealer"
            ],
            "type": "string",
            "description": "Owners or dealers only. Applies to for-sale categories that split them, such as cars, bikes and furniture.",
            "default": "all"
          },
          "withPhotosOnly": {
            "title": "With photos only",
            "type": "boolean",
            "description": "Skip listings that have no photos.",
            "default": false
          },
          "searchTitlesOnly": {
            "title": "Search titles only",
            "type": "boolean",
            "description": "Match search terms in titles only, not in descriptions. Fewer, more relevant results.",
            "default": false
          },
          "hideDuplicates": {
            "title": "Hide duplicates",
            "type": "boolean",
            "description": "Keep only the newest copy when a seller posts the same ad several times, as Craigslist's own 'hide duplicates' option does.",
            "default": false
          },
          "includeNearbyAreas": {
            "title": "Include nearby areas",
            "type": "boolean",
            "description": "When a site has few matches, Craigslist adds listings from neighbouring sites below them (e.g. Albuquerque under El Paso). Turn on to keep those too.",
            "default": false
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "newest",
              "relevance",
              "priceAsc",
              "priceDesc",
              "oldest"
            ],
            "type": "string",
            "description": "Order of results. With a limit, this decides which listings you get.",
            "default": "newest"
          },
          "listingDetails": {
            "title": "Open each listing",
            "type": "boolean",
            "description": "Read every listing's own page to add the full description, all attributes (condition, odometer, bedrooms, pets…), street address, ZIP code, all full-size photos, update date, and phone numbers or emails written in the ad. Turn off for a faster, cheaper run with what search results show: title, price, date, place, coordinates and photos.",
            "default": true
          },
          "onlyNewListings": {
            "title": "Only new listings",
            "type": "boolean",
            "description": "Skip listings that earlier runs with this option already saved. Run on a schedule to get each new listing once.",
            "default": false
          },
          "watchListName": {
            "title": "Watch list name",
            "type": "string",
            "description": "With 'Only new listings', runs that share a name share their memory of saved listings. Give each scheduled search its own name to keep them apart; leave empty to share one list."
          },
          "maxListings": {
            "title": "Max listings",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many listings in total. Leave empty or 0 for no limit."
          },
          "maxListingsPerLocation": {
            "title": "Max listings per location",
            "minimum": 0,
            "type": "integer",
            "description": "A limit for each location, each search term and each link on its own. For example, 100 with two locations gives up to 100 from each. Without it, all locations share Max listings and the first to answer can fill it. Leave empty for no per-location limit."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy keeps large runs from being slowed down by Craigslist.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}