{
  "openapi": "3.0.1",
  "info": {
    "title": "Craigslist Scraper",
    "description": "Craigslist ads from any city or country as clean JSON: price, category, city, neighborhood, photos and posting time, plus the description and attributes on request. Cars, rentals, jobs and everything for sale. Pay per result, no poster personal data.",
    "version": "0.1",
    "x-build-id": "sGwAr6vPdNPyXglzv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lowlanddata~craigslist-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lowlanddata-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/lowlanddata~craigslist-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lowlanddata-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/lowlanddata~craigslist-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lowlanddata-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": {
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Words to search for, the way the site's search box takes them: <code>road bike</code>, <code>\"honda civic\"</code> for a phrase, <code>-damaged</code> to leave a word out, <code>bik*</code> for a wildcard. <b>Ignored when you paste search links or ad IDs</b>; the run status says so."
          },
          "searchQueries": {
            "title": "More search queries",
            "type": "array",
            "description": "More keyword searches in the same run, one per line, each with the same areas, category, price and the other filters of this form. An ad found by two searches comes back once. <b>Max ads counts the whole run</b>: each search gets an equal share of it, and the searches run in the order given. Up to 50.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Craigslist search links",
            "type": "array",
            "description": "Paste search pages copied from craigslist.org after you set the filters on the site: city, category, price, bedrooms, make and model, keywords. Each link is read exactly as the site shows it, so the form fields on this page stand down for it. <b>Search pages only</b>: for single ads use Specific ad IDs. Up to 50.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "areas": {
            "title": "Cities",
            "type": "array",
            "description": "The Craigslist cities to search, by the first part of their address: <code>sfbay</code>, <code>newyork</code>, <code>losangeles</code>, <code>london</code>, <code>toronto</code>, <code>paris</code>. Each city is a separate search, and the cities of different countries can be mixed. Leave empty with no country for the San Francisco Bay Area. Up to 500.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Search every Craigslist city of a country at once, by its two-letter code: <code>US</code>, <code>CA</code>, <code>GB</code>, <code>DE</code>, <code>FR</code>, <code>AU</code>, ... Adds to the cities above. A country has from 1 to over 70 cities, so set <b>Max ads</b> for the whole run."
          },
          "category": {
            "title": "Category",
            "enum": [
              "sss",
              "hhh",
              "jjj",
              "bbb",
              "ggg",
              "cta",
              "cba",
              "cla",
              "ela",
              "foa",
              "fua",
              "hsa",
              "ppa",
              "sga",
              "tla",
              "pta",
              "wta",
              "mca",
              "mpa",
              "rva",
              "sna",
              "hva",
              "bia",
              "bfa",
              "gra",
              "maa",
              "sya",
              "moa",
              "msa",
              "vga",
              "taa",
              "baa",
              "jwa",
              "pha",
              "ara",
              "ata",
              "bka",
              "haa",
              "tra",
              "bpa",
              "rea",
              "apa",
              "biz",
              "for",
              "sys",
              "eve",
              "web",
              "bus",
              "mar",
              "etc",
              "wri",
              "roo",
              "wan",
              "sof",
              "acc",
              "ofc",
              "med",
              "hea",
              "ret",
              "npo",
              "pet",
              "cls",
              "sub",
              "off",
              "prk",
              "bar",
              "tix",
              "lgl",
              "egr",
              "sls",
              "sad",
              "tfr",
              "hum",
              "tch",
              "edu",
              "trd",
              "gov",
              "swp",
              "bik",
              "mcy",
              "gms",
              "sci",
              "cps",
              "crs",
              "evs",
              "hss",
              "lss",
              "lbs",
              "sks",
              "bks",
              "spo",
              "clo",
              "clt",
              "ele",
              "hsh",
              "msg",
              "vac",
              "csr",
              "zip",
              "lgs",
              "fns",
              "rts",
              "aos",
              "bab",
              "tlg",
              "cwg",
              "cpg",
              "lbg",
              "wrg",
              "dmg",
              "crg",
              "evg",
              "emd",
              "tls",
              "boa",
              "jwl",
              "pts",
              "rvs",
              "trp",
              "spa",
              "rej",
              "mnu",
              "fbh",
              "lab",
              "sec",
              "tag",
              "grd",
              "bfs",
              "art",
              "mat",
              "pho",
              "bts",
              "wet",
              "trv",
              "fuo",
              "fud",
              "reo",
              "reb",
              "cto",
              "ctd",
              "app",
              "atq",
              "vgm",
              "hab",
              "mob",
              "fgs",
              "pas",
              "mas",
              "cys",
              "mcd",
              "tid",
              "ppd",
              "ptd",
              "bod",
              "mod",
              "syd",
              "eld",
              "rvd",
              "atd",
              "ard",
              "bad",
              "bid",
              "bkd",
              "bfd",
              "emq",
              "cld",
              "cbd",
              "grq",
              "fod",
              "had",
              "hsd",
              "jwd",
              "mad",
              "msd",
              "phd",
              "sgd",
              "tld",
              "tad",
              "vgd",
              "wad",
              "snw",
              "snd",
              "hvo",
              "hvd",
              "mpo",
              "mpd",
              "bop",
              "bdp",
              "sop",
              "sdp",
              "bpo",
              "bpd",
              "wto",
              "wtd",
              "tro",
              "trb",
              "cms",
              "avo",
              "avd",
              "hws"
            ],
            "type": "string",
            "description": "What to search, as the site's own category list. <code>sss</code> is everything for sale, <code>cta</code> cars and trucks from owners and dealers, <code>apa</code> apartments for rent, <code>jjj</code> every job. Ads people write about themselves (resumes, rooms wanted, missed connections, rants) are not read. Search links take any category of the site.",
            "default": "sss"
          },
          "listingIds": {
            "title": "Specific ad IDs",
            "type": "array",
            "description": "Re-check ads you already know instead of searching: one per line, as the 22-character code at the end of the ad address (the <code>listingId</code> of every dataset item) or the ad's full address. Each one is read from its own page, so it carries the description, the attribute list and the exact dates. An ad that is gone from the site is skipped, named in the log and not billed. <b>When given, the search fields of this form are ignored</b> and the run status says which. Up to 200.",
            "items": {
              "type": "string"
            }
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "private",
              "professional"
            ],
            "type": "string",
            "description": "Only private sellers, or only dealers and businesses. Dealers can post in most categories and in housing, jobs and services."
          },
          "priceMin": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Only include ads priced at least this much, in the currency of the city (dollars, pounds, euros)."
          },
          "priceMax": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Only include ads priced at most this much, in the currency of the city."
          },
          "hasImage": {
            "title": "Only ads with photos",
            "type": "boolean",
            "description": "Skip ads that have no photo.",
            "default": false
          },
          "searchTitlesOnly": {
            "title": "Search titles only",
            "type": "boolean",
            "description": "Match the keywords against ad titles instead of the whole ad text.",
            "default": false
          },
          "postalCode": {
            "title": "Postal code",
            "type": "string",
            "description": "Search around this postal or ZIP code. Needs <b>Search radius</b>."
          },
          "radius": {
            "title": "Search radius",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Distance around the postal code, in the city's own unit (miles in the US and the UK, kilometres elsewhere). Needs <b>Postal code</b>."
          },
          "makeModel": {
            "title": "Make and model",
            "type": "string",
            "description": "Vehicles: the make and model as the site's search form takes them, for example <code>toyota tacoma</code>. Use with a vehicle category such as <code>cta</code>."
          },
          "yearMin": {
            "title": "Minimum year",
            "minimum": 1900,
            "type": "integer",
            "description": "Vehicles from this model year on."
          },
          "yearMax": {
            "title": "Maximum year",
            "minimum": 1900,
            "type": "integer",
            "description": "Vehicles up to this model year."
          },
          "mileageMin": {
            "title": "Minimum mileage",
            "minimum": 0,
            "type": "integer",
            "description": "Vehicles with at least this odometer reading."
          },
          "mileageMax": {
            "title": "Maximum mileage",
            "minimum": 0,
            "type": "integer",
            "description": "Vehicles with at most this odometer reading."
          },
          "bedroomsMin": {
            "title": "Minimum bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Housing: at least this many bedrooms. Use with a housing category such as <code>apa</code>."
          },
          "bedroomsMax": {
            "title": "Maximum bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Housing: at most this many bedrooms."
          },
          "bathroomsMin": {
            "title": "Minimum bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Housing: at least this many bathrooms."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "oldest",
              "relevance",
              "priceAscending",
              "priceDescending"
            ],
            "type": "string",
            "description": "Order of results: newest (best for monitoring), oldest, relevance (the site's own order for keyword searches), or by price.",
            "default": "newest"
          },
          "maxItems": {
            "title": "Max ads",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many ads. Free-plan runs are capped at 5 items. The form starts at 25 for a cheap first run. That is the form's prefill, not a cap on your plan; clear it to use the default of 1000. The site serves up to 10,000 ads per search; narrow by city, category or price to reach the rest.",
            "default": 1000
          },
          "scrapeDetails": {
            "title": "Fetch ad pages",
            "type": "boolean",
            "description": "The search row carries the title, price, city, area, photos, posting time and the key facts (bedrooms, size, mileage, pay). Turn this on to read each ad's own page for the description, the full attribute list (condition, make, model, year, fuel, transmission, and more) and the exact update time. One extra request per ad, so a run is slower. Phone numbers, email addresses, links and handles in the text are removed; street addresses, coordinates and posters' names are never read.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy settings. craigslist.org answers Apify datacenter proxies, so the default needs nothing from you. Leave it as it is.",
            "default": {
              "useApifyProxy": true
            }
          },
          "reportFailures": {
            "title": "Anonymous reports to the developer",
            "type": "boolean",
            "description": "Only two things are sent to the developer. When a run fails: the actor name and build, an error category, the truncated error message and a one-way hash of your input. At the start of every run: the actor name, the build, a one-way hash of your Apify account id and whether the account is on a paid Apify plan. <b>Your input, your results, your name and your account id itself are never sent.</b> Turn this off and nothing is sent; the actor behaves the same.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}