{
  "openapi": "3.0.1",
  "info": {
    "title": "Craigslist Scraper & API: Export Ads, Cars, Rentals, Jobs",
    "description": "Scrape Craigslist without login: ads by keyword, category and city (710 sites, 40+ countries) or from a search or ad URL. Price, photos, bedrooms, mileage, pay, coordinates, full text, address, e-mails in the ad text. New-ad and price-drop alerts. JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "59WhzobsCxekpulYv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~craigslist-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-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/s_actors~craigslist-scraper/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-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/s_actors~craigslist-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-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": "array",
            "description": "What to search for, as you would type it on Craigslist: \"road bike\", \"honda civic\", \"studio apartment\", \"plumber\". One search per keyword and city. Leave empty to list a whole category (choose one below) or paste URLs.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Cities (Craigslist sites)",
            "type": "array",
            "description": "Craigslist sites to search: the site name from its address (\"newyork\", \"sfbay\", \"losangeles\", \"london\", \"toronto\") or the city as listed on craigslist.org/about/sites (\"new york city\", \"SF bay area\"). One search per city. Empty = New York City (unless URLs or countries are given).",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Whole countries",
            "type": "array",
            "description": "Two-letter country codes: every Craigslist site of the country is searched (\"US\" = 415 sites, \"CA\" 55, \"GB\" 27, \"AU\" 12, \"DE\" 15, \"FR\" 13, \"IT\" 11, \"ES\" 11 ...). Combine with \"Ads\" to cap the total.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Craigslist URLs",
            "type": "array",
            "description": "Search pages copied from your browser with the filters already set (newyork.craigslist.org/search/cta?query=civic&max_price=5000) or single ad links (craigslist.org/view/d/<title>/<id> or <site>.craigslist.org/.../<id>.html: one row with the ad page). A search URL keeps its own filters; the form adds the missing ones.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Ads",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum ads in the whole run, over all cities, keywords and URLs. One Craigslist search returns up to 10,000 ads: above it a group category (for sale, housing, jobs ...) is read sub-category by sub-category.",
            "default": 100
          },
          "category": {
            "title": "Category",
            "enum": [
              "ccc",
              "act",
              "ats",
              "kid",
              "cls",
              "eve",
              "com",
              "grp",
              "vnn",
              "laf",
              "mis",
              "muc",
              "pet",
              "pol",
              "rnr",
              "rid",
              "vol",
              "bbb",
              "aos",
              "bts",
              "cms",
              "cps",
              "crs",
              "cys",
              "evs",
              "fgs",
              "fns",
              "hws",
              "hss",
              "lbs",
              "lgs",
              "lss",
              "mas",
              "pas",
              "rts",
              "sks",
              "biz",
              "trv",
              "wet",
              "hhh",
              "apa",
              "swp",
              "hsw",
              "off",
              "prk",
              "rea",
              "roo",
              "sha",
              "sub",
              "vac",
              "sss",
              "ata",
              "ppa",
              "ara",
              "sna",
              "pta",
              "ava",
              "baa",
              "bar",
              "haa",
              "bip",
              "bia",
              "bpa",
              "boo",
              "bka",
              "bfa",
              "cta",
              "ema",
              "moa",
              "cla",
              "cba",
              "syp",
              "sya",
              "ela",
              "gra",
              "zip",
              "fua",
              "gms",
              "foa",
              "hva",
              "hsa",
              "jwa",
              "maa",
              "mpa",
              "mca",
              "msa",
              "pha",
              "rva",
              "sga",
              "tia",
              "tla",
              "taa",
              "tra",
              "vga",
              "waa",
              "wta",
              "jjj",
              "acc",
              "ofc",
              "egr",
              "med",
              "sci",
              "bus",
              "csr",
              "edu",
              "etc",
              "fbh",
              "lab",
              "gov",
              "hum",
              "lgl",
              "mnu",
              "mar",
              "hea",
              "npo",
              "rej",
              "ret",
              "sls",
              "spa",
              "sec",
              "trd",
              "sof",
              "sad",
              "tch",
              "trp",
              "tfr",
              "web",
              "wri",
              "ggg",
              "cpg",
              "crg",
              "cwg",
              "dmg",
              "evg",
              "lbg",
              "tlg",
              "wrg",
              "rrr"
            ],
            "type": "string",
            "description": "Only this category (main groups and their sub-categories). With no keywords it lists the whole category. Default: all for sale (\"for sale\").",
            "default": "sss"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads priced at or above this amount (the currency of the site). Ads with no price are skipped."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads priced at or below this amount. Ads with no price are skipped."
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "any",
              "owner",
              "dealer"
            ],
            "type": "string",
            "description": "Owners (private sellers) or dealers (businesses).",
            "default": "any"
          },
          "photosOnly": {
            "title": "Ads with photos only",
            "type": "boolean",
            "description": "Skip ads without a picture.",
            "default": false
          },
          "titleOnly": {
            "title": "Search titles only",
            "type": "boolean",
            "description": "Match the keywords against the title only, not the whole text (fewer results, less noise).",
            "default": false
          },
          "postedToday": {
            "title": "Posted today only",
            "type": "boolean",
            "description": "Only ads posted today.",
            "default": false
          },
          "postalCode": {
            "title": "ZIP / postal code",
            "type": "string",
            "description": "Only ads within the radius below of this ZIP / postal code. Use it with one city."
          },
          "radius": {
            "title": "Radius (miles)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Miles around the ZIP / postal code (default 25)."
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "relevance",
              "priceAsc",
              "priceDesc"
            ],
            "type": "string",
            "description": "Newest first is what monitoring needs: with \"Only new and price-changed\" a run stops after the first page with nothing new.",
            "default": "newest"
          },
          "includeDetails": {
            "title": "Ad details",
            "type": "boolean",
            "description": "Open every ad page to add the full text, the attributes of the category (VIN, condition, fuel, pets, laundry ...), the street address, the update time, all photos, and the phone numbers written in the text. Same price per ad, slower run.",
            "default": false
          },
          "findEmails": {
            "title": "E-mails from the ad text",
            "type": "boolean",
            "description": "Open every ad page and add the e-mail addresses the advertiser wrote in the text (also \"name at gmail dot com\"). About 5% of ads have one (services 7%, jobs and gigs 4%, for sale and housing almost none). Charged per ad with a new e-mail (the same address again in the run is not charged again), on top of the ad price. Craigslist's anonymous reply address is not an e-mail from the text and is not collected.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new and price-changed",
            "type": "boolean",
            "description": "Output only ads that were not returned for the same search in the previous runs with the same monitor name, plus ads whose price changed (fields isNew, previousPrice, priceChange, priceChangePct). Schedule the Actor to get new ads every few minutes. The first run returns everything.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps the memory of seen ads apart for different schedules."
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Log every request retry.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}