{
  "openapi": "3.0.1",
  "info": {
    "title": "Craigslist Scraper",
    "description": "Craigslist Scraper scrapes Craigslist listings in bulk from search, category or posting URLs, or a region and search terms: price, location, coordinates, description, attributes, photos and housing details. Filter by price, condition and date. Export JSON, CSV or Excel, or use the API.",
    "version": "0.1",
    "x-build-id": "ghHoC3nDtwmtUh6hI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fastdataapi~craigslist-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fastdataapi-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/fastdataapi~craigslist-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fastdataapi-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/fastdataapi~craigslist-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fastdataapi-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": {
          "startUrls": {
            "title": "🔗 Craigslist URLs",
            "type": "array",
            "description": "Craigslist pages copied from your browser: search result pages (e.g. https://miami.craigslist.org/search/sss?query=furniture), category pages (e.g. https://newyork.craigslist.org/search/cta) or single posting pages. Any filters set below are added to every search URL. Leave empty to use Region + Search terms instead.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "region": {
            "title": "📍 Region",
            "type": "string",
            "description": "Craigslist site to search, as it appears before .craigslist.org: e.g. miami, newyork, sfbay, losangeles, chicago, london, toronto. Used with Category and Search terms; can be combined with the URLs above."
          },
          "category": {
            "title": "🔎 Category",
            "type": "string",
            "description": "Craigslist category code used with Region: sss (all for sale), fuo (furniture by owner), cta (cars and trucks), ela (electronics), apa (apartments for rent), hhh (all housing), jjj (jobs), bbb (services), ggg (gigs), zip (free stuff), ccc (community). Default: sss.",
            "default": "sss"
          },
          "searchQueries": {
            "title": "🔎 Search terms",
            "type": "array",
            "description": "One search per term in the chosen Region and Category, e.g. furniture, iphone, honda civic. Leave empty to list the whole category.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "🔢 Max listings",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many listings in total, across all URLs and search terms. 0 = no limit. Free plan: up to 20 listings per run (all URLs and search terms together) and 200 per month; paid plans have no limit.",
            "default": 200
          },
          "maxItemsPerStartUrl": {
            "title": "🔢 Max listings per search",
            "minimum": 0,
            "type": "integer",
            "description": "Optional cap for each URL or search term, so one big search does not use up the whole run. 0 = no cap.",
            "default": 0
          },
          "searchTitlesOnly": {
            "title": "✅ Search titles only",
            "type": "boolean",
            "description": "Match the search terms against posting titles only, not the description.",
            "default": false
          },
          "minPrice": {
            "title": "🎯 Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or above this amount (local currency of the region)."
          },
          "maxPrice": {
            "title": "🎯 Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or below this amount (local currency of the region)."
          },
          "condition": {
            "title": "🎯 Condition",
            "type": "array",
            "description": "Only items in these conditions (for-sale categories). Leave empty for any condition.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "like new",
                "excellent",
                "good",
                "fair",
                "salvage"
              ],
              "enumTitles": [
                "New",
                "Like new",
                "Excellent",
                "Good",
                "Fair",
                "Salvage"
              ]
            }
          },
          "hasImage": {
            "title": "✅ Has photos",
            "type": "boolean",
            "description": "Only listings with at least one photo.",
            "default": false
          },
          "postedToday": {
            "title": "✅ Posted today",
            "type": "boolean",
            "description": "Only listings posted in the last 24 hours.",
            "default": false
          },
          "sort": {
            "title": "🔃 Sort by",
            "enum": [
              "",
              "date",
              "rel",
              "priceasc",
              "pricedsc"
            ],
            "type": "string",
            "description": "Order of the results. Site default keeps Craigslist's own order.",
            "default": ""
          },
          "sellerType": {
            "title": "🎯 Seller type",
            "enum": [
              "all",
              "owner",
              "dealer"
            ],
            "type": "string",
            "description": "Only listings from private owners or only from dealers.",
            "default": "all"
          },
          "onlyFree": {
            "title": "✅ Free items only",
            "type": "boolean",
            "description": "Only listings offered for free.",
            "default": false
          },
          "hideDuplicates": {
            "title": "✅ Hide duplicates",
            "type": "boolean",
            "description": "Bundle duplicate postings so each appears once, as Craigslist does with this option on.",
            "default": false
          },
          "deliveryAvailable": {
            "title": "✅ Delivery available",
            "type": "boolean",
            "description": "Only listings that offer delivery.",
            "default": false
          },
          "postalCode": {
            "title": "📍 ZIP / postal code",
            "type": "string",
            "description": "Search around this ZIP or postal code. Use with Distance."
          },
          "searchDistance": {
            "title": "📍 Distance (miles)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings within this many miles of the ZIP / postal code."
          },
          "searchNearby": {
            "title": "✅ Include nearby areas",
            "type": "boolean",
            "description": "Also return listings from nearby Craigslist areas.",
            "default": false
          },
          "minBedrooms": {
            "title": "🎯 Minimum bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Housing categories only: at least this many bedrooms."
          },
          "maxBedrooms": {
            "title": "🎯 Maximum bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Housing categories only: at most this many bedrooms."
          },
          "minBathrooms": {
            "title": "🎯 Minimum bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Housing categories only: at least this many bathrooms."
          },
          "maxBathrooms": {
            "title": "🎯 Maximum bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Housing categories only: at most this many bathrooms."
          },
          "catsOk": {
            "title": "✅ Cats OK",
            "type": "boolean",
            "description": "Housing categories only: only listings that allow cats.",
            "default": false
          },
          "dogsOk": {
            "title": "✅ Dogs OK",
            "type": "boolean",
            "description": "Housing categories only: only listings that allow dogs.",
            "default": false
          },
          "includeDetails": {
            "title": "📦 Open every posting",
            "type": "boolean",
            "description": "On: each posting is opened for the full record (description, attributes, contacts, housing details, all photos). Off: only the fields shown in the search results (title, price, location, coordinates, photos) - much faster.",
            "default": true
          },
          "includeBody": {
            "title": "📦 Include description",
            "type": "boolean",
            "description": "Add the posting's full description text.",
            "default": true
          },
          "includeAttributes": {
            "title": "📦 Include attributes",
            "type": "boolean",
            "description": "Add the posting's attributes (e.g. condition, make, odometer), the Condition field and the amenities list.",
            "default": true
          },
          "includeImages": {
            "title": "📦 Include photo URLs",
            "type": "boolean",
            "description": "Add the list of full-size photo URLs.",
            "default": true
          },
          "monitoringMode": {
            "title": "🔧 Monitoring mode",
            "type": "boolean",
            "description": "Return only postings this actor has not returned in your earlier runs. Useful for scheduled runs that should deliver new listings only.",
            "default": false
          },
          "maxConcurrency": {
            "title": "⚡ Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many postings are opened at the same time.",
            "default": 10
          },
          "maxRetries": {
            "title": "🔁 Max retries",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many times a request that fails or is blocked is tried. A blocked request also moves to a proxy (datacenter, then residential up to 3 times).",
            "default": 5
          },
          "requestTimeout": {
            "title": "⏳ Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "How long one request may take before it is retried.",
            "default": 30
          },
          "minDelayMs": {
            "title": "⏳ Minimum delay (ms)",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Shortest random pause before each request, in milliseconds.",
            "default": 0
          },
          "maxDelayMs": {
            "title": "⏳ Maximum delay (ms)",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Longest random pause before each request, in milliseconds.",
            "default": 200
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Optional. By default the actor starts without a proxy and switches to a proxy by itself only when it is blocked. Set a proxy here to start with it."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}