# Teachers Pay Teachers Resource & Store Catalog Extractor (`nimbryxo-studio/teachers-pay-teachers-resource-and-store-catalog`) Actor

Search Teachers Pay Teachers resources by keyword, grade or subject, fetch product pricing and ratings, or pull every listing from a teacher's store.

- **URL**: https://apify.com/nimbryxo-studio/teachers-pay-teachers-resource-and-store-catalog.md
- **Developed by:** [Nimbryxo-studio](https://apify.com/nimbryxo-studio) (community)
- **Categories:** E-commerce, Automation, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Teachers Pay Teachers Resource & Store Catalog Extractor

Teachers Pay Teachers is a marketplace where teachers list lesson plans, worksheets and classroom materials for sale or free download. This actor pulls structured product data by keyword search, by grade level or subject browse, by direct product URL, or by crawling an entire seller's store.

### What this actor does

- Searches TpT resources by keyword, with optional grade, subject, format, price and rating filters
- Browses the catalog by grade level (Pre-K through 12th, Higher Education, Homeschool, etc.)
- Browses the catalog by subject area (Math, English Language Arts, Science, and more)
- Fetches full product details for one or more specific product URLs
- Crawls every product listed in a teacher's store given the store URL
- Empty fields are omitted from records

### Output per product

- `productId` — TpT numeric product ID
- `title` — resource title
- `description` — product description (available on product detail pages)
- `price` — price in USD (`0` for free resources)
- `isFree` — whether the resource is free
- `currency` — currency code
- `rating` — average rating on TpT's 1–5 star scale
- `ratingCount` — number of ratings
- `seller` — teacher/seller display name
- `sellerUrl` — seller's TpT store URL
- `thumbnailUrl` — product preview image URL
- `url` — product page URL
- `releaseDate` — date the product was listed
- `grades` — grade levels the resource targets (when available)
- `subjects` — subject areas the resource covers (when available)
- `formats` — file formats included (when available)
- `recordType` — always `product`
- `scrapedAt` — timestamp of extraction

`byGrade`, `bySubject`, `getProduct` and `getStore`, and `search` whenever `isFree` is off, all fetch the product's own detail page and can populate every field above. `search` with `isFree` enabled skips the detail-page fetch for speed and only returns `productId`, `title`, `url` and `isFree` per product.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `search` | `search`, `byGrade`, `bySubject`, `getProduct` or `getStore` |
| `searchQuery` | string | `multiplication worksheets` | Keyword(s) to search (mode=search) |
| `startUrls` | array | `[]` | TpT product or store URLs (modes=getProduct, getStore) |
| `grade` | string | – (any) | Grade level filter; required for `byGrade` |
| `subject` | string | – (any) | Subject area filter; required for `bySubject` |
| `format` | string | – (any) | Resource format/file type filter |
| `isFree` | boolean | `false` | Only return free resources |
| `minRating` | number | – | Minimum average rating (0–5) |
| `minReviews` | integer | – | Minimum number of ratings/reviews |
| `maxItems` | integer | `24` | Maximum product records to return (1–5000) |

#### Example: keyword search with grade filter

```json
{
  "mode": "search",
  "searchQuery": "multiplication worksheets",
  "grade": "3rd",
  "maxItems": 24
}
```

#### Example: browse a subject area

```json
{
  "mode": "bySubject",
  "subject": "Math",
  "minRating": 4.5,
  "maxItems": 50
}
```

#### Example: fetch specific products

```json
{
  "mode": "getProduct",
  "startUrls": [
    "https://www.teacherspayteachers.com/Product/Multiplication-Color-By-Number-Worksheets-Fact-Fluency-4061393"
  ]
}
```

#### Example: crawl a teacher's store

```json
{
  "mode": "getStore",
  "startUrls": ["https://www.teacherspayteachers.com/Store/Games-4-Learning"],
  "maxItems": 100
}
```

### Use cases

- **Curriculum research** — find the best-rated worksheets or lesson plans for a specific grade and topic
- **Pricing benchmarks** — compare prices and ratings for similar resources before publishing your own
- **Seller monitoring** — track a competing or favorite teacher's full catalog via `getStore`
- **Free-resource roundups** — filter with `isFree` to build lists of no-cost classroom materials
- **Format-specific sourcing** — pull only PDFs, Google Apps or PowerPoint resources for a given subject

### FAQ

**Is this affiliated with Teachers Pay Teachers?** No. This is an independent catalog extraction tool, not affiliated with or endorsed by Teachers Pay Teachers.

**Do I need a TpT account?** No. Every mode reads publicly visible product and store pages.

**Why do some products have `grades`, `subjects` or `formats` and others don't?** Those fields are populated from the product's own detail page metadata, when the page exposes them. The one exception is `search` with `isFree` enabled, which skips the detail-page fetch entirely and only returns `productId`, `title`, `url` and `isFree`.

**What rating scale does TpT use?** A 1–5 star scale; `rating` and `ratingCount` come directly from each product's published rating.

**What's the difference between `byGrade`/`bySubject` and `search`?** `byGrade` and `bySubject` browse TpT's catalog pages for a single grade or subject with no keyword required; `search` runs a keyword query and accepts grade/subject as additional filters.

**Can I combine multiple filters at once?** `isFree`, `minRating` and `minReviews` apply together in every mode. `grade` narrows results in `search` and `byGrade`; `subject` narrows results in `search` and `bySubject`; `format` only narrows results in `search`. Setting `grade` in `bySubject` mode (or `subject` in `byGrade` mode) has no effect.

**How many products can one run return?** Up to `maxItems`, capped at 5000 per run.

**Does `getStore` return every product in a store?** It pages through the store's full catalog until it runs out of products or hits `maxItems`, whichever comes first.

**Why is `price` sometimes `0`?** TpT lists many free resources alongside paid ones; a `0` price means the resource is free, and `isFree` is set to `true`.

# Actor input Schema

## `mode` (type: `string`):

What to scrape.

## `searchQuery` (type: `string`):

Keyword(s) to search for resources (mode=search).

## `startUrls` (type: `array`):

TpT product or store URLs (modes: getProduct, getStore). Example: https://www.teacherspayteachers.com/Product/Multiplication-Worksheets-4061393

## `grade` (type: `string`):

Filter by grade level. Required for mode=byGrade.

## `subject` (type: `string`):

Filter by subject area. Required for mode=bySubject.

## `format` (type: `string`):

Filter by resource format/file type.

## `isFree` (type: `boolean`):

When enabled, only return free resources.

## `minRating` (type: `number`):

Minimum average rating (TpT uses 1–5 star scale).

## `minReviews` (type: `integer`):

Minimum number of reviews/ratings.

## `maxItems` (type: `integer`):

Maximum number of product records to return.

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "multiplication worksheets",
  "startUrls": [],
  "grade": "",
  "subject": "",
  "format": "",
  "isFree": false,
  "maxItems": 24
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset containing all scraped TpT product records.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "search",
    "searchQuery": "multiplication worksheets",
    "startUrls": [],
    "grade": "",
    "subject": "",
    "format": "",
    "isFree": false,
    "maxItems": 24
};

// Run the Actor and wait for it to finish
const run = await client.actor("nimbryxo-studio/teachers-pay-teachers-resource-and-store-catalog").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "search",
    "searchQuery": "multiplication worksheets",
    "startUrls": [],
    "grade": "",
    "subject": "",
    "format": "",
    "isFree": False,
    "maxItems": 24,
}

# Run the Actor and wait for it to finish
run = client.actor("nimbryxo-studio/teachers-pay-teachers-resource-and-store-catalog").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "search",
  "searchQuery": "multiplication worksheets",
  "startUrls": [],
  "grade": "",
  "subject": "",
  "format": "",
  "isFree": false,
  "maxItems": 24
}' |
apify call nimbryxo-studio/teachers-pay-teachers-resource-and-store-catalog --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nimbryxo-studio/teachers-pay-teachers-resource-and-store-catalog"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/zos0exOVEp3s2nQVm/builds/lfZzHYUqRdxO1yn37/openapi.json
