最后更新
更新日志/quotes5 credits per call名言
网站某一列表页上的名言(每页 10 条,超出末页的页面为空),附带分页状态和 Top Ten 标签侧栏。
Authorization: Bearer <key> on every request.Parameters
listing page number, starting at 1.
Response fields
pagee.g.1counte.g.10quotes
texte.g."The world as we have created it is a process of our thinking. It cannot be changed without changing our thinking."authore.g."Albert Einstein"author_sluge.g."Albert-Einstein"author_urle.g."https://quotes.toscrape.com/author/Albert-Einstein/"tagshas_nexte.g.truehas_previouse.g.falsenext_pagee.g.2previous_pagetop_tagspagination
counte.g.10has_moree.g.truenext_cursore.g."WzEsIjA2NTllYjY5IixudWxsLDAseyJwYWdlIjoyfV0"fetched_ate.g."2026-11-27T08:36:49.862Z"agee.g.0curl "https://api.maviapi.com/v1/sites/quotes-toscrape/quotes?page=1" \-H "Authorization: Bearer $MAVI_KEY"
{
"page": 1,
"count": 10,
"quotes": [
{
"text": "The world as we have created it is a process of our thinking. It cannot be changed without changing our thinking.",
"author": "Albert Einstein",
"author_slug": "Albert-Einstein",
"author_url": "https://quotes.toscrape.com/author/Albert-Einstein/",
"tags": [
"change"
]
}
],
"has_next": true,
"has_previous": false,
"next_page": 2,
"previous_page": null,
"top_tags": [
"love"
],
"pagination": {
"count": 10,
"has_more": true,
"next_cursor": "WzEsIjA2NTllYjY5IixudWxsLDAseyJwYWdlIjoyfV0"
},
"fetched_at": "2026-11-27T08:36:49.862Z",
"age": 0
}Get all the data, no code
Collect every page of GET /quotes into a dataset, for one request or for a whole list of them, then download it as CSV or JSON. A page costs the same as one call of the endpoint; the download is free.
Use Quotes to Scrape API from Claude, ChatGPT and your coding tools
Add this URL as a custom connector and sign in to maviapi. Nothing to install.
https://mcp.maviapi.com/mcpOr run it locally, with each endpoint of Quotes to Scrape API as its own tool:
claude mcp add maviapi -e MAVIAPI_TOOLS=quotes-toscrape -- npx -y '@maviapi/mcp'Import Quotes to Scrape API into Postman and other tools
How to importPaste a link into Postman, Insomnia, an agent framework or a no-code tool to get every endpoint with its parameters and response fields. The link always serves the current endpoints, so importing it again picks up new ones.
- OpenAPI 3.1
https://api.maviapi.com/v1/apis/quotes-toscrape/openapi.json - Postman
https://api.maviapi.com/v1/apis/quotes-toscrape/postman.json
The Postman collection sends the shared demo key until you put your own key in its maviapi_key variable.
使用 Quotes to Scrape API 进行开发
选择一个端点开始
- 名言
GET /quotes网站某一列表页上的名言(每页 10 条,超出末页的页面为空),附带分页状态和 Top Ten 标签侧栏。
GET /quotes 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 page integer / query 否 listing page number, starting at 1. 响应字段 字段 类型 说明 page integer count integer quotes object[] quotes[].text string quotes[].author string quotes[].author_slug string quotes[].author_url string quotes[].tags string[] has_next boolean has_previous boolean next_page integer previous_page null top_tags string[] pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer - 标签
GET /tag某个标签下的名言,每页 10 条(超出末页的页面为空),附带网站的分页状态。
GET /tag 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 tag string / query 否 tag as the site spells it, e.g. love, inspirational, life, humor, books, be-yourself. page integer / query 否 page of the tag listing, starting at 1. 响应字段 字段 类型 说明 tag string page integer count integer quotes object[] quotes[].text string quotes[].author string quotes[].author_slug string quotes[].author_url string quotes[].tags string[] has_next boolean has_previous boolean next_page integer previous_page null pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer - 作者
GET /author作者简介:显示名称、作者页面 slug、出生日期、出生地和生平简介。网站没有该作者的页面时,`found` 为 false。
GET /author 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 name string / query 否 author display name as shown on a quote (e.g. "Albert Einstein", "J.K. Rowling") or the author-page slug ("J-K-Rowling"). 响应字段 字段 类型 说明 found boolean name string slug string born_date string born_location string description string fetched_at string age integer - 标签
GET /tags网站上使用的所有标签,按使用次数从多到少排列(次数相同时按名称排序),每个标签附带名言数、不同作者数及标签页 URL。
GET /tags 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 q string / query 否 optional text; keep only tags containing it (case insensitive). 响应字段 字段 类型 说明 q null total integer count integer tags object[] tags[].tag string tags[].quote_count integer tags[].author_count integer tags[].tag_url string complete boolean pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 浏览
GET /explore返回一个名言列表页(含分页状态和 Top Ten 标签),除非 include 为 "quotes",还会返回该页前 N 位不同作者的生平简介。
GET /explore 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 page integer / query 否 listing page number; a value below 1 falls back to 1. include string / query 否 "quotes" for the quotes only, "quotes+authors" (default) to add author biographies; any other value means the default. 可选值: quotes, quotes+authors. authors integer / query 否 how many distinct authors of the page to add biographies for, 1-5 (values outside are clamped). 响应字段 字段 类型 说明 page integer include string count integer quotes object[] quotes[].text string quotes[].author string quotes[].author_slug string quotes[].author_url string quotes[].tags string[] authors object[] authors[].found boolean authors[].name string authors[].slug string authors[].born_date string authors[].born_location string authors[].description string has_next boolean has_previous boolean next_page integer previous_page null top_tags string[] fetched_at string age integer - 作者
GET /authors网站上被引用的所有作者,按名言数量从多到少排列(数量相同时按名称排序),每位作者附带名言数、作者页面 slug/URL 及其名言所用的标签(按使用次数从多到少)。
GET /authors 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 q string / query 否 optional text; keep only authors whose name or slug contains it (case and accent insensitive). 响应字段 字段 类型 说明 q null total integer count integer authors object[] authors[].name string authors[].slug string authors[].author_url string authors[].quote_count integer authors[].tags string[] complete boolean pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 搜索
GET /search返回网站上同时满足所有给定筛选条件(作者、标签、正文中的词语)的全部名言,按网站自身的列表顺序排列。不传筛选条件时返回全部名言。
GET /search 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 author string / query 否 author name or author-page slug, case and accent insensitive ("Albert Einstein", "andre gide", "Albert-Einstein"); a surname only one author has works too ("einstein"). Unknown or ambiguous names are rejected with candidates; see /authors. tag string / query 否 one tag as the site spells it (love, humor, inspirational...); an unknown tag is rejected. See /tags. q string / query 否 words that must all appear in the quote text (case and accent insensitive). 响应字段 字段 类型 说明 author null tag null q null total integer count integer quotes object[] quotes[].text string quotes[].author string quotes[].author_slug string quotes[].author_url string quotes[].tags string[] complete boolean pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer
将 Quotes to Scrape 数据导出为 CSV
下面的每个列表都可以下载为 CSV 文件,每条记录一行。用上方控制台下面的 "Get all the data, no code" 卡片把列表收集到数据集中。数据集会逐页读取列表,之后可下载为 CSV、JSON 或 JSONL。
| 列表 | CSV 列 |
|---|---|
名言GET /quotes | text, author, author_slug, author_url, tags |
标签GET /tag | text, author, author_slug, author_url, tags |
标签GET /tags | tag, quote_count, author_count, tag_url |
作者GET /authors | name, slug, author_url, quote_count, tags |
搜索GET /search | text, author, author_slug, author_url, tags |
嵌套的值(列表或对象)以 JSON 写入同一个单元格。 数据集和导出如何工作
Quotes to Scrape API 常见问题
能获取什么数据、费用多少、如何调用。
Quotes to Scrape 有官方 API 吗?
这个 Quotes to Scrape API 不是官方 API。它是 maviapi 针对 quotes.toscrape.com 上的公开数据提供的独立托管 API,并非由 Quotes to Scrape 开发、认可或支持。Quotes to Scrape 是否提供自己的开发者 API,请向 Quotes to Scrape 咨询。这个 API 用一个 maviapi 密钥即可调用,它的每个端点和返回的每个字段都在本页有文档说明。
Quotes to Scrape API 可以获取哪些数据?
Quotes to Scrape API 有 7 个端点。每个端点都返回 JSON,参数和字段见上方的文档:
- GET
/quotes: 网站某一列表页上的名言(每页 10 条,超出末页的页面为空),附带分页状态和 Top Ten 标签侧栏。 - GET
/tag: 某个标签下的名言,每页 10 条(超出末页的页面为空),附带网站的分页状态。 - GET
/author: 作者简介:显示名称、作者页面 slug、出生日期、出生地和生平简介。 - GET
/tags: 网站上使用的所有标签,按使用次数从多到少排列(次数相同时按名称排序),每个标签附带名言数、不同作者数及标签页 URL。 - GET
/explore: 返回一个名言列表页(含分页状态和 Top Ten 标签),除非 include 为 "quotes",还会返回该页前 N 位不同作者的生平简介。 - GET
/authors: 网站上被引用的所有作者,按名言数量从多到少排列(数量相同时按名称排序),每位作者附带名言数、作者页面 slug/URL 及其名言所用的标签(按使用次数从多到少)。 - GET
/search: 返回网站上同时满足所有给定筛选条件(作者、标签、正文中的词语)的全部名言,按网站自身的列表顺序排列。
Quotes to Scrape API 的价格是多少?
调用用您 maviapi 套餐中的积分支付,只有成功的调用才会计费。此 API 的每个端点每次调用消耗 5 个积分。在 Hobby 套餐下(每月 $49,含 250,000 个积分),1,000 次调用约 $0.98。失败的调用不收费。Free 套餐每月提供 1,000 个积分,无需信用卡。超出部分请查看套餐和积分价格。
如何调用 Quotes to Scrape API?
向端点发送 HTTPS 请求,并在 Authorization 请求头中带上您的 API 密钥。例如 GET /quotes:
curl 'https://api.maviapi.com/v1/sites/quotes-toscrape/quotes' \
-H "Authorization: Bearer $MAVI_KEY"在您的 API 密钥页面创建密钥,或者先在上方的控制台中用免费测试密钥试用任意端点。
以 JSON 获取 Quotes to Scrape 数据有哪些方式?
以 JSON 获取 Quotes to Scrape 数据的每种方式适合不同的需求:
- 自己写爬虫: 完全由自己掌控,不依赖任何服务商,但解析、被拦截的请求以及 quotes.toscrape.com 每次改版后的修复都要自己负责。更适合从很少变化的页面一次性获取数据。
- Apify: 一个 Actor 市场,Actor 由您自己运行,输入、输出和价格由各个 Actor 决定。当已有 Actor 能返回您需要的数据,或者您想托管自己的代码时更合适。参见maviapi 与 Apify 的对比。
- RapidAPI: 一个汇集了众多提供方 API 的平台,用一个 RapidAPI 密钥调用,每个 API 单独定价。当您已经在使用该平台,并且其中某个 API 能满足需求时更合适。来源:RapidAPI docs。
- maviapi: 本页的 Quotes to Scrape API:7 个带文档的端点、公开的响应结构,以及一个可用于整个目录的密钥。当这些数据是您产品的一部分,而您不想维护爬虫时更合适。
quotes.toscrape.com 改版后会怎样?
更新会破坏我的 Quotes to Scrape API 集成吗?
不会。您正在使用的端点,其结构永远不会改变:新的字段、可选参数和端点只会加在旁边,会破坏调用的变更则作为新端点发布。请忽略您不认识的响应字段,新内容请关注更新日志。
相关 API
- Speedtest by Ookla API
来自 Speedtest Global Index 的网速统计数据:固定宽带和移动网络的国家及城市排名(下载、上传、延迟)、各国的月度历史数据、全球平均值,以及 Speedtest 测速服务器搜索。
- Fazilet Takvimi API
覆盖全球数千个地区的每日礼拜时间和 Fazilet Takvimi 伊斯兰历(Hicri/Rumi 日期、每日历史大事记、月相)。
- Tripadvisor API
来自 Tripadvisor 的行程规划数据:支持地点搜索,并可按地点(geo_id)获取景点、餐厅和酒店,包含评分、评论、价格和坐标。先用 /search 解析地名,再通过…