{
  "openapi": "3.0.1",
  "info": {
    "title": "Craigslist Scraper 🇺🇸 (all-in price per listing)",
    "description": "Pull Craigslist listings into clean JSON in seconds: price, location, posting date, photos and a link to every post. Covers for sale, cars, housing, jobs, gigs and services across as many US cities as you want, one all-in price per listing, no key needed.",
    "version": "0.1",
    "x-build-id": "1xs4UzacZeb1fNV5H"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tagadanar~craigslist-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tagadanar-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/tagadanar~craigslist-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tagadanar-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/tagadanar~craigslist-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tagadanar-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": {
          "cities": {
            "title": "Cities",
            "minItems": 1,
            "type": "array",
            "description": "One Craigslist city per entry, using the subdomain from the address bar, for example <code>sfbay</code>, <code>newyork</code>, <code>losangeles</code>, <code>chicago</code>. A full URL like <code>https://sfbay.craigslist.org</code> or a name like <code>San Francisco</code> also works. Each city is searched in turn.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Section",
            "enum": [
              "for-sale",
              "cars",
              "free",
              "housing",
              "apartments",
              "jobs",
              "gigs",
              "services",
              "community"
            ],
            "type": "string",
            "description": "Which part of Craigslist to search. Each choice covers all of that section's subcategories at once.",
            "default": "for-sale"
          },
          "query": {
            "title": "Search terms",
            "type": "array",
            "description": "One search per entry, exactly what you would type into the Craigslist search box, e.g. <code>road bike</code>, <code>iphone 15</code>, <code>studio apartment</code>. Leave empty to browse the whole section.",
            "items": {
              "type": "string"
            }
          },
          "priceFrom": {
            "title": "Price from (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price to include, in dollars."
          },
          "priceTo": {
            "title": "Price up to (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price to include, in dollars."
          },
          "hasImage": {
            "title": "Only listings with a photo",
            "type": "boolean",
            "description": "Keep only postings that include at least one photo.",
            "default": false
          },
          "purveyor": {
            "title": "Posted by",
            "enum": [
              "all",
              "owner",
              "dealer"
            ],
            "type": "string",
            "description": "Limit to private sellers (owner) or businesses (dealer). Applies where Craigslist offers the choice, mostly for-sale and cars.",
            "default": "all"
          },
          "postedSince": {
            "title": "Posted since",
            "enum": [
              "any",
              "today",
              "3days",
              "week",
              "2weeks",
              "month"
            ],
            "type": "string",
            "description": "Keep only listings posted within this window. Set it to today or the last few days to watch a search for brand-new postings on a schedule.",
            "default": "any"
          },
          "postal": {
            "title": "Postal code",
            "type": "string",
            "description": "Search around a US ZIP code, e.g. <code>94103</code>. Combine with the radius below. Leave empty to search the whole city."
          },
          "radiusMiles": {
            "title": "Radius (miles)",
            "minimum": 0,
            "type": "integer",
            "description": "How far around the postal code to search, in miles. Ignored without a postal code."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "newest",
              "oldest",
              "relevance",
              "price-asc",
              "price-desc",
              "nearest"
            ],
            "type": "string",
            "description": "Order of the results, same choices as on the site.",
            "default": "newest"
          },
          "fetchContactInfo": {
            "title": "Include contact details",
            "type": "boolean",
            "description": "Open each posting to add its full description and any phone number or email the seller wrote into the ad. Slower, and best paired with a tight search. Off by default.",
            "default": false
          },
          "maxResults": {
            "title": "Max listings",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many listings across all searches. You are only charged for listings actually delivered.",
            "default": 100
          },
          "searchUrls": {
            "title": "Search URLs (optional, replaces the fields above)",
            "minItems": 1,
            "type": "array",
            "description": "Paste one or more craigslist.org search URLs straight from your browser, filters included, for example <code>https://sfbay.craigslist.org/search/sss?query=bike&hasPic=1</code>. When set, the fields above are ignored.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}