{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinterest Trends Scraper",
    "description": "[💰$2 / 1K] ⚡ Fast Pinterest Trends scraper. No login, no API key. Get growing, top monthly, top yearly and seasonal search trends in 26 regions by keyword, interest, age, gender and date: rank, search volume, weekly, monthly and yearly change, image and 12-month history.",
    "version": "1.0",
    "x-build-id": "48twfuBocWHKM1B0d"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/aboo.script~trends-pinterest-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-aboo.script-trends-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/aboo.script~trends-pinterest-scraper/runs": {
      "post": {
        "operationId": "runs-sync-aboo.script-trends-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/aboo.script~trends-pinterest-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-aboo.script-trends-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": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Pinterest Trends URLs (https://trends.pinterest.com/ or https://trends.pinterest.com/search/?country=US&trendsPreset=3). Filters written in the URL (country, trendsPreset, l1InterestIds, ageBucket, gender, keywordsToInclude, keywordsToExclude, endDate) take precedence over the filters below.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQueries": {
            "title": "Keywords",
            "type": "array",
            "description": "Keywords to find trends for. Each keyword returns the trending search terms that contain it (for example \"cake\" returns \"birthday cake\", \"wedding cake\"), using the filters below.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results per URL or keyword",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of trends per start URL or keyword. Pinterest returns up to 100 trends per list. Use 0 for all.",
            "default": 5
          },
          "country": {
            "title": "Region",
            "enum": [
              "US",
              "GB+IE",
              "CA",
              "IT+ES+PT+GR+MT",
              "IT",
              "ES",
              "DE+AT+CH",
              "DE",
              "FR",
              "SE+DK+FI+NO",
              "NL+BE+LU",
              "PL+RO+HU+SK+CZ",
              "MX+AR+CO+CL",
              "CO",
              "AR",
              "MX",
              "BR",
              "AU+NZ",
              "MY",
              "PH",
              "TH",
              "EG",
              "TR",
              "KR",
              "CR+DO+EC+GT+PE",
              "CY+CZ+GR+HU+MT+PL+RO+SK"
            ],
            "type": "string",
            "description": "Region of the trends.",
            "default": "US"
          },
          "trendType": {
            "title": "Trend type",
            "enum": [
              "topMonthly",
              "topYearly",
              "growing",
              "seasonal"
            ],
            "type": "string",
            "description": "Top monthly and top yearly list the most searched terms, growing lists the terms with the biggest rise, seasonal lists terms that peak at this time every year.",
            "default": "growing"
          },
          "interests": {
            "title": "Interests",
            "type": "array",
            "description": "Only trends in these interests. Leave empty for all interests.",
            "items": {
              "type": "string",
              "enum": [
                "925056443165",
                "918105274631",
                "961238559656",
                "935541271955",
                "903733943146",
                "902065567321",
                "934876475639",
                "922134410098",
                "960887632144",
                "953061268473",
                "941870572865",
                "913207199297",
                "918530398158",
                "909983286710",
                "898620064290",
                "935249274030",
                "924581335376",
                "920236059316",
                "948192800438",
                "919812032692",
                "908182459161",
                "918093243960",
                "903260720461",
                "948967005229"
              ],
              "enumTitles": [
                "Animals",
                "Architecture",
                "Art",
                "Beauty",
                "Children's Fashion",
                "Design",
                "DIY and Crafts",
                "Education",
                "Electronics",
                "Entertainment",
                "Event Planning",
                "Finance",
                "Food and Drinks",
                "Gardening",
                "Health",
                "Home Decor",
                "Men's Fashion",
                "Parenting",
                "Quotes",
                "Sport",
                "Travel",
                "Vehicles",
                "Wedding",
                "Women's Fashion"
              ]
            }
          },
          "ageGroups": {
            "title": "Age groups",
            "type": "array",
            "description": "Only trends searched by these age groups. Leave empty for all ages.",
            "items": {
              "type": "string",
              "enum": [
                "18-24",
                "25-34",
                "35-44",
                "45-49",
                "50-54",
                "55-64",
                "65+"
              ],
              "enumTitles": [
                "18-24",
                "25-34",
                "35-44",
                "45-49",
                "50-54",
                "55-64",
                "65+"
              ]
            }
          },
          "genders": {
            "title": "Genders",
            "type": "array",
            "description": "Only trends searched by these genders. Leave empty for all genders.",
            "items": {
              "type": "string",
              "enum": [
                "female",
                "male",
                "unspecified"
              ],
              "enumTitles": [
                "Female",
                "Male",
                "Unspecified"
              ]
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Skip trends that contain any of these keywords.",
            "items": {
              "type": "string"
            }
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Get the trends as they were on this date (YYYY-MM-DD). Leave empty for the latest available data."
          },
          "includeHistory": {
            "title": "Include weekly history",
            "type": "boolean",
            "description": "Add the weekly search volume index of the 12 months before the end date to every trend.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}