{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinterest Search Scraper — Pins, Keyword Ideas & Trends",
    "description": "Scrape Pinterest search by keyword: pins with outbound links, images, video, AI topics, pinner and board, plus boards and creators. Keyword ideas from autocomplete, Pinterest Trends by country with growth, pins from board, profile and pin links. No login. JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "LTQHaRBKE8YSdnO1M"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lergassy~pinterest-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lergassy-pinterest-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/lergassy~pinterest-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lergassy-pinterest-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/lergassy~pinterest-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lergassy-pinterest-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "keywords": {
            "title": "🔍 Search keywords",
            "type": "array",
            "description": "One search per line — <b>bali villa</b>, <b>minimalist kitchen</b>, <b>fall outfits</b>. A repeated line is searched once. With <b>Keyword ideas</b> each line is a seed; with <b>Pinterest Trends</b> each line keeps only the trending terms that contain it (or use the Trends section). Pinterest links pasted here are read as links.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "📌 What to get",
            "enum": [
              "pins",
              "videos",
              "boards",
              "people",
              "keywords",
              "trends"
            ],
            "type": "string",
            "description": "<b>Pins</b> is what Pinterest shows by default. <b>Boards</b> and <b>People</b> return board and profile rows. <b>Keyword ideas</b> returns the phrases Pinterest suggests in its search box and the refinement chips above the results — for SEO and content planning. <b>Pinterest Trends</b> returns the trending terms of a country with weekly, monthly and yearly growth (settings in the Trends section). Links in the Links section are read whatever you choose here.",
            "default": "pins"
          },
          "maxItemsPerQuery": {
            "title": "📦 Results per keyword",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Pinterest pages through 25 at a time; the Actor keeps going until it has this many rows for each keyword (or each seed in Keyword ideas) or Pinterest runs out. Rows removed by your filters do not count and are not charged.",
            "default": 50
          },
          "fetchPinStats": {
            "title": "📊 Add details (one extra request per row)",
            "type": "boolean",
            "description": "Opens each result once more for what Pinterest search does not show. Boards: followers. People: bio, website, following, monthly views, business and private flags, join date. Pins from links already carry saves. Same price per row, about twice as slow. (Pins found by <i>search</i> have no public id since 03.11.2026, so their saves and comments cannot be read.)",
            "default": false
          },
          "startUrls": {
            "title": "🔗 Pinterest links",
            "type": "array",
            "description": "One link per line. <b>Search</b> URLs (pinterest.com/search/pins/?q=…) run that search. <b>Pin</b> links return the pin with saves, comments and shares; <b>board</b> and <b>board section</b> links return their pins; <b>profile</b> links return the pins the account saved; <b>pin.it</b> short links are followed. A link that gives nothing comes back as a free row with the reason.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxPinsPerLink": {
            "title": "📦 Pins per board / section / profile link",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many pins for each board, section or profile link.",
            "default": 50
          },
          "includeRelatedPins": {
            "title": "✨ Add \"More ideas\" related pins for pin links",
            "type": "boolean",
            "description": "For every pin link also return the pins Pinterest shows under it as \"More ideas\" — one row each, marked <code>inputType: related_pin</code> with <code>relatedToPinId</code>. Charged like any other pin. Great for finding competitors and similar products of a pin.",
            "default": false
          },
          "relatedPinsPerPin": {
            "title": "How many related pins per pin link",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Pinterest shows about 500 related pins under a pin.",
            "default": 25
          },
          "keywordIdeasDepth": {
            "title": "🧠 Keyword ideas depth",
            "minimum": 1,
            "maximum": 2,
            "type": "integer",
            "description": "<b>1</b> = the ideas Pinterest suggests for each seed (about 20–30). <b>2</b> = also the ideas for every idea — usually 150–300 long-tail phrases per seed, de-duplicated. Each row says which seed and parent idea it came from. Limited by \"Results per keyword\".",
            "default": 1
          },
          "trendsRegion": {
            "title": "🌍 Trends country / region",
            "enum": [
              "US",
              "CA",
              "GB+IE",
              "DE+AT+CH",
              "DE",
              "FR",
              "IT",
              "ES",
              "IT+ES+PT+GR+MT",
              "SE+DK+FI+NO",
              "NL+BE+LU",
              "PL+RO+HU+SK+CZ",
              "CY+CZ+GR+HU+MT+PL+RO+SK",
              "MX",
              "AR",
              "CO",
              "MX+AR+CO+CL",
              "CR+DO+EC+GT+PE",
              "BR",
              "AU+NZ",
              "IN",
              "ID",
              "MY",
              "PH",
              "TH",
              "KR",
              "SA",
              "EG",
              "TR"
            ],
            "type": "string",
            "description": "Which country's Pinterest searches to read. The grouped regions are Pinterest's own.",
            "default": "US"
          },
          "trendsType": {
            "title": "Which trend list",
            "enum": [
              "growing",
              "monthly",
              "yearly",
              "seasonal"
            ],
            "type": "string",
            "description": "The four lists of Pinterest Trends.",
            "default": "growing"
          },
          "trendsKeywords": {
            "title": "Only terms that contain",
            "type": "array",
            "description": "One keyword per line. Each keyword returns its own list of trending terms that contain it (\"christmas\" → \"christmas nails\", \"christmas outfit\"…). Leave empty for the region's whole list.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "trendsExcludeKeywords": {
            "title": "Leave out terms that contain",
            "type": "array",
            "description": "One keyword per line, e.g. <b>wallpaper</b> or <b>pfp</b>.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "trendsInterests": {
            "title": "Only these interests",
            "type": "array",
            "description": "Pinterest's own top-level interests. Empty = all interests.",
            "items": {
              "type": "string",
              "enum": [
                "animals",
                "architecture",
                "art",
                "beauty",
                "childrens-fashion",
                "design",
                "diy-and-crafts",
                "education",
                "electronics",
                "entertainment",
                "event-planning",
                "finance",
                "food-and-drink",
                "health",
                "home-decor",
                "lawn-and-garden",
                "mens-fashion",
                "parenting",
                "quotes",
                "sports",
                "travel",
                "vehicles",
                "weddings",
                "womens-fashion"
              ],
              "enumTitles": [
                "Animals",
                "Architecture",
                "Art",
                "Beauty",
                "Children's fashion",
                "Design",
                "DIY and crafts",
                "Education",
                "Electronics",
                "Entertainment",
                "Event planning",
                "Finance",
                "Food and drink",
                "Health",
                "Home decor",
                "Lawn and garden",
                "Men's fashion",
                "Parenting",
                "Quotes",
                "Sports",
                "Travel",
                "Vehicles",
                "Weddings",
                "Women's fashion"
              ]
            },
            "default": []
          },
          "trendsMaxPerList": {
            "title": "Terms per list",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Up to 100 terms for each keyword (or for the whole region when no keyword is given).",
            "default": 50
          },
          "trendsIncludeWeeklyInterest": {
            "title": "Add weekly interest (past year)",
            "type": "boolean",
            "description": "<code>weeklyInterest</code>: one point per week for the past 53 weeks on Pinterest's own scale. Pinterest serves it to logged-out visitors for the top 25 terms of each list; other rows leave the field out.",
            "default": true
          },
          "minReactions": {
            "title": "Min. reactions",
            "minimum": 0,
            "type": "integer",
            "description": "Drop pins with fewer reactions. 0 = keep everything. Most pins have few reactions, so start low (1–5).",
            "default": 0
          },
          "onlyPinsWithLink": {
            "title": "Only pins with an outbound link",
            "type": "boolean",
            "description": "Keep only pins that point to a website — for traffic, affiliate and competitor research.",
            "default": false
          },
          "linkDomainContains": {
            "title": "Only outbound domains containing",
            "type": "array",
            "description": "One per line, e.g. <b>etsy</b>, <b>amazon</b>, <b>shopify</b>. Keeps pins whose destination domain matches any of them.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeLinkDomains": {
            "title": "Leave out outbound domains containing",
            "type": "array",
            "description": "One per line, e.g. <b>instagram.com</b> or your own site.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minCreatorFollowers": {
            "title": "Min. creator followers",
            "minimum": 0,
            "type": "integer",
            "description": "Pins: the pinner; boards: the board owner; people: the profile itself. 0 = no minimum.",
            "default": 0
          },
          "minBoardPins": {
            "title": "Min. pins on a board",
            "minimum": 0,
            "type": "integer",
            "description": "Boards search only. 0 = no minimum.",
            "default": 0
          },
          "createdAfter": {
            "title": "Only pins created after",
            "type": "string",
            "description": "Keep only pins published on or after this date — fresh content only."
          },
          "includePromotedPins": {
            "title": "Include promoted pins (ads)",
            "type": "boolean",
            "description": "Off: ads are skipped and never charged. On: ads come back with <code>isPromoted: true</code> — handy to see who advertises on a keyword.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Off by default — Pinterest answers a direct request. A refused request is retried through a residential proxy automatically, at no extra cost to you.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}