Tes API endpoint
Use Crawlora's Get a Tes teaching resource API to extract supported public Tes data as structured JSON. This page includes request parameters, cURL examples, response schema, error behavior, credit cost, and a Playground link for testing before integration.
/tes/resources/detailReturns normalized detail for one teaching resource by its numeric id (the id field returned by tes-resource-search). Descriptive facts (title, subject, age range, resource type, author, price, rating, licence label), a per-file attachment list (file type, size, and a preview thumbnail -- metadata only), and the most recent page of reviews are returned -- not the downloadable resource file itself, which robots.txt already disallows scraping regardless. Developers commonly use this endpoint for data enrichment, monitoring, research dashboards, internal automation, and agent-native workflows that need repeatable structured public web data. Authentication uses the documented Crawlora headers, and usage is metered with the credit cost shown on this page.
Request parameters are generated from the active endpoint catalog. Required values must be sent before Crawlora can call the upstream public web data source.
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id | string | Yes | Tes resource id | ||
| country | string | No | Storefront market for pricing/currency Allowed values: GB, US, AU, IE, CA, NZ, UN | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/tes/resources/detail?country=us" \ -H "x-api-key: $CRAWLORA_API_KEY"
Send your scraping API key in the x-api-key header. Use the console API Keys page to rotate or select the active key.
Endpoint usage is metered in credits. The plan prices, included credits, limits, and overage rates below match the active backend billing configuration.
| Plan | Price | Included credits | Daily cap | Rate limit | Overage |
|---|---|---|---|---|---|
| Free | $0/mo | 2,000 | 500 daily credits | 5/min | No overage |
| Starter | $9/mo | 20,000 | 5,000 daily credits | 15/min | $0.75/1,000 overage credits when enabled |
| Growth | $29/mo | 100,000 | 25,000 daily credits | 45/min | $0.45/1,000 overage credits when enabled |
| Pro | $79/mo | 400,000 | No daily cap | 120/min | $0.30/1,000 overage credits |
| Business | $199/mo | 1,200,000 | No daily cap | 300/min | $0.20/1,000 overage credits |
| Enterprise | $499/mo | 5,000,000 | No daily cap | 1,000/min | $0.12/1,000 overage credits |
This endpoint is executed through Crawlora's managed scraping infrastructure.
- An unknown or no-longer-listed resource id returns `404`. - `id` resolves purely from the numeric id -- the real listing's slug does not need to be known. - `price` is `0` and `free` is `true` for free resources. - `reviews` is the most recent page of reviews (as many as the resource's own page shows, typically up to 5); `rating_count` is the true total review count across every review, not just `len(reviews)`. A resource with no reviews yet returns an empty `reviews` array. - `license` is the resource's own licence label as Tes's detail page displays it, e.g. `Tes paid licence` or `Creative Commons "Sharealike"`. - `attachments` lists each downloadable file's own type, size, and a preview thumbnail image -- metadata only; the file itself is never fetched (robots.txt already disallows `/teaching-resource/download/`). Example response: ```json { "code": 200, "msg": "OK", "data": { "id": "13463100", "title": "Phonics Bunting", "url": "https://www.tes.com/teaching-resource/x-13463100", "description": "These are A-Z alphabet bunting designed using the Little Wandle phonics scheme.", "author": "joannecrozierharbottle", "author_url": "https://www.tes.com/teaching-resources/shop/joannecrozierharbottle", "subject": "English", "age_range": "3-5", "resource_type": "Visual aid/Display", "price": 1, "currency": "GBP", "free": false, "rating": 4.2, "rating_count": 5, "thumbnail_url": "https://d1e4pidl3fu268.cloudfront.net/example/preview.png", "license": "Tes paid licence", "attachments": [ { "file_type": "png", "size": "256.71 KB", "preview_image_url": "https://d1uvxqwmcz8fl1.cloudfront.net/tes/resources/13463100/one/image?width=500" } ], "reviews": [ { "id": "1313111", "rating": 5, "comment": "Thank you, great resource", "author": "jafgthomas", "author_url": "https://www.tes.com/teaching-resources/shop/jafgthomas", "posted": "8 years ago" } ] } } ```
Crawlora does not silently return bad data when the upstream page cannot be used.
| Status | Common failure case |
|---|---|
| 400 | Invalid input or missing required parameter |
| 429 | Plan or endpoint rate limit exceeded |
| 500 | Internal execution error |
| 502 | Upstream platform failed, returned unusable HTML, or served a challenge page that could not be resolved |
When possible, Crawlora returns structured error context so your integration can retry, back off, or inspect the request.
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
{
"code": 200,
"msg": "OK",
"data": {
"id": "13463100",
"title": "Phonics Bunting",
"url": "https://www.tes.com/teaching-resource/x-13463100",
"description": "These are A-Z alphabet bunting designed using the Little Wandle phonics scheme.",
"author": "joannecrozierharbottle",
"author_url": "https://www.tes.com/teaching-resources/shop/joannecrozierharbottle",
"subject": "English",
"age_range": "3-5",
"resource_type": "Visual aid/Display",
"price": 1,
"currency": "GBP",
"free": false,
"rating": 4.2,
"rating_count": 5,
"thumbnail_url": "https://d1e4pidl3fu268.cloudfront.net/example/preview.png",
"license": "Tes paid licence",
"attachments": [
{
"file_type": "png",
"size": "256.71 KB",
"preview_image_url": "https://d1uvxqwmcz8fl1.cloudfront.net/tes/resources/13463100/one/image?width=500"
}
],
"reviews": [
{
"id": "1313111",
"rating": 5,
"comment": "Thank you, great resource",
"author": "jafgthomas",
"author_url": "https://www.tes.com/teaching-resources/shop/jafgthomas",
"posted": "8 years ago"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/tes.resourceDetailResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | tes.ResourceDetail | No | ||||
| data.age_range | string | No | ||||
| data.attachments | array | No | Attachments lists each downloadable file's own type/size and a preview thumbnail -- metadata only (the file itself is never fetched; robots.txt disallows /teaching-resource/download/ regardless). | |||
| data.attachments[].file_type | string | No | ||||
| data.attachments[].preview_image_url | string | No | ||||
| data.attachments[].size | string | No | ||||
| data.author | string | No | ||||
| data.author_url | string | No | ||||
| data.currency | string | No | ||||
| data.description | string | No | ||||
| data.free | boolean | No | ||||
| data.id | string | No | ||||
| data.license | string | No | License is the resource's own licence label as Tes's detail page itself displays it (e.g. "Tes paid licence", `Creative Commons "Sharealike"`) -- a longer display string than ResourceSummary.License's short facet code, since the detail page has no equivalent short-code field to read. | |||
| data.price | number | No | ||||
| data.rating | number | No | ||||
| data.rating_count | integer | No | ||||
| data.resource_type | string | No | ||||
| data.reviews | array | No | Reviews is the most recent page of reviews (the same page the pricing/reviews JSON endpoint returns by default -- see rawResourcePricing's doc comment). RatingCount is the true total across every review, not just len(Reviews). | |||
| data.reviews[].author | string | No | ||||
| data.reviews[].author_url | string | No | ||||
| data.reviews[].comment | string | No | ||||
| data.reviews[].id | string | No | ||||
| data.reviews[].posted | string | No | ||||
| data.reviews[].rating | number | No | ||||
| data.subject | string | No | ||||
| data.thumbnail_url | string | No | ||||
| data.title | string | No | ||||
| data.url | string | No | ||||
| msg | string | No | OK |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/tes/resources/detail?country=us" \
-H "x-api-key: $CRAWLORA_API_KEY"Crawlora is designed for responsible structured public web data workflows. Customers are responsible for using Crawlora in compliance with applicable laws, third-party rights, target-platform rules, and Crawlora terms.
Read Crawlora terms