{
  "openapi": "3.0.1",
  "info": {
    "title": "Teachers Pay Teachers & TES Tracker — Prices, Ranks, Monitor",
    "description": "Track Teachers Pay Teachers and TES Resources: prices, sales, ratings, rating counts, grades, subjects, standards and search positions. Monitor mode returns only new or changed resources; keyword-rank mode tracks your store's positions and competitors' share of voice. No login.",
    "version": "0.1",
    "x-build-id": "rWRur08rcl33HBkPU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~teachers-pay-teachers-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-teachers-pay-teachers-tracker",
        "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/yugenox~teachers-pay-teachers-tracker/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-teachers-pay-teachers-tracker",
        "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/yugenox~teachers-pay-teachers-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-teachers-pay-teachers-tracker",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "resources",
              "monitor",
              "keywordRank"
            ],
            "type": "string",
            "description": "Resources: one row per teaching resource. Monitor: only new or changed resources since your last run with the same watch name (price, sale, rating count, rating, title). Keyword rank: one row per keyword with positions, your store's ranks, rank change, share of voice and competition stats.",
            "default": "resources"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Search keywords, e.g. \"fractions\" or \"4th grade reading comprehension\". Results in the site's default relevance order (the order buyers see).",
            "items": {
              "type": "string"
            }
          },
          "markets": {
            "title": "Sites",
            "type": "array",
            "description": "tpt = Teachers Pay Teachers (US, prices in USD). tes = TES Resources (UK, prices as listed, usually GBP). Keywords run on every selected site.",
            "items": {
              "type": "string",
              "enum": [
                "tpt",
                "tes"
              ],
              "enumTitles": [
                "Teachers Pay Teachers",
                "TES Resources"
              ]
            },
            "default": [
              "tpt"
            ]
          },
          "browsePaths": {
            "title": "TPT browse categories",
            "type": "array",
            "description": "TPT category pages, e.g. \"math/fractions\" or a full link like https://www.teacherspayteachers.com/browse/math/fractions. Grade filters that are part of the path work too. Not used in keyword-rank mode.",
            "items": {
              "type": "string"
            }
          },
          "storeSlugs": {
            "title": "TPT stores",
            "type": "array",
            "description": "TPT store names from the store link (teacherspayteachers.com/store/<name>) or the full link. Reads the store's front page (about 20 resources) plus follower count and store rating.",
            "items": {
              "type": "string"
            }
          },
          "tesShops": {
            "title": "TES shops",
            "type": "array",
            "description": "TES shop names (tes.com/teaching-resources/shop/<name>) or full links. Newest resources first; pages per source applies.",
            "items": {
              "type": "string"
            }
          },
          "pagesPerKeyword": {
            "title": "Pages per source",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "How many result pages to read per keyword, category or TES shop. A TPT page holds 24 resources (2 pages = top 48 positions). TES keyword search reads its first page only; TPT stores only have their front page.",
            "default": 2
          },
          "maxResources": {
            "title": "Max resources",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum resource rows for the whole run (monitor mode: maximum resources checked). Not used in keyword-rank mode.",
            "default": 100
          },
          "ownStores": {
            "title": "Your store(s) (keyword rank)",
            "type": "array",
            "description": "Your TPT store / TES shop name or link. In keyword-rank mode your resources are flagged with their positions and rank change.",
            "items": {
              "type": "string"
            }
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Monitor and keyword-rank modes remember the last run under this name. Use a different name per list you track.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy (included with every plan) is used by default.",
            "default": {
              "useApifyProxy": true
            }
          },
          "_noResidential": {
            "title": "Never use residential proxy (drill)",
            "type": "boolean",
            "description": "Test switch. This actor never uses residential proxies anyway.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}