# Teachers Pay Teachers Scraper - Resource Prices & Ratings (`superslowsloth/teacherspayteachers-resources`) Actor

Teachers Pay Teachers scraper: search queries to one row per resource with USD price, list price, sale and bundle discount, rating and review count, seller, grade range, subjects, standards and link. Sort by most recent for a new-listing feed.

- **URL**: https://apify.com/superslowsloth/teacherspayteachers-resources.md
- **Developed by:** [Superslow Sloth](https://apify.com/superslowsloth) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 96.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.30 / 1,000 resource scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-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 scraper: resource prices, ratings and new listings

This Teachers Pay Teachers scraper searches [Teachers Pay Teachers](https://www.teacherspayteachers.com)
(TpT, the US marketplace where teachers sell classroom resources) by keyword and
returns one flat row per resource: the current price in **USD**, the list price,
the bundle and sale discount, the star rating and number of ratings, the seller,
the grade range and subjects, the standards it is aligned to, file types and
the link. Run it on a schedule and diff the dataset to get a **competitor
resource price, rating and new-listing feed for teacher-sellers**: what rival
stores charge for fractions worksheets this week, which bundles went on sale,
and which resources were listed since yesterday (sort by *Most recent*).

No account, no API key, no login, no browser. One request returns 24 resources.

### Input

| Field | Notes |
|---|---|
| `searchQueries` | One or more search queries, one per line (`fractions`, `3rd grade math centers`, `phonics bundle`). Each query is read separately, in the order chosen by `sort`. A resource found by two queries is returned once, under the first. |
| `maxItems` | Resources to read per query (default 100, up to 1,000). 24 per page. 1,000 is also the most TpT shows for any search, however many resources match. |
| `sort` | `relevance` (TpT's default, labelled Best Sellers), `most-recent` (newest listings first), `rating` (best rated first) or `price-asc` (cheapest first, which starts with the free resources). |
| `proxyConfiguration` | Apify **residential** proxy by default. |

Example input:

```json
{
  "searchQueries": ["fractions", "3rd grade math centers"],
  "maxItems": 240,
  "sort": "most-recent"
}
```

### Output

Prices are numbers in US dollars; `currency` is `USD`.

| Field | Notes |
|---|---|
| `query`, `position` | The search query that first found the resource, and its place in TpT's order for that query and sort (1 is first, counted over every result of the pages read). |
| `resource_id` | TpT's resource id, a string, the unique key. Ids rise over time, so a newer resource has a larger id. |
| `resource_type`, `is_bundle` | The kind of listing as TpT names it: `DigitalDownload`, `Bundle`, `Video`, `Online` were seen. `is_bundle` is true for a bundle of several resources. |
| `title`, `url`, `image_url` | As TpT shows them, HTML entities decoded. `url` is the absolute resource link; `image_url` is the first preview image, null for a resource with none (a video lesson). |
| `description_snippet` | The start of the seller's description (TpT cuts it at about 500 characters). Null when empty. |
| `seller_id`, `seller_name`, `seller_slug`, `seller_url` | The store that sells the resource. |
| `price` | What one buyer pays now for a single-classroom licence, after the bundle discount and any active TpT sale have been taken off. |
| `list_price` | The resource's own list price before either reduction; equal to `price` when nothing is reduced. |
| `is_free`, `on_sale` | `is_free` is true when `price` is 0 (TpT prints FREE). `on_sale` is true when `price` is below `list_price`: a bundle discount, a seller's reduced price or a sitewide sale. |
| `discount_amount`, `percent_off` | Dollars off and whole percent off `list_price`. **Null when not on sale**, never 0. |
| `sale_ends` | The last day (YYYY-MM-DD) of the TpT-wide sale taking part of the price off. Null when no such sale applies; a bundle's own discount has no end date. |
| `extra_license_price` | The price of each additional licence (for a buyer who covers more teachers). |
| `rating`, `review_count` | The average star rating (1 to 5) and how many ratings it is from. **`rating` is null for a resource with no ratings** (the page sends 0, which is not a rating of 0); `review_count` is 0 then. |
| `grade_range` | The grade line printed on the result card (`2nd - 4th`, `PreK - 2nd`, `5th`, `Not Specific`). Null when the card has none. |
| `subjects` | The subject line of the card (`Fractions`, `Math`, `Other (Math)`), in order. |
| `tags` | Every taxonomy tag TpT keys the resource by (`3rd-grade`, `fractions`, `worksheets`, `pdf`...), sorted. |
| `standards` | The education standards it is aligned to (`4.NF.A.1`). Empty when none. |
| `file_types` | The file types of the download (`PDF`, `ZIP`). Empty for a resource whose files the page does not describe. |
| `has_digital_activity` | True when a TpT Digital Activity asset is attached. |
| `bundled_item_count` | For a bundle, how many resources it holds. Null for every other kind. |
| `currency` | `USD`. |

Example row (real values, 2026-10-29):

```json
{
  "query": "fractions bundle",
  "position": 3,
  "resource_id": "483999",
  "resource_type": "Bundle",
  "is_bundle": true,
  "title": "Fraction Task Cards Bundle",
  "url": "https://www.teacherspayteachers.com/Product/Fraction-Task-Cards-Bundle-483999",
  "image_url": "https://ecdn.teacherspayteachers.com/thumbitem/Fraction-Task-Cards-Bundle-483999-1739152150/original-483999-1.jpg",
  "description_snippet": "This resource is deeply discounted for our ONE DAY ONLY Super Bowl sale. Shop now! HUGE Discounted set of 324 digital and printable Fraction Task Cards! These task cards have been designed to extend, reteach, and enrich your fraction unit. All of the fraction task cards give students multiple opportunities to show their understanding of fractions. A variety of visual models and word problems are included in each task card set for deeper understanding of the fraction concepts. Digital Access:",
  "seller_id": "255607",
  "seller_name": "Teaching With a Mountain View",
  "seller_slug": "teaching-with-a-mountain-view",
  "seller_url": "https://www.teacherspayteachers.com/store/teaching-with-a-mountain-view",
  "currency": "USD",
  "price": 17.99,
  "list_price": 22.99,
  "is_free": false,
  "on_sale": true,
  "discount_amount": 5.0,
  "percent_off": 22,
  "sale_ends": null,
  "extra_license_price": 16.19,
  "rating": 4.84,
  "review_count": 2962,
  "grade_range": "4th - 7th",
  "subjects": ["Fractions", "Math", "Math Test Prep"],
  "tags": ["4th-grade", "5th-grade", "6th-grade", "7th-grade", "centers", "fractions", "google-apps", "math", "math-test-prep", "pdf", "task-cards"],
  "standards": ["4.NF.A.1", "4.NF.A.2", "4.NF.B.3", "4.NF.B.3a", "4.NF.B.3b", "4.NF.B.3c", "4.NF.B.3d", "4.NF.B.4", "4.NF.B.4a", "4.NF.B.4b", "4.NF.B.4c", "4.NF.C.5", "4.NF.C.6", "4.NF.C.7"],
  "file_types": ["ZIP"],
  "has_digital_activity": false,
  "bundled_item_count": 7
}
```

#### Honest nulls

A field the page did not send is `null`, never `0` or `""`. `subjects`,
`tags`, `standards` and `file_types` are empty lists when there are none.

- **No listing date and no sales count.** TpT's search page carries neither. To
  catch new listings, sort by `most-recent` and keep the `resource_id` values you
  have already seen; ids rise over time.
- **No seller revenue, follower count or review text.** This is the search list,
  one row per resource.
- **Prices are the US store's single-classroom licence in USD.** A
  multi-licence or "price drop" banner shown in the browser is not in the list.
- **The newest resources have no ratings yet**, so `rating` is null and
  `review_count` is 0 on most of a `most-recent` feed.

### Pricing

Pay per event: a small fee per run (`actor-start`), charged only after your
input is validated, so a run that fails on bad input costs nothing, and a fee
per resource row written (`product-scraped`). A row that is not written is not
charged: repeats of a resource another query already returned are free.

### How it fetches

It reads the data teacherspayteachers.com's own search page embeds in its HTML
(the page's query cache) and the grade and subject line printed on each result
card:

```
https://www.teacherspayteachers.com/browse?search=<query>&order=<sort>&page=<n>
```

Measured 2026-10-29: HTTP 200 HTML of about 1.1 MB per page, no key or cookie
needed. The site sits behind Cloudflare. From Apify **datacenter** addresses 5
of 10 requests answered and 5 were a Cloudflare "Just a moment..." HTTP 403;
from **residential** addresses 10 of 10 answered, so residential is the default.
A refusal (403, 429, 5xx), a 200 that carries no page data, a page other than the
one asked for, or a dropped connection is treated as the address being blocked,
and the actor rotates to a fresh one and retries.

Things worth knowing, all measured:

- **Paging is `page=`, 1-based, and is left off page 1** (as the site's own
  links do). `page=2` returned a different 24 resources than page 1 and the same
  24 on a second read. The page says which page it ran (`pageNum`); a mismatch is
  treated as a refusal rather than read twice and charged.
- **24 resources per page, and at most 1,000 results per search.** `fractions`
  matches over 250,000 resources, yet page 41 held 24, page 42 held 16, and
  pages 43, 50, 100, 500 and 2000 were HTTP 200 with nothing in them. A search
  with fewer matches ends on a short page (`dinosaur fractions`, 407 matches: 23
  resources on page 17) and the actor stops there. To see more than 1,000
  resources, split the search into narrower queries.
- **Sorting uses `order=`.** The sort the page ran is read back from its query
  cache and compared with the one asked for, because TpT silently ignores an
  `order=` it does not know (`Price-Low-to-High` was answered in the default
  order).
- **Totals drift.** `fractions` reported 250,249 to 254,078 matches within
  minutes. The match count is logged, not stored in the rows.
- **A bundle can carry two reductions.** The price is the bundle's own price, and
  a TpT-wide sale percent comes off that (list $13.25, bundle $9, 20% sale:
  the card prints $7.20, which is `price`). Every price was checked against the
  price printed on the card for 558 cards (478 distinct resources) over 44 pages.

If TpT changes its page data, the run fails with a message instead of returning
empty rows.

# Actor input Schema

## `searchQueries` (type: `array`):

What you would type into the Teachers Pay Teachers search box, one query per line (for example fractions worksheets, 3rd grade math, phonics bundle). Each query is read separately, 24 resources per page, and TpT never returns more than 1,000 results for one search. A resource that two queries both find is returned once, under the first.

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

Read at most this many resources for each search query. TpT lists 24 per page, so 100 reads five pages. Up to 1,000 are accepted, which is the most TpT shows for any search.

## `sort` (type: `string`):

The order TpT lists the results in. Best sellers is the site's default relevance order. Most recent lists the newest resources first (a new-listing feed), rating lists the best rated first, and price (ascending) starts with the free ones.

## `proxyConfiguration` (type: `object`):

Residential proxy (the default). teacherspayteachers.com sits behind Cloudflare, which answered Apify datacenter addresses with HTTP 403 on 5 of 10 requests and residential addresses with HTTP 200 on 10 of 10 when this actor was built. A refused request is retried from a fresh address. A results page is about 1.1 MB.

## Actor input object example

```json
{
  "searchQueries": [
    "fractions"
  ],
  "maxItems": 100,
  "sort": "relevance",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `items` (type: `string`):

No description

# 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 = {
    "searchQueries": [
        "fractions"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("superslowsloth/teacherspayteachers-resources").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 = {
    "searchQueries": ["fractions"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("superslowsloth/teacherspayteachers-resources").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 '{
  "searchQueries": [
    "fractions"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call superslowsloth/teacherspayteachers-resources --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,superslowsloth/teacherspayteachers-resources"
        }
    }
}
```

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/Fj7k3c2WthpHAwiun/builds/8LWnvL6uEhag7ZD42/openapi.json
