Actor is under maintenance
This Actor may be unreliable while under maintenance. Would you like to try a similar Actor instead?

Facebook Marketplace
- shmlkv/facebook-marketplace
- Modified
- Users 249
- Runs 2.1k
- Created by
Andre Sh
This is a simple scraper for Facebook Marketplace. It uses Playwright to scrape the data
To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running Actors via the API in Apify Docs.
# Set API token
API_TOKEN=<YOUR_API_TOKEN>
# Prepare Actor input
cat > input.json <<'EOF'
{
"startUrls": [
{
"url": "https://www.facebook.com/marketplace/telaviv/apartments-for-rent"
}
]
}
EOF
# Run the Actor
curl "https://api.apify.com/v2/acts/shmlkv~facebook-marketplace/runs?token=$API_TOKEN" \
-X POST \
-d @input.json \
-H 'Content-Type: application/json'