# Craigslist Search Results Scraper 🔍 (`easyapi/craigslist-search-results-scraper`) Actor

Scrape Craigslist search results for items with detailed information including titles, prices, locations, posting times, and image URLs. Perfect for market research, price monitoring, and inventory tracking.

- **URL**: https://apify.com/easyapi/craigslist-search-results-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** E-commerce, Integrations, Other
- **Stats:** 143 total users, 20 monthly users, 73.0% runs succeeded, 6 bookmarks
- **User rating**: 4.00 out of 5 stars

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Craigslist Search Results Scraper 🔍

Extract detailed information from Craigslist search results pages with this powerful scraper. Get comprehensive data about listings including titles, prices, locations, posting times, and images.

### Features ✨

- 🚀 Fast and efficient scraping with Puppeteer
- 🛡️ Built-in proxy support
- 🤖 Anti-detection mechanisms
- 📊 Structured JSON output
- 🔄 Automatic pagination handling
- ⏱️ Real-time data extraction
- 📸 Image URL extraction
- 📍 Location data included

### Usage 💡

Simply provide one or more Craigslist search URLs and set your desired maximum number of items. The actor will automatically:

1. Navigate through search results
2. Extract detailed listing information
3. Handle pagination
4. Save structured data in JSON format

### Output Data Structure 📋

For each listing, you'll get:

- Search URL used
- Post ID
- Title
- Price
- Location
- Posted time
- Post URL
- Thumbnail URL
- Timestamp of when the data was scraped

### Use Cases 🎯

- Market research and price analysis
- Inventory monitoring
- Competition tracking
- Deal finding
- Real estate market analysis
- Local market trends analysis

### Input Parameters ⚙️

| Field | Type | Description |
|-------|------|-------------|
| searchUrls | Array | List of Craigslist search URLs to scrape |
| maxItems | Integer | Maximum number of items to scrape (optional) |
| proxyConfiguration | Object | Proxy settings (optional) |

### Tips for Best Results 💪

1. Use specific search queries for better results
2. Set appropriate maxItems limit based on your needs
3. Consider using proxies for large-scale scraping
4. Monitor rate limits and adjust accordingly

Need help? Feel free to reach out through Apify's support channels! 🤝

#### Input Example

A full explanation of an input example in JSON.

```json
{
    "searchUrls": [
        "https://chico.craigslist.org/search/sss?query=bike"
    ,
    "maxItems": 130
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```json
[
    {
        "searchUrl": "https://chico.craigslist.org/search/sss?query=bike",
        "post": {
            "postId": "7822160593",
            "title": "Bike Tubes (3) - 26 inch with Presta Valves",
            "price": "$10",
            "location": "Oroville",
            "postedTime": "15 mins ago",
            "postUrl": "https://chico.craigslist.org/spo/d/oroville-bike-tubes-inch-with-presta/7822160593.html",
            "thumbnailUrl": "https://images.craigslist.org/d/7822160593/00f0f_3rrfV3LGhJA_0CI0rs_300x300.jpg"
        },
        "scrapedAt": "2025-02-07T07:47:01.642Z"
    },
    ...
]
```

### Related Actors

- 🏠 [Realtor.com Scraper](https://apify.com/easyapi/realtor-com-scraper) - Extract comprehensive property listings with detailed information from Realtor.com
- 🏠 [Trulia Property Scraper](https://apify.com/easyapi/trulia-property-scraper) - Scrape real estate listings from Trulia.com with detailed property information
- 🏠 [VRBO Property Listing Scraper](https://apify.com/easyapi/vrbo-property-listing-scraper) - Extract vacation rental listings with comprehensive property details
- 🏠 [99acres.com Scraper](https://apify.com/easyapi/99acres-com-scraper) - Scrape property listings from India's leading real estate portal
- 🏠 [Housing.com Scraper](https://apify.com/easyapi/housing-com-scraper) - Extract detailed property listings with comprehensive information
- 🛍️ [Meesho Product Search Scraper](https://apify.com/easyapi/meesho-product-search-scraper) - Scrape product listings from search results with detailed information
- 🔍 [OLX Search Results Scraper](https://apify.com/easyapi/olx-search-results-scraper) - Extract detailed product listings from OLX search results
- 🛍️ [Myntra Product Scraper](https://apify.com/easyapi/myntra-product-scraper) - Extract detailed fashion product information from search results
- 🛍️ [AJIO Product Scraper](https://apify.com/easyapi/ajio-product-scraper) - Get comprehensive fashion product data from AJIO marketplace
- 🛒 [Costco Product Search Scraper](https://apify.com/easyapi/costco-product-search-scraper) - Extract detailed product information from Costco.com
- 🛍️ [Lowes Product Scraper](https://apify.com/easyapi/lowes-product-scraper) - Scrape comprehensive product listings from Lowes.com
- 🛒 [Sam's Club Product Scraper](https://apify.com/easyapi/sam-s-club-product-scraper) - Extract detailed product data from Sam's Club search results
- 🛍️ [Hobby Lobby Products Scraper](https://apify.com/easyapi/hobby-lobby-products-scraper) - Scrape product data with detailed information and pricing
- 🛍️ [Lidl Product Scraper](https://apify.com/easyapi/lidl-product-scraper) - Extract comprehensive product information from Lidl's online store
- 🛍️ [Flipkart Product Scraper](https://apify.com/easyapi/flipkart-product-scraper) - Scrape detailed product listings from India's leading e-commerce platform
- 🍁 [YellowPages.ca Scraper](https://apify.com/easyapi/yellowpages-ca-scraper) - Extract comprehensive business listings with contact details

# Actor input Schema

## `searchUrls` (type: `array`):

List of Craigslist search URLs to scrape

## `maxItems` (type: `integer`):

Maximum number of items to scrape

## `proxyConfiguration` (type: `object`):

Proxy settings for the scraper

## Actor input object example

```json
{
  "searchUrls": [
    "https://chico.craigslist.org/search/sss?query=bike"
  ],
  "maxItems": 130,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/craigslist-search-results-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/craigslist-search-results-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call easyapi/craigslist-search-results-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,easyapi/craigslist-search-results-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/7OpllY7a2EqCGUobQ/builds/gUZD1CPOsGZpSgTxJ/openapi.json
