
Pinterest Data Extractor
- epctex/pinterest-scraper
- Modified
- Users 75
- Runs 1.7k
- Created by
epctex
Unleash the potential of our Pinterest Scraper to gather pins, comments, user info, photos, videos, and deep insights. Extract titles, prices, creation date, user language, user locale, images, hashtags, and more. Export in XML, JSON, CSV, Excel, or HTML for unlimited and fast insights!
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": [
"https://www.pinterest.com/pin/1054827543951238554/",
"https://www.pinterest.com/ideas/beauty/935541271955/",
"https://www.pinterest.com/dudadelsanto/",
"https://www.pinterest.com/dudadelsanto/nail-inspo/",
"https://www.pinterest.com/search/pins/?q=Valentine%E2%80%99s%20Nail%20Art&rs=hub_page"
],
"maxItems": 20,
"endPage": 1,
"extendOutputFunction": "($) => { return {} }",
"customMapFunction": "(object) => { return {...object} }",
"proxy": {
"useApifyProxy": true
}
}
EOF
# Run the Actor
curl "https://api.apify.com/v2/acts/epctex~pinterest-scraper/runs?token=$API_TOKEN" \
-X POST \
-d @input.json \
-H 'Content-Type: application/json'