{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinterest Trends Scraper",
    "description": "Export Pinterest Trends data: growing, seasonal and top keywords by country, interest, age and gender, with weekly, monthly and yearly growth, plus up to 2 years of search-volume history for your own keywords. No login needed.",
    "version": "1.0",
    "x-build-id": "YPirAvRBQ2ErA1qIK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/axlymxp~pinterest-trends-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-axlymxp-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/axlymxp~pinterest-trends-scraper/runs": {
      "post": {
        "operationId": "runs-sync-axlymxp-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/axlymxp~pinterest-trends-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-axlymxp-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 / regions",
            "type": "array",
            "description": "Markets to pull trends for. Pinterest Trends covers these countries and region groups only.",
            "items": {
              "type": "string",
              "enum": [
                "US",
                "CA",
                "GB",
                "DE",
                "FR",
                "IN",
                "BR",
                "MX",
                "ES",
                "IT",
                "AR",
                "CO",
                "KR",
                "AU+NZ",
                "GB+IE",
                "DE+AT+CH",
                "NL+BE+LU",
                "SE+DK+FI+NO",
                "IT+ES+PT+GR+MT",
                "MX+AR+CO+CL"
              ],
              "enumTitles": [
                "United States",
                "Canada",
                "United Kingdom",
                "Germany",
                "France",
                "India",
                "Brazil",
                "Mexico",
                "Spain",
                "Italy",
                "Argentina",
                "Colombia",
                "South Korea",
                "Australia + New Zealand",
                "UK + Ireland",
                "Germany + Austria + Switzerland",
                "Benelux",
                "Nordics",
                "Southern Europe",
                "Latin America (MX, AR, CO, CL)"
              ]
            },
            "default": [
              "US"
            ]
          },
          "trendTypes": {
            "title": "Trend lists",
            "type": "array",
            "description": "Which Pinterest Trends lists to pull. Growing = fastest-rising searches; Seasonal = recurring seasonal peaks; Top monthly / yearly = highest search volume.",
            "items": {
              "type": "string",
              "enum": [
                "growing",
                "seasonal",
                "top_monthly",
                "top_yearly"
              ],
              "enumTitles": [
                "Growing trends",
                "Seasonal trends",
                "Top monthly trends",
                "Top yearly trends"
              ]
            },
            "default": [
              "growing"
            ]
          },
          "maxTermsPerList": {
            "title": "Keywords per list",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Keywords returned for each country × list (Pinterest returns at most 100).",
            "default": 50
          },
          "lookbackWindow": {
            "title": "Compare against",
            "enum": [
              "1w",
              "1m",
              "3m",
              "6m",
              "1y"
            ],
            "type": "string",
            "description": "Period used to rank growth.",
            "default": "1m"
          },
          "interests": {
            "title": "Interest categories (optional)",
            "type": "array",
            "description": "Only keywords in these Pinterest interest categories.",
            "items": {
              "type": "string",
              "enum": [
                "animals",
                "architecture",
                "art",
                "beauty",
                "design",
                "diy_and_crafts",
                "education",
                "electronics",
                "entertainment",
                "event_planning",
                "fashion",
                "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",
                "Fashion",
                "Finance",
                "Food and drinks",
                "Gardening",
                "Health",
                "Home decor",
                "Parenting",
                "Quotes",
                "Sport",
                "Travel",
                "Vehicles",
                "Wedding"
              ]
            }
          },
          "splitByInterest": {
            "title": "One list per interest",
            "type": "boolean",
            "description": "Pull a separate list for each selected interest instead of one combined list.",
            "default": false
          },
          "ageGroups": {
            "title": "Age groups (optional)",
            "type": "array",
            "description": "Only searches by these age groups.",
            "items": {
              "type": "string",
              "enum": [
                "18-24",
                "25-34",
                "35-44",
                "45-49",
                "50-54",
                "55-64",
                "65+"
              ]
            }
          },
          "genders": {
            "title": "Genders (optional)",
            "type": "array",
            "description": "Only searches by these genders.",
            "items": {
              "type": "string",
              "enum": [
                "female",
                "male",
                "unspecified"
              ],
              "enumTitles": [
                "Female",
                "Male",
                "Unspecified"
              ]
            }
          },
          "includeKeywords": {
            "title": "Must contain (optional)",
            "type": "array",
            "description": "Only trends containing one of these words, e.g. \"nails\" or \"recipe\".",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Must not contain (optional)",
            "type": "array",
            "description": "Drop trends containing these words.",
            "items": {
              "type": "string"
            }
          },
          "includeHistory": {
            "title": "Add search-volume history to trend rows",
            "type": "boolean",
            "description": "Attach the weekly search-volume series, peak week and growth rates to every trend keyword (extra charge per keyword).",
            "default": false
          },
          "keywords": {
            "title": "Look up your own keywords (optional)",
            "type": "array",
            "description": "Get the weekly Pinterest search-volume history and growth for these exact keywords, e.g. \"christmas nails\". One row per keyword and country. Keywords Pinterest has no data for are skipped and not charged.",
            "items": {
              "type": "string"
            }
          },
          "historyRange": {
            "title": "History range",
            "enum": [
              "1m",
              "3m",
              "6m",
              "1y",
              "2y"
            ],
            "type": "string",
            "description": "How far back the history goes.",
            "default": "1y"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Pinterest Trends works without a proxy."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}