Craigslist API Python Client
Extract Craigslist data with our Craigslist API Python client. Get programmatic access to jobs postings, housing listings, for sale items, gigs, services, community posts, events, resumes, and more using simple Python code. Start free, no credit card required.

POWERING THE WORLD'S TOP DATA-DRIVEN TEAMS
Integrate our Craigslist API
The Apify API client for Python is the official library that allows you to use Craigslist API in Python, providing convenience functions and automatic retries on errors. Get started with simple pip installation and robust error handling built-in.
Python
1from apify_client import ApifyClient2
3# Initialize the ApifyClient with your Apify API token4# Replace '<YOUR_API_TOKEN>' with your token.5client = ApifyClient("<YOUR_API_TOKEN>")6
7# Prepare the Actor input8run_input = {9 "urls": [{ "url": "https://yuma.craigslist.org/search/ggg#search=1~list~0~0" }],10 "proxyConfiguration": { "useApifyProxy": True },11 "maxAge": 15,12 "maxConcurrency": 4,13}14
15# Run the Actor and wait for it to finish16run = client.actor("ivanvs/craigslist-scraper").call(run_input=run_input)17
18# Fetch and print Actor results from the run's dataset (if there are any)19print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])20for item in client.dataset(run["defaultDatasetId"]).iterate_items():21 print(item)22
23# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start
Get data with Craigslist API Python client
Use our Python API client to extract Craigslist data by providing URLs from any supported category or search page. The API returns structured data, including jobs postings, housing listings, for sale items, gigs, services, community posts, events, resumes, and more, which is perfect for pandas DataFrames, data analysis, and Python applications.
Input
{ "urls": [ { "url": "<https://newyork.craigslist.org/search/ggg>" } ], "maxConcurrency": 1, "proxyConfiguration": { "useApifyProxy": true }}
Output
[ { "_fromStrapi": true, "id": "7536953147", "url": "<https://newyork.craigslist.org/que/lbg/7536953147.html>", "post": "QR Code Link to This Post\\n \\n \\nDeli experience require, Time must be flexible know how to Prepare sandwiches,breakfast, salads. Must know how to operating slicer and how to sanitize equipment, clean and Organize and Honesty responsible. A good attitude and desire to learn, must speaking Spanish and fluent in English. Must work in Sunday. stops in person \\naround 8am to 2 pm or text me 6467446519 Thank you. 40 hours a week", "label": "post", "price": "$15", "title": "Deli grill men", "notices": [ "do NOT contact me with unsolicited services or offers" ], "category": "gigs", "datetime": "2022-09-22T11:13:56-0400", "latitude": "40.759908", "location": "Astoria", "longitude": "-73.937645", "mapAccuracy": "5", "phoneNumbers": [ "909-9909-3322" ] }]
1Sign up for Apify account
Creating an account is quick and free — no credit card required. Your account gives you access to more than 5,000 scrapers and APIs.
Get started for free
2Install Apify Python client
Install the Apify Python client using pip: pip install apify-client. This package provides a simple interface to interact with Craigslist API from your Python applications.
3Get your Apify API token
Go to settings in the Apify console and navigate to the “API & Integrations” tab. There, create a new token and save it for later.
4Integrate Craigslist API
Navigate to the Craigslist API page and click on the API dropdown menu in the top right corner. In the dropdown menu, you can see API clients, API endpoints, and more. Use the provided Python code examples to integrate Craigslist API into your Python application.
Open Craigslist Python API5Get your Craigslist data via API
The Craigslist API returns structured JSON data that works perfectly with pandas, NumPy, and other Python data analysis libraries.
Why use Apify?
Never get blocked
Every plan (free included) comes with Apify Proxy, which is great for avoiding blocking and giving you access to geo-specific content.
Customers love us
We truly care about the satisfaction of our users and thanks to that we're one of the best-rated data extraction platforms on both G2 and Capterra.
Monitor your runs
With our latest monitoring features, you always have immediate access to valuable insights on the status of your web scraping tasks.
Export to various formats
Your datasets can be exported to any format that suits your data workflow, including Excel, CSV, JSON, XML, HTML table, JSONL, and RSS.
Integrate Apify to your workflow
You can integrate your Apify runs with platforms such as Zapier, Make, Keboola, Google Drive, or GitHub. Connect with practically any cloud service or web app.
Large developer community
Apify is built by developers, so you'll be in good hands if you have any technical questions. Our Discord server is always here to help!
Python-ready Craigslist data extraction
Connect to hundreds of apps right away using ready-made integrations, or set up your own with webhooks and our API.
Explore our other Craigslist Python APIs
We have multiple Craigslist Python APIs available in our store. Browse our collection to find the one that works best for your project.

Craigslist Scraper (Pay Per Result)
ivanvs/craigslist-scraper-pay-per-result
Extract data from classified advertisements on Craigslist. Scrape details from jobs, housing, items wanted, items for sale, services, community service, gigs, events and resumes listed on Craigslist. Download listings data in JSON, XML, Excel, and other versatile
79

Craigslist Search Results Scraper 🔍
easyapi/craigslist-search-results-scraper
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.
15

Craigslist Email Scraper
scraper-mind/Craigslist-email-scraper
Craigslist Email Scraper – Extract Craigslist emails fast & accurately! 🔍 Search by keywords, location & domain to find targeted contacts. Perfect for lead generation, local marketing, research & outreach. Supports proxy use for seamless scraping. 📊 Download in JSON, CSV, Excel!
38
Craigslist does not offer an official API for public use. However, we provide our own unofficial Craigslist API that gets all the up-to-date data you need, serving as an alternative to access Craigslist information programmatically for your projects and applications.
Yes, you can try our Craigslist API for free! No credit card required, no strings attached. Just create an Apify account with free $5 monthly prepaid usage, get your API token, and start using the Craigslist API.
Craigslist API allows you to get data such as post titles and descriptions, pricing information, location details with longitude and latitude coordinates, contact phone numbers, posting dates and times, image URLs, listing categories, amenities and attributes, employment details for job postings, housing specifications, and seller information for comprehensive classified data analysis.
It is legal to scrape publicly available data from Craigslist. However, you should always review and comply with Craigslist terms of service and any applicable laws and regulations regarding web scraping. Additionally, be mindful of any rate limits or restrictions imposed by Craigslist to avoid potential issues.
Getting started with our Craigslist API is easy — simply create a free Apify account, get your API token, and start using the Craigslist API in Python, JavaScript, CLI, cURL, OpenAPI, or MCP.