{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinterest Trends Keywords Scraper: Growth and History",
    "description": "Find growing, top and seasonal Pinterest keywords by market to plan content and ads, or check weekly history, change and audience for your own terms.",
    "version": "0.1",
    "x-build-id": "q3fJ9c3PtsHhAArDs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cliqtomedia~pinterest-trends/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cliqtomedia-pinterest-trends",
        "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/cliqtomedia~pinterest-trends/runs": {
      "post": {
        "operationId": "runs-sync-cliqtomedia-pinterest-trends",
        "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/cliqtomedia~pinterest-trends/run-sync": {
      "post": {
        "operationId": "run-sync-cliqtomedia-pinterest-trends",
        "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": {
          "region": {
            "title": "Market",
            "enum": [
              "US",
              "CA",
              "GB",
              "GB+IE",
              "DE",
              "DE+AT+CH",
              "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",
              "BR",
              "AU+NZ",
              "IN",
              "ID",
              "MY",
              "PH",
              "TH",
              "SA",
              "EG",
              "TR",
              "KR",
              "AE+KW+QA+OM+BH+EG+IQ+DZ",
              "IL+NG+PK+ZA+TR+MA",
              "CR+DO+EC+GT+PE"
            ],
            "type": "string",
            "description": "Choose a Pinterest market. Some markets group several countries. The default is US."
          },
          "trendType": {
            "title": "Trend list",
            "enum": [
              "growing",
              "top",
              "top_yearly",
              "seasonal"
            ],
            "type": "string",
            "description": "Choose growing, top monthly, top yearly or seasonal searches. The default is Growing. If you enter keywords and leave this blank, the run only looks up those keywords."
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 1500,
            "type": "integer",
            "description": "Limit the total number of rows saved across all markets, lists and keywords. The default is 50."
          },
          "interests": {
            "title": "Interests",
            "maxItems": 25,
            "type": "array",
            "description": "Filter trend lists by Pinterest categories. Enter category names such as Home decor or Beauty, or matching Pinterest IDs.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords to look up",
            "maxItems": 100,
            "type": "array",
            "description": "Enter search terms such as home decor or wedding nails. To check only your terms, clear the trend list.",
            "items": {
              "type": "string"
            }
          },
          "additionalRegions": {
            "title": "More markets",
            "type": "array",
            "description": "Add markets to the first market. The default first market is US.",
            "items": {
              "type": "string",
              "enum": [
                "US",
                "CA",
                "GB",
                "GB+IE",
                "DE",
                "DE+AT+CH",
                "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",
                "BR",
                "AU+NZ",
                "IN",
                "ID",
                "MY",
                "PH",
                "TH",
                "SA",
                "EG",
                "TR",
                "KR",
                "AE+KW+QA+OM+BH+EG+IQ+DZ",
                "IL+NG+PK+ZA+TR+MA",
                "CR+DO+EC+GT+PE"
              ]
            }
          },
          "additionalTrendTypes": {
            "title": "More trend lists",
            "type": "array",
            "description": "Add other trend lists to the same run.",
            "items": {
              "type": "string",
              "enum": [
                "growing",
                "top",
                "top_yearly",
                "seasonal"
              ]
            }
          },
          "maxResultsPerList": {
            "title": "Rows per trend list",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Pinterest returns up to 100 keywords per market and trend list. The total row limit still applies."
          },
          "keywordsToInclude": {
            "title": "Include words in trend lists",
            "maxItems": 25,
            "type": "array",
            "description": "Only keep list results that match these words, using Pinterest’s search filter.",
            "items": {
              "type": "string"
            }
          },
          "keywordsToExclude": {
            "title": "Exclude words from trend lists",
            "maxItems": 25,
            "type": "array",
            "description": "Remove list results that match these words, using Pinterest’s search filter.",
            "items": {
              "type": "string"
            }
          },
          "ageGroups": {
            "title": "Age ranges",
            "type": "array",
            "description": "Limit trend lists to these audience age ranges.",
            "items": {
              "type": "string",
              "enum": [
                "18-20",
                "21-24",
                "18-24",
                "25-34",
                "35-44",
                "45-49",
                "50-54",
                "55-64",
                "65+"
              ]
            }
          },
          "genders": {
            "title": "Gender filter",
            "type": "array",
            "description": "Limit trend lists to these audience groups.",
            "items": {
              "type": "string",
              "enum": [
                "female",
                "male",
                "unspecified"
              ]
            }
          },
          "lookbackWindow": {
            "title": "Ranking window",
            "enum": [
              "7D",
              "30D",
              "90D",
              "180D",
              "365D"
            ],
            "type": "string",
            "description": "Choose how far Pinterest looks back to rank trend lists. Default is 30 days."
          },
          "endDate": {
            "title": "Report date",
            "type": "string",
            "description": "Use YYYY-MM-DD, for example 2026-10-15. Leave blank for the newest available data. Pinterest may serve the nearest date it has."
          },
          "includeHistory": {
            "title": "Include weekly history",
            "type": "boolean",
            "description": "Save a weekly search interest index from 0 to 100 with each result. This option is on by default."
          },
          "historyDays": {
            "title": "History length in days",
            "minimum": 90,
            "maximum": 730,
            "type": "integer",
            "description": "Use 90, 180, 365 or 730 to set how far back weekly history goes. The default is 365 days."
          },
          "includeForecast": {
            "title": "Include forecast",
            "type": "boolean",
            "description": "Save future weeks in a separate field when Pinterest has a forecast for your US keyword.",
            "default": true
          },
          "includeAudience": {
            "title": "Include audience breakdown",
            "type": "boolean",
            "description": "For your own keywords, show audience shares by age and gender when Pinterest has them. This option is on by default."
          },
          "includeRelatedKeywords": {
            "title": "Include related keywords",
            "type": "boolean",
            "description": "Add related search terms to each keyword row when Pinterest returns them. This option is on by default."
          },
          "expandKeywords": {
            "title": "Save related keywords as rows",
            "type": "boolean",
            "description": "Save related keywords and their weekly history as individual rows. The total row limit applies."
          },
          "includeSuggestions": {
            "title": "Include search suggestions",
            "type": "boolean",
            "description": "Save Pinterest autocomplete terms with weekly data as extra rows when available.",
            "default": false
          },
          "onlyNew": {
            "title": "Track new keywords",
            "type": "boolean",
            "description": "Save a snapshot for the next run. With an earlier snapshot, skip keywords already exported using those same filters.",
            "default": false
          },
          "previousSnapshotId": {
            "title": "Previous key-value store ID",
            "type": "string",
            "description": "Open Storage in an earlier run of this Actor and copy the key-value store ID. Both runs need the same filters and Track new keywords enabled."
          },
          "deliveryConnector": {
            "title": "Send results to (optional)",
            "type": "string",
            "description": "Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console → MCP connectors."
          },
          "deliveryTarget": {
            "title": "Notion page or channel (optional)",
            "type": "string",
            "description": "Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Notion needs a page here; without it the summary is not sent and the run summary says why."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}