{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinterest Scraper | Pinterest Follower Count & Board Export",
    "description": "Scrape Pinterest profiles, boards and pin links from $0.90 per 1,000 pins: follower count, pin stats (saves, comments, repins), destination links, full-size images, video files. Keyword search for discovery: images, titles, links, pinner. No login.",
    "version": "0.1",
    "x-build-id": "XjyJkrPJjJ0h0dfKm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/aurelix~pinterest-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-aurelix-pinterest-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/aurelix~pinterest-scraper/runs": {
      "post": {
        "operationId": "runs-sync-aurelix-pinterest-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/aurelix~pinterest-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-aurelix-pinterest-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": {
          "searchTerms": {
            "title": "Search terms",
            "maxItems": 50,
            "type": "array",
            "description": "Keywords to search Pinterest pins for, e.g. ['garden ideas']. For discovery: each term returns up to 'Max pins per input' pins in Pinterest's search order with title, description, full-size image, video, destination link, pinner and board; Pinterest's logged-out search shows no saves, comments or pin page link, and lists several hundred pins per term at most (about 800 measured for a popular term).",
            "items": {
              "type": "string"
            }
          },
          "boardUrls": {
            "title": "Board links",
            "maxItems": 100,
            "type": "array",
            "description": "Public board links, e.g. https://www.pinterest.com/marthastewart/american-made/. Returns the board's pins with saves. Secret boards are shown only to their members and get a status row.",
            "items": {
              "type": "string"
            }
          },
          "profileUrls": {
            "title": "Profile links or usernames",
            "maxItems": 100,
            "type": "array",
            "description": "Profile links or usernames, e.g. https://www.pinterest.com/marthastewart/ or marthastewart. Each returns one profile row (followers, following, pin count, board count, website) and up to 'Max pins per input' of the pins the account created; an account that created none returns pins from its public boards instead.",
            "items": {
              "type": "string"
            }
          },
          "pinUrls": {
            "title": "Pin links or IDs",
            "maxItems": 500,
            "type": "array",
            "description": "Pin links or numeric pin IDs, e.g. https://www.pinterest.com/pin/32088216099812277/ or a pin.it short link. Each returns one pin row with full details (saves, comments, repins, date, destination link, video files). Listing IDs that start with e1_ are not pin IDs and get a free invalid_input row.",
            "items": {
              "type": "string"
            }
          },
          "maxPinsPerInput": {
            "title": "Max pins per input",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Exactly how many pins to return for each search term, board and profile, at most (fewer only when Pinterest lists fewer; the status message then says how many it listed). 0 returns profile rows only.",
            "default": 100
          },
          "incremental": {
            "title": "Only new pins since last run",
            "type": "boolean",
            "description": "Return only the pins, among the first 'Max pins per input' each input lists, that a previous run with the same inputs did not return, e.g. for a daily schedule on a keyword, board or competitor profile. A listing is read until 3 pages in a row hold nothing new. Inputs with nothing new return no row and are free within the run's 10 free checks, then cost $0.0003 each (input-checked). The memory is named from the inputs: changing the list without a fixed 'Only-new memory name' starts a fresh memory, so pins are returned and charged again.",
            "default": false
          },
          "stateKey": {
            "title": "Only-new memory name (optional)",
            "type": "string",
            "description": "Name for the 'only new' memory, e.g. 'garden-daily', so two schedules on the same inputs keep separate memories. Leave empty to derive it from the inputs."
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL (optional)",
            "type": "string",
            "description": "After each run, post a short digest to Slack: how many pins were saved (new ones only when 'Only new pins since last run' is on) and the first 10 rows with links, e.g. https://hooks.slack.com/services/T000/B000/XXXX. Nothing is posted when the run saved no pin. Leave empty to skip."
          },
          "webhookUrl": {
            "title": "Webhook URL (optional)",
            "type": "string",
            "description": "After each run, POST the same digest as JSON (actor, newOnly, count, items = first 10 rows, runUrl, text) to any URL, e.g. a Zapier, Make or n8n webhook (which can forward it by email). Nothing is sent when the run saved no pin. Leave empty to skip."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy used to reach Pinterest. The default, Apify datacenter proxy, works and is included in the price. The whole run uses one IP; if Pinterest refuses it, the run stops instead of switching IPs. Residential proxy is not needed and falls back to the default.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}