Disclaimer : Real Data API only extracts publicly available data while maintaining a strict policy against collecting any personal or identity-related information.
Extracts Craigslist for the latest posts meeting your search criteria and trigger email notifications. It is an ideal tool for finding classified ad data related to products for sale, potential leads, gigs, housing, job postings, etc. Use our Craigslist classifieds data scraper in the USA. UK, Canada, Germany, France, Spain, Australia, and other countries worldwide.
Just share a search link you want to observe, and the API will explore for the latest posts after the last execution. It will send you an email with a post link, posting date, price, city, image, etc.
Schedule the scraper to run every minute or hour according to your requirements.
It would help to feed JSON input to this scraper according to the following table for Craigslist classifieds data collection.
Field | Type | Description |
---|---|---|
search_url | String | Search links to extract new posts on the platform. After comparing the current run with the previous one, it will give the output with only new post data. |
email_addr | String | Field to send new post email. |
email_subj | String | Email subject line. |
proxy | object | Choose Real Data API proxy server. |
{ "search_url": "https://sfbay.craigslist.org/d/apartments-housing-for-rent/search/apa", "email_addr": "xxx@xxx.com", "email_subj": "New Apartments Search" }
Example with Proxy Server
{ "search_url": "https://sfbay.craigslist.org/d/apartments-housing-for-rent/search/apa", "email_addr": "xxx@xxx.com", "email_subj": "New Apartments Search", "proxy": { "useApifyProxy": true, "apifyProxyGroups": [ "RESIDENTIAL" ] } }
What is the cost of using Craigslist Classified Ads Data Scraper?
Usually, the Craigslist Scraper costing depends on how often you need to execute it. Using it for 60 seconds will cost around 23 compute units. Further, sending an email; consumes 6 Compute Units. Running the scraper every 60 minutes will consume at least three monthly compute units. While storing the output data will cost around 0.50 USD per month.
Example
Running the scraper to get one search every 60 minutes will cost around two USD per month, and you can use it from the free plan of 5 USD per month.
While a single search every 60 seconds will cost 5 USD per month. You can use a monthly personal plan of 49 USD for ten searches each minute.
Proxy Servers
We recommend using Real Data API residential proxy servers with this scraper. The source can block shared proxy servers with their IP addresses. If you want to use our proxies, contact us and ask for a free trial.
Check out how industries use Craigslist Classifieds Scraper worldwide.
E-commerce & Retail
You should have a Real Data API account to execute the program examples. Replace <YOUR_API_TOKEN>
in the program using the token of your actor. Read about the live APIs with Real Data API docs for more explanation.
import { ApifyClient } from 'apify-client';
// Initialize the ApifyClient with API token
const client = new ApifyClient({
token: '<YOUR_API_TOKEN>',
});
// Prepare actor input
const input = {
"search_url": "https://sfbay.craigslist.org/d/apartments-housing-for-rent/search/apa",
"email_addr": "example@example.com",
"email_subj": "New Apartment Post!"
};
(async () => {
// Run the actor and wait for it to finish
const run = await client.actor("andrewtaylor/craigslist-scraper").call(input);
// Fetch and print actor results from the run's dataset (if any)
console.log('Results from dataset');
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
console.dir(item);
});
})();
from apify_client import ApifyClient
# Initialize the ApifyClient with your API token
client = ApifyClient("<YOUR_API_TOKEN>")
# Prepare the actor input
run_input = {
"search_url": "https://sfbay.craigslist.org/d/apartments-housing-for-rent/search/apa",
"email_addr": "example@example.com",
"email_subj": "New Apartment Post!",
}
# Run the actor and wait for it to finish
run = client.actor("andrewtaylor/craigslist-scraper").call(run_input=run_input)
# Fetch and print actor results from the run's dataset (if there are any)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)
# Set API token
API_TOKEN=<YOUR_API_TOKEN>
# Prepare actor input
cat > input.json <<'EOF'
{
"search_url": "https://sfbay.craigslist.org/d/apartments-housing-for-rent/search/apa",
"email_addr": "example@example.com",
"email_subj": "New Apartment Post!"
}
EOF
# Run the actor
curl "https://api.apify.com/v2/acts/andrewtaylor~craigslist-scraper/runs?token=$API_TOKEN" \
-X POST \
-d @input.json \
-H 'Content-Type: application/json'
search_url
Required String
Fill in the search URL to observe new posts.
email_addr
Required String
Submit Email ID to send notification.
email_subj
Required String
Submit Email IDs and subject to send notification.
proxy
Optional Object
Choose Real Data API proxy.
{
"search_url": "https://sfbay.craigslist.org/d/apartments-housing-for-rent/search/apa",
"email_addr": "example@example.com",
"email_subj": "New Apartment Post!"
}