{
  "openapi": "3.0.1",
  "info": {
    "title": "Craigslist Classifieds Scraper — No Login Required",
    "description": "Extract Craigslist listings across real estate, cars, jobs, gigs, services, for-sale, free stuff, community, and events. No login or cookies needed. Supports API-first search, postal-radius scoping, detail/contact enrichment, Smart Scrape, garage-sale dates, and real estate presets.",
    "version": "0.1",
    "x-build-id": "t5is4uXorUuA8BUPc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crowdpull~craigslist-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crowdpull-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/crowdpull~craigslist-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crowdpull-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/crowdpull~craigslist-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crowdpull-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": {
          "searches": {
            "title": "Searches",
            "type": "array",
            "description": "Run one or more Craigslist searches. Each search can override city, postal code, category, query, filters, and max results. Leave empty to use the top-level fields below.",
            "items": {
              "type": "object"
            }
          },
          "startUrls": {
            "title": "Craigslist URLs",
            "type": "array",
            "description": "Optional Craigslist search/category/post URLs. Search URL filters are preserved when possible. Direct post URLs are hydrated 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": "Craigslist city subdomain such as newyork, sfbay, detroit, seattle, chicago, losangeles, or miami. A default postal code is used for popular cities; add postalCode for exact scoping.",
            "default": "newyork"
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Optional list of Craigslist city subdomains. Each city runs the same top-level filters. Add postalCode inside searches[] for exact per-city scoping.",
            "items": {
              "type": "string"
            }
          },
          "postalCode": {
            "title": "Postal Code",
            "type": "string",
            "description": "ZIP/postal code for accurate Craigslist API scoping. Recommended whenever geography matters."
          },
          "searchDistance": {
            "title": "Search Distance",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Radius around the postal code in miles.",
            "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": 3000,
            "type": "integer",
            "description": "Maximum listings to save per normalized search. Craigslist API batches are fetched in 360-item pages.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}