{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinterest Trends Scraper",
    "description": "Pinterest Trends' growing, top monthly, top yearly and seasonal lists for 29 markets, by interest, age and gender, plus keyword research: weekly history up to 24 months, Pinterest's own forecast, audience by age and gender, related searches and autocomplete. No login, no browser.",
    "version": "1.0",
    "x-build-id": "bC61vU165x9pFZU29"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~pinterest-trends-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-pinterest-trends-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/steadyscrape~pinterest-trends-scraper/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-pinterest-trends-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/steadyscrape~pinterest-trends-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-pinterest-trends-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": {
          "countries": {
            "title": "Countries and regions",
            "type": "array",
            "description": "The markets Pinterest Trends covers. Regional ones (<code>GB+IE</code>, <code>DE+AT+CH</code>, <code>MX+AR+CO+CL</code>…) are one market to Pinterest: it does not split them by country.",
            "items": {
              "type": "string",
              "enum": [
                "US",
                "CA",
                "GB+IE",
                "AU+NZ",
                "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",
                "MX+AR+CO+CL",
                "CR+DO+EC+GT+PE",
                "BR",
                "AR",
                "CO",
                "ID",
                "IN",
                "MY",
                "PH",
                "TH",
                "SA",
                "EG",
                "TR",
                "KR"
              ],
              "enumTitles": [
                "United States (US)",
                "Canada (CA)",
                "United Kingdom and Ireland (GB+IE)",
                "Australia and New Zealand (AU+NZ)",
                "Germany (DE)",
                "Germany, Austria and Switzerland (DE+AT+CH)",
                "France (FR)",
                "Italy (IT)",
                "Spain (ES)",
                "Southern Europe (Italy, Spain, Portugal, Greece, Malta) (IT+ES+PT+GR+MT)",
                "Nordics (Sweden, Denmark, Finland, Norway) (SE+DK+FI+NO)",
                "Benelux (Netherlands, Belgium, Luxembourg) (NL+BE+LU)",
                "Central Europe (Poland, Romania, Hungary, Slovakia, Czechia) (PL+RO+HU+SK+CZ)",
                "Central and Southern Europe (Cyprus, Czechia, Greece, Hungary, Malta, Poland, Romania, Slovakia) (CY+CZ+GR+HU+MT+PL+RO+SK)",
                "Mexico (MX)",
                "Latin America (Mexico, Argentina, Colombia, Chile) (MX+AR+CO+CL)",
                "Central America and Andes (Costa Rica, Dominican Republic, Ecuador, Guatemala, Peru) (CR+DO+EC+GT+PE)",
                "Brazil (BR)",
                "Argentina (AR)",
                "Colombia (CO)",
                "Indonesia (ID)",
                "India (IN)",
                "Malaysia (MY)",
                "Philippines (PH)",
                "Thailand (TH)",
                "Saudi Arabia (SA)",
                "Egypt (EG)",
                "Türkiye (TR)",
                "South Korea (KR)"
              ]
            },
            "default": [
              "US"
            ]
          },
          "trendTypes": {
            "title": "Trend lists",
            "type": "array",
            "description": "Pinterest Trends' four top lists: <b>growing</b> (rising fastest), <b>top monthly</b> and <b>top yearly</b> (most searched), <b>seasonal</b> (coming back now, as every year). Leave empty to research keywords only.",
            "items": {
              "type": "string",
              "enum": [
                "growing",
                "top_monthly",
                "top_yearly",
                "seasonal"
              ],
              "enumTitles": [
                "Growing trends",
                "Top monthly trends",
                "Top yearly trends",
                "Seasonal trends"
              ]
            },
            "default": [
              "growing"
            ]
          },
          "maxTrendsPerList": {
            "title": "Trends per list",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many terms of each list (per market, list type and interest). Pinterest gives at most 100.",
            "default": 25
          },
          "interests": {
            "title": "Interests",
            "type": "array",
            "description": "Pinterest's interest categories. Each one gives its own list (Food and drinks, Wedding…); empty: one list across all interests.",
            "items": {
              "type": "string",
              "enum": [
                "animals",
                "architecture",
                "art",
                "beauty",
                "design",
                "diy_and_crafts",
                "education",
                "electronics",
                "entertainment",
                "event_planning",
                "fashion_womens",
                "fashion_mens",
                "fashion_kids",
                "finance",
                "food_and_drinks",
                "gardening",
                "health",
                "home_decor",
                "parenting",
                "quotes",
                "sport",
                "travel",
                "vehicles",
                "wedding"
              ],
              "enumTitles": [
                "Animals",
                "Architecture",
                "Art",
                "Beauty",
                "Design",
                "DIY and crafts",
                "Education",
                "Electronics",
                "Entertainment",
                "Event planning",
                "Women's fashion",
                "Men's fashion",
                "Children's fashion",
                "Finance",
                "Food and drinks",
                "Gardening",
                "Health",
                "Home decor",
                "Parenting",
                "Quotes",
                "Sport",
                "Travel",
                "Vehicles",
                "Wedding"
              ]
            },
            "default": []
          },
          "ageGroups": {
            "title": "Age groups",
            "type": "array",
            "description": "Only trends among people of these ages. Empty: everyone.",
            "items": {
              "type": "string",
              "enum": [
                "18-24",
                "25-34",
                "35-44",
                "45-49",
                "50-54",
                "55-64",
                "65+"
              ]
            },
            "default": []
          },
          "genders": {
            "title": "Genders",
            "type": "array",
            "description": "Only trends among these genders. Empty: everyone.",
            "items": {
              "type": "string",
              "enum": [
                "female",
                "male",
                "unspecified"
              ],
              "enumTitles": [
                "Female",
                "Male",
                "Unspecified"
              ]
            },
            "default": []
          },
          "includeKeywords": {
            "title": "Only trends containing",
            "type": "array",
            "description": "Keep only trends that contain one of these words (<code>pumpkin</code> → pumpkin bread, pumpkin carving ideas…).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Leave out trends containing",
            "type": "array",
            "description": "Drop trends that contain any of these words.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "trendsEndDate": {
            "title": "Lists as of a past day",
            "type": "string",
            "description": "See the lists as they were on an earlier day, up to about 12 months back (<code>2025-12-22</code> gives last Christmas). Empty: the latest week Pinterest has."
          },
          "keywords": {
            "title": "Keywords to research",
            "type": "array",
            "description": "For each keyword and market: its weekly search interest, week/month/year change, who searches it (age and gender), the related searches Pinterest shows and the searches that start with it. Case does not matter.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "compareKeywords": {
            "title": "Compare keywords on one scale",
            "type": "boolean",
            "description": "Put the keywords of each market on one 0–100 scale (the biggest one's peak = 100), as when comparing terms on Pinterest Trends. Off: each keyword against its own peak.",
            "default": false
          },
          "includeRelatedTerms": {
            "title": "Related searches",
            "type": "boolean",
            "description": "The searches Pinterest lists as related to each keyword (five, which Pinterest varies a little between calls), each with a year of weekly history.",
            "default": true
          },
          "includeSuggestions": {
            "title": "Autocomplete suggestions",
            "type": "boolean",
            "description": "Up to ten searches that start with the keyword, as Pinterest Trends' search box suggests them, each with a year of weekly history.",
            "default": true
          },
          "includeHistory": {
            "title": "Weekly history",
            "type": "boolean",
            "description": "The weekly search interest of every trend and keyword over the range below (0–100).",
            "default": true
          },
          "historyRange": {
            "title": "History range",
            "enum": [
              "1_month",
              "3_months",
              "6_months",
              "12_months",
              "24_months"
            ],
            "type": "string",
            "description": "How far back the weekly history goes. Year-over-year change needs 24 months.",
            "default": "12_months"
          },
          "forecast": {
            "title": "Forecast",
            "enum": [
              "none",
              "4_weeks",
              "8_weeks",
              "13_weeks"
            ],
            "type": "string",
            "description": "Pinterest's own forecast of the coming weeks, with its low and high bounds, for the terms it forecasts.",
            "default": "none"
          },
          "includeDemographics": {
            "title": "Audience (age and gender)",
            "type": "boolean",
            "description": "Share of searchers per age group and gender for each trend and keyword, over the last 12 months.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}