# Pinterest Videos Scraper: MP4 Links, Boards & Stats (`xmolodtsov/pinterest-videos-scraper`) Actor

Scrape pinterest videos from keywords, public boards, profiles or Pin URLs. Export MP4 and HLS links, thumbnails, duration, pinners, boards and engagement as one row per video.

- **URL**: https://apify.com/xmolodtsov/pinterest-videos-scraper.md
- **Developed by:** [GoFetch](https://apify.com/xmolodtsov) (community)
- **Categories:** Social media, Videos
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

Scrape pinterest videos from keywords, public boards, profiles and individual Pin URLs. Get direct MP4 and HLS links alongside thumbnails, duration, pinner and board information, and public engagement counts. This scraper helps content researchers and analysts collect structured video metadata without signing in or downloading video files.

### What data you get

Each output row represents one unique public video. Image Pins may appear in search or feeds, but they are scanned only: they are never emitted or charged. Repeated videos across keywords, boards and profiles are deduplicated by `videoId` within the run, including after a restart.

The dataset includes:

- `videoUrl` and `hlsUrl`: direct MP4 and streaming playlist URLs. At least one is present in every row.
- `thumbnail`, `durationSeconds`, `width` and `height`: media preview and dimensions.
- `id`, `videoId`, `pinUrl`, `title`, `description` and `createdAt`: public identifiers and Pin text.
- `pinner`, `creator` and `board`: the public accounts and board supplied by Pinterest.
- `reactionCounts`, `repinCount`, `saveCount`, `commentCount` and `shareCount`: engagement when available.
- `captionUrls` and `source`: available caption links and the keyword or URL that produced the row.

Missing values remain `null`. In particular, Pinterest sometimes returns opaque `e1_` Pin identifiers. Those rows retain their media `videoId`, but `id` and `pinUrl` are null because a numeric Pin URL cannot be resolved from them. The scraper never invents a Pin URL. Titles and save counts can also be null; a missing count is not zero.

### How to use it

#### Apify Console

Open the actor in [Apify Console](https://console.apify.com/actors), enter one or more search keywords, and set the maximum number of video results. You can instead supply public board, profile or numeric Pin URLs. Start with the prefilled keyword `easy recipes` and 10 results. Once the run finishes, open the Dataset tab and download JSON, CSV, Excel or another supported format.

For broader research, use several specific keywords or add relevant boards. Results per keyword are limited by Pinterest's public search. More keywords and boards can provide more videos, though overlap is removed and no particular result count is promised. `maxItems` is a cap across all inputs, not a requested depth for each keyword.

#### API and MCP

Start a run through the Apify API. Keep the token in your environment and substitute your own input:

```bash
curl --request POST \
  'https://api.apify.com/v2/acts/xmolodtsov~pinterest-videos-scraper/runs' \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{"searchQueries":["easy recipes"],"maxItems":10}'
```

The response supplies the run ID and `defaultDatasetId`. Read the saved rows with `GET https://api.apify.com/v2/datasets/DATASET_ID/items?format=json`. For code examples and asynchronous execution, see the [Apify API documentation](https://docs.apify.com/api/v2).

You can also call this actor through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Pass the same input object from your MCP client and retrieve the resulting dataset for analysis. No Pinterest credentials are required.

### Pricing

One result means one unique video row successfully saved to your dataset. A Story/Idea Pin with several playable video pages produces one row per distinct media ID, sharing the same Pin URL when Pinterest exposes a numeric Pin ID. Scanned image Pins and repeated video IDs are not billed as results. There are no separate media-download or detail-enrichment events.

| Apify plan | Price per 1,000 video results |
| --- | --- |
| FREE | $2.00 |
| BRONZE | $1.80 |
| SILVER | $1.60 |
| GOLD | $1.40 |

Platinum and Diamond use the Gold rate. At the listed rates, 10 results cost $0.020 on Free or $0.014 on Gold; 200 results cost $0.40 on Free or $0.28 on Gold. These examples describe result charges before any available platform credits. The Free example of 200 results would require multiple eligible runs. Check the actor's Pricing tab for the price applied to your account.

#### Is it free?

Apify's free plan can use available platform credits. The developer limits free-plan use to **100 results per run and 20 runs per calendar month** (UTC). A run after the monthly allowance is exhausted succeeds with a quota message before fetching Pinterest data. A paid Apify plan removes these developer free limits; `maxItems`, your charge limit and public-data availability still apply. Free runs use Apify datacenter Proxy and ignore custom proxy URLs. Residential groups and country targeting are unsupported on every plan. Admission is tied to the platform run start month and recovered from the developer-owned quota queue on migration; caller-writable run storage cannot grant admission.

### Input

| Field | Meaning |
| --- | --- |
| `searchQueries` | Keyword strings, 1–300 characters before trimming; whitespace-only strings are invalid. Trimmed duplicates are removed case-sensitively. Default `[]`; the prefill is `["easy recipes"]`. |
| `startUrls` | JSON array of full public board, profile root or numeric Pin URLs, as strings or `{ "url": "https://www.pinterest.com/…/" }` objects. Other object fields are ignored. Default `[]`. Paste the array in the Console JSON editor. |
| `maxItems` | Integer from 1 to 9007199254740991. Maximum unique video rows successfully saved across all inputs, including rows restored after restart; one row per distinct playable video ID, not per scanned Pin or input. Default 100; prefill 10. `0` is invalid. Free runs clamp larger values to 100; public availability, scan bounds and your charge limit can stop earlier. |
| `proxyConfiguration` | JSON settings object. Default `{}` uses Apify datacenter Proxy, as does prefill `{ "useApifyProxy": true }`. Null is invalid. Paid runs may use custom proxies or direct access; details below. |

Supply at least one keyword or URL. Either array may be empty when the other has an entry; both empty or omitted is invalid. Up to 100 combined entries are accepted, counted before deduplication. Any invalid entry rejects the entire run up front as `invalid:`, naming its field and index, such as `startUrls[1]`. Validation happens before monthly free quota admission and proxy use, even if other entries are valid. There are no top-level field aliases; unknown top-level fields are ignored.

URL inputs accept HTTP or HTTPS, with or without `www`. Mobile share URLs such as `https://m.pinterest.com/pin/123/` and regional hosts such as `https://www.pinterest.co.uk/pin/123/`, `https://pl.pinterest.com/chef/` and `https://www.pinterest.de/chef/food/` normalize to `https://www.pinterest.com/…/`. The host allow-list accepts two-letter country subdomains of `pinterest.com`, plus `pinterest.<cc>`, `pinterest.co.<cc>` and `pinterest.com.<cc>` country domains with optional `www` or `m`. Query/tracking parameters and fragments are removed, including from the output `source`. Paths use letters, digits, underscores or hyphens; Pin IDs use digits. A trailing slash is optional.

The following forms are unsupported and rejected before requests:

- `pin.it` short links: they are never resolved; paste the full public Pinterest URL from your browser.
- Bare numeric Pin IDs, whether strings or numbers, and hostnames without `http://` or `https://`: paste the full Pin URL.
- Board section URLs such as `/chef/food/desserts/`: use the whole board `/chef/food/`.
- Profile sub-tabs `/_created/`, `/_saved/` and `/pins/`: use the profile root `/chef/`.
- Search URLs: put the keywords in `searchQueries`.
- Opaque Pin IDs, login and other non-content pages, URL credentials and nonstandard ports. Private/login-only data is unavailable; a syntactically valid URL does not guarantee public access.

For proxy settings, `useApifyProxy` must be boolean. On paid runs, nonempty `proxyUrls` (an array of full HTTP(S) proxy URL strings) take precedence; otherwise `useApifyProxy: false` selects direct access. Empty `proxyUrls: []` selects no custom proxy. `apifyProxyGroups` and the SDK alias `groups` are combined, case-insensitive arrays of datacenter group names using letters, digits and underscores; `[]` or `AUTO` uses automatic datacenter. Free runs always use Apify datacenter Proxy and ignore valid custom URLs and group selections. Residential groups, country targeting and every other proxy option are rejected as `invalid:` before quota/proxy use on every plan.

```json
{
  "searchQueries": ["easy recipes", "diy crafts"],
  "startUrls": [],
  "maxItems": 200,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

Standard videos, Story/Idea video pages and video carousel slots are returned when Pinterest exposes playable MP4/HLS media. Story blocks omitted from a feed are read through the public parent Pin reference. External embedded players (for example Vimeo) without a direct media URL are not extracted. Collage-specific video media has not been verified; only its standard video or Story/carousel media is returned.

Search inputs run first, followed by URL inputs. The overall cap can stop processing before later inputs begin. A specific Pin that is an image produces no video row. Public profile and board feeds also contain images, so scanned Pins and saved videos are different counts.

### Output

The following JSON is one complete row from the verified prefill dataset. Numeric Pin IDs and counts may be null when Pinterest does not expose them. Media links are returned as supplied by Pinterest and can expire; fetch or process them soon after the run. The scraper does not download or store the videos.

```json
{
  "id": null,
  "videoId": "5525971832645222871",
  "pinUrl": null,
  "title": "Honey BBQ Chicken Sliders: Sweet, Sticky & Easy Party Recipe",
  "description": "These honey BBQ chicken sliders are sweet, sticky, and perfect for parties, game days, or an easy weeknight dinner. Tender chicken in a honey bbq glaze piled into soft slider buns makes a crowd-pleasing chicken recipe everyone will love. Visit nestora.medsaca.com for more delicious recipes and fresh meal inspiration!",
  "videoUrl": "https://v1.pinimg.com/videos/iht/expMp4/ec/f1/af/ecf1af94103afcd2da9a9ea32e9bbd7e_720w.mp4",
  "hlsUrl": "https://v1.pinimg.com/videos/iht/hls/ec/f1/af/ecf1af94103afcd2da9a9ea32e9bbd7e.m3u8",
  "thumbnail": "https://i.pinimg.com/videos/thumbnails/originals/ec/f1/af/ecf1af94103afcd2da9a9ea32e9bbd7e.0000000.jpg",
  "durationSeconds": 64.467,
  "width": 720,
  "height": 1280,
  "pinner": {
    "id": "1077908629472184404",
    "username": "jamarchran",
    "fullName": "FEELINGS",
    "followerCount": 18,
    "avatar": "https://i.pinimg.com/140x140_RS/b2/97/13/b2971397ca88276297b89fd4a7d2704b.jpg",
    "isVerified": null
  },
  "creator": {
    "id": "1077908629472184404",
    "username": "jamarchran",
    "fullName": "FEELINGS",
    "followerCount": 18,
    "avatar": "https://i.pinimg.com/140x140_RS/b2/97/13/b2971397ca88276297b89fd4a7d2704b.jpg",
    "isVerified": null
  },
  "board": {
    "id": "1077908560753982215",
    "name": "Real",
    "url": "/jamarchran/real/",
    "pinCount": null
  },
  "reactionCounts": {
    "1": 135
  },
  "repinCount": 1182,
  "saveCount": 1189,
  "commentCount": 5,
  "shareCount": 122,
  "createdAt": "Sun, 25 Oct 2026 21:33:07 +0000",
  "captionUrls": null,
  "source": "easy recipes"
}
```

![Pinterest video output preview showing media links, duration, counts and account information](https://api.apify.com/v2/key-value-stores/2DxCOvbMjhvK3S1qP/records/pinterest-videos-scraper-output.png)

The default overview displays video IDs, Pin and media links, thumbnails, duration, saves, repins, comments, pinner and board. Export JSON to retain nested objects and caption maps. CSV is useful for flat comparisons; expand nested fields in your integration if you need account usernames as separate columns.

### Guarantees and failure semantics

Saved rows remain available even if a later input fails. A run with saved rows ends `SUCCEEDED` with a partial-results message when a subsequent scan cannot finish. Inspect `STATISTICS` in the default key-value store to compare completed inputs, scanned Pins, requests, failures and saved rows.

With zero saved rows, a run succeeds as “No results” only after all requested scans finish with valid public responses and no video results. A keyword or board containing no videos is a confirmed empty answer when its scan completes. An interrupted scan is not proof that no videos exist.

A run is `FAILED` when it cannot produce rows and cannot confirm a complete empty answer. Its status begins with a category: `invalid:` for unsupported input, `blocked:` for HTTP access restrictions or actual challenge pages, `network:` for transport or server errors, `timeout:` for exhausted scan time or pagination bounds, or `outdated:` for changed response formats and malformed resource requests. An HTTP 403 saying “Invalid Resource Request” is treated as `outdated:`, because changing IPs does not repair a malformed request.

Each input scan has a 60-page and three-minute bound. The actor stops starting requests before the run deadline to leave time for statistics and shutdown. It follows public bookmarks to the end marker, retries transport failures at most three times with fresh sessions, and never logs in. Reaching your result or charge cap stops the run cleanly. Dataset writes are serialized, and already saved video IDs are loaded on restart to avoid charging for those rows again.

An empty intermediate page with a continuation bookmark does not finish a scan. If a dataset append loses its acknowledgement, the actor stops scheduling, reads the default dataset to reconcile saved counts, and finishes with the rows that are present. It never retries that append. A persisted write marker also prevents another append after migration interrupted the write. Statistics or shutdown reporting errors preserve the saved outcome and its message in the run log.

This is a public-data collector, so changing search ranking, unavailable Pins and changes to Pinterest's guest endpoints can affect coverage. A successful run confirms the rows saved, not complete access to Pinterest's entire index.

### Integrations

Use Apify dataset exports in spreadsheets, a reporting pipeline or a content inventory. Schedule repeat runs through Apify when you need fresh snapshots, or attach webhooks to process a finished run. [Apify integrations](https://docs.apify.com/platform/integrations) cover automation tools, API clients and dataset delivery.

Keep `videoId` as the identity in your own database. Deduplication is per run, so a new scheduled run can return a video seen yesterday with updated engagement. Store the collection time in your pipeline if you compare snapshots. Null counts should remain unknown values when calculating averages or changes.

### More scrapers from this developer

**TikTok:** [TikTok Search Scraper](https://apify.com/xmolodtsov/tiktok-search-scraper): Videos and creators for any keyword, pay per result ·
[TikTok Profile Scraper (Pay Per Result)](https://apify.com/xmolodtsov/tiktok-profile-scraper): Profiles, followers and latest posts by username ·
[TikTok Comments Scraper](https://apify.com/xmolodtsov/tiktok-comments-scraper): Comments and full reply threads from any video ·
[TikTok Hashtag Scraper](https://apify.com/xmolodtsov/tiktok-hashtag-scraper): Videos for any hashtag, with views, likes and music ·
[TikTok Sound & Music Scraper](https://apify.com/xmolodtsov/tiktok-sound-scraper): Videos that use a sound or song ·
[TikTok Top Ads Scraper](https://apify.com/xmolodtsov/tiktok-top-ads-scraper): Public Creative Center ad rankings, engagement, media and landing pages

**Social & news:** [Reddit Search Scraper](https://apify.com/xmolodtsov/reddit-scraper): Posts by keyword, subreddit or author ·
[Google News Scraper](https://apify.com/xmolodtsov/google-news-scraper): Google News results as clean full-text articles ·
[Threads Replies Scraper](https://apify.com/xmolodtsov/threads-replies-scraper): Public post replies, likes, authors and inline nested replies

**Instagram:** [Instagram Reel Scraper](https://apify.com/xmolodtsov/instagram-reel-scraper): Public profile reels, plays, captions, music and media URLs ·
[Instagram Comment Scraper](https://apify.com/xmolodtsov/instagram-comment-scraper): Public post and reel comments, likes, timestamps and usernames ·
[Instagram Post Scraper](https://apify.com/xmolodtsov/instagram-post-scraper): Public profile posts, likes, captions, locations and media URLs

**E-commerce:** [Prom.ua Product Search Scraper](https://apify.com/xmolodtsov/prom-ua): Prom.ua product search results, no browser needed ·
[Amazon Product Search & Bestsellers Scraper](https://apify.com/xmolodtsov/amazon-search-scraper): Search results, bestsellers and product details from Amazon ·
[AliExpress Search Scraper](https://apify.com/xmolodtsov/aliexpress-search-scraper): AliExpress products by keyword with prices, orders and shipping ·
[AliExpress Product Reviews Scraper](https://apify.com/xmolodtsov/aliexpress-reviews-scraper): Public product reviews, ratings, buyer photos and follow-up feedback

**Maps & leads:** [Google Maps Scraper](https://apify.com/xmolodtsov/google-maps-scraper): Places, leads and emails from Google Maps

**Ads:** [Facebook Ad Library Scraper (Meta Ads Library)](https://apify.com/xmolodtsov/facebook-ads-library-scraper): Ads from the Meta Ad Library, with EU reach and payers ·
[Google Ads Transparency Scraper](https://apify.com/xmolodtsov/google-ads-transparency-scraper): Google ad creatives by advertiser or domain, with regional details

**Video:** [YouTube Transcript Scraper](https://apify.com/xmolodtsov/youtube-transcript-scraper): Transcripts, subtitles and captions from YouTube videos ·
[YouTube Shorts Scraper](https://apify.com/xmolodtsov/youtube-shorts-scraper): Shorts of any channel with exact views, likes and duration ·
[YouTube Channel Scraper](https://apify.com/xmolodtsov/youtube-channel-scraper): Every video of a channel, with channel stats ·
[YouTube Search Scraper](https://apify.com/xmolodtsov/youtube-search-scraper): Search results and videos for any keyword ·
[YouTube Comments Scraper](https://apify.com/xmolodtsov/youtube-comments-scraper): Comments, replies and likes from any video ·
[Bilibili Comments Scraper](https://apify.com/xmolodtsov/bilibili-comments-scraper): Public hot comments and reply threads by video or keyword

**Jobs:** [SEEK Job Listings Scraper](https://apify.com/xmolodtsov/seek-jobs-scraper): Public AU/NZ job listings, salaries and redacted descriptions

### FAQ

#### How many videos can one keyword return?

The public search decides which Pins and how many pages are available. Coverage and the proportion of videos vary. The actor makes no per-keyword volume promise. Use more relevant keywords and public boards for wider coverage, and remember that duplicate video IDs reduce the final count.

#### Why is the Pin URL missing?

Pinterest can expose an opaque `e1_` ID instead of a numeric Pin ID. The video still has a media ID and playable link, but the scraper leaves `id` and `pinUrl` null rather than constructing an unusable URL. You can identify and join that row with `videoId`.

#### Why do media URLs stop working later?

Pinterest controls its media hosting. Direct MP4, HLS, thumbnail and caption URLs can expire or change, and a Pin may be removed. Run again for fresh public metadata when necessary. The actor does not provide permanent file hosting.

#### Can it scrape private boards or sign into an account?

No. It reads public guest responses only, with no login, account cookies or private-data access. Do not supply credentials in the input.

#### Is it legal to scrape Pinterest videos?

Use this actor for public data only. Public availability does not grant permission to reuse copyrighted videos or remove your privacy obligations. Assess your purpose, applicable terms, copyright, GDPR and CCPA requirements, including any lawful basis, retention and deletion responsibilities. Collect only the information needed for your use case.

### Support

Open an issue from this actor's [Apify Store page](https://apify.com/xmolodtsov/pinterest-videos-scraper). Include the Apify run ID, the input type, the expected result and whether the dataset was empty or partial. Do not include access tokens, passwords or private account information. The run ID and statistics help distinguish an empty public search from a transport or endpoint failure.

# Changelog

This Actor's version history is a separate document: https://apify.com/xmolodtsov/pinterest-videos-scraper/changelog.md

# Actor input Schema

## `searchQueries` (type: `array`):

Keyword strings, 1–300 characters before trimming; whitespace-only strings are invalid. Trimmed duplicates are removed case-sensitively. Default \[]; empty is allowed only with startUrls. At most 100 combined keywords and URLs before deduplication. Public search depth varies; more keywords or boards can broaden coverage.

## `startUrls` (type: `array`):

Full public board, profile root or numeric Pin URLs as strings or {url: string} objects (other object fields ignored). HTTP and HTTPS, missing www, m.pinterest.com mobile share URLs and two-letter country subdomains of pinterest.com or pinterest.<cc>/pinterest.co.<cc>/pinterest.com.<cc> domains (optional www or m) normalize to https://www.pinterest.com with query/tracking parameters and fragments removed. Paths use letters, digits, underscores or hyphens; Pin IDs use digits. Bare numeric Pin IDs (strings or numbers), missing schemes, pin.it short links (never resolved), opaque Pin IDs, board sections, profile sub-tabs (/\_created/, /\_saved/, /pins/), search/login/other non-content pages, credentials and nonstandard ports are unsupported. Paste the full Pin URL, whole board or profile root; use searchQueries for searches. Private/login-only data is unavailable. Default \[]; empty is allowed only with searchQueries. At most 100 combined entries before deduplication. Any invalid entry rejects the entire run before quota/proxy use, naming startUrls\[index]. Image Pins are never saved or charged.

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

Maximum unique video rows successfully saved across all inputs, including rows restored after restart; one row per distinct playable video ID, not per scanned Pin or input. Integer 1–9007199254740991; default 100, prefill 10; 0 is invalid. Apify free plan: 100 results per run, 20 runs per month (UTC); these are developer-set limits. Larger free inputs are clamped to 100. Public availability, scan bounds and your charge limit can stop earlier.

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

Default {} uses Apify datacenter Proxy, as does prefill {useApifyProxy: true}. useApifyProxy must be boolean; paid false selects direct access unless nonempty proxyUrls take precedence. proxyUrls is an array of full HTTP(S) proxy URL strings; \[] selects no custom proxy. Paid runs may use custom proxies. Free runs always use Apify datacenter Proxy and ignore valid custom URLs and group selections. apifyProxyGroups and SDK alias groups are combined, case-insensitive arrays of datacenter group names (letters, digits, underscores); \[] or AUTO uses automatic datacenter. Residential groups, country targeting and every other proxy option are rejected as invalid: before quota/proxy use, even on free runs. Null is invalid.

## Actor input object example

```json
{
  "searchQueries": [
    "easy recipes"
  ],
  "startUrls": [],
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One public Pinterest video per row: MP4/HLS links, thumbnail, duration, pinner, board and engagement.

# 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 = {
    "searchQueries": [
        "easy recipes"
    ],
    "maxItems": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("xmolodtsov/pinterest-videos-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 = {
    "searchQueries": ["easy recipes"],
    "maxItems": 10,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("xmolodtsov/pinterest-videos-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 '{
  "searchQueries": [
    "easy recipes"
  ],
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call xmolodtsov/pinterest-videos-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xmolodtsov/pinterest-videos-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/nfdxVQRaNJDFOd7j8/builds/XEaRoIf59OtB809ra/openapi.json
