Skip to content

最后更新

更新日志

Quotes to Scrape API

正常只读

以 API 形式提供 Quotes to Scrape(quotes.toscrape.com)的内容:分页返回名言及其作者和标签,并提供完整的作者资料(出生日期、出生地、生平简介)。 来源: quotes.toscrape.com.

基础 URL
https://api.maviapi.com/v1/sites/quotes-toscrape
7
端点
9 min ago
最近验证
100%
可用率 / 7 天
506ms
p50 延迟
GET/quotes5 credits per call

名言

网站某一列表页上的名言(每页 10 条,超出末页的页面为空),附带分页状态和 Top Ten 标签侧栏。

Bearer auth. Pass your key as Authorization: Bearer <key> on every request.
integerOptionalin query

listing page number, starting at 1.

pageintegere.g.1
countintegere.g.10
quotesobject[]5 fields
textstringe.g."The world as we have created it is a process of our thinking. It cannot be changed without changing our thinking."
authorstringe.g."Albert Einstein"
author_slugstringe.g."Albert-Einstein"
author_urlstringe.g."https://quotes.toscrape.com/author/Albert-Einstein/"
tagsstring[]
has_nextbooleane.g.true
has_previousbooleane.g.false
next_pageintegere.g.2
previous_pagenull
top_tagsstring[]
paginationobject3 fields
countintegere.g.10
has_morebooleane.g.true
next_cursorstringe.g."WzEsIjA2NTllYjY5IixudWxsLDAseyJwYWdlIjoyfV0"
fetched_atstringe.g."2026-11-27T08:36:49.862Z"
ageintegere.g.0
Try itLive
GET
https://api.maviapi.com/v1/sites/quotes-toscrape/quotes?page=1
Request
curl "https://api.maviapi.com/v1/sites/quotes-toscrape/quotes?page=1" \
-H "Authorization: Bearer $MAVI_KEY"
Example686 B
{
  "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.

How to connect
https://mcp.maviapi.com/mcp

Or 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 import

Paste 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 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    pageinteger / query否listing page number, starting at 1.
    响应字段
    字段类型说明
    pageinteger
    countinteger
    quotesobject[]
    quotes[].textstring
    quotes[].authorstring
    quotes[].author_slugstring
    quotes[].author_urlstring
    quotes[].tagsstring[]
    has_nextboolean
    has_previousboolean
    next_pageinteger
    previous_pagenull
    top_tagsstring[]
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursorstring
    fetched_atstring
    ageinteger
  • 标签 GET /tag

    某个标签下的名言,每页 10 条(超出末页的页面为空),附带网站的分页状态。

    GET /tag 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    tagstring / query否tag as the site spells it, e.g. love, inspirational, life, humor, books, be-yourself.
    pageinteger / query否page of the tag listing, starting at 1.
    响应字段
    字段类型说明
    tagstring
    pageinteger
    countinteger
    quotesobject[]
    quotes[].textstring
    quotes[].authorstring
    quotes[].author_slugstring
    quotes[].author_urlstring
    quotes[].tagsstring[]
    has_nextboolean
    has_previousboolean
    next_pageinteger
    previous_pagenull
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursorstring
    fetched_atstring
    ageinteger
  • 作者 GET /author

    作者简介:显示名称、作者页面 slug、出生日期、出生地和生平简介。网站没有该作者的页面时,`found` 为 false。

    GET /author 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    namestring / query否author display name as shown on a quote (e.g. "Albert Einstein", "J.K. Rowling") or the author-page slug ("J-K-Rowling").
    响应字段
    字段类型说明
    foundboolean
    namestring
    slugstring
    born_datestring
    born_locationstring
    descriptionstring
    fetched_atstring
    ageinteger
  • 标签 GET /tags

    网站上使用的所有标签,按使用次数从多到少排列(次数相同时按名称排序),每个标签附带名言数、不同作者数及标签页 URL。

    GET /tags 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    qstring / query否optional text; keep only tags containing it (case insensitive).
    响应字段
    字段类型说明
    qnull
    totalinteger
    countinteger
    tagsobject[]
    tags[].tagstring
    tags[].quote_countinteger
    tags[].author_countinteger
    tags[].tag_urlstring
    completeboolean
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • 浏览 GET /explore

    返回一个名言列表页(含分页状态和 Top Ten 标签),除非 include 为 "quotes",还会返回该页前 N 位不同作者的生平简介。

    GET /explore 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    pageinteger / query否listing page number; a value below 1 falls back to 1.
    includestring / query否"quotes" for the quotes only, "quotes+authors" (default) to add author biographies; any other value means the default. 可选值: quotes, quotes+authors.
    authorsinteger / query否how many distinct authors of the page to add biographies for, 1-5 (values outside are clamped).
    响应字段
    字段类型说明
    pageinteger
    includestring
    countinteger
    quotesobject[]
    quotes[].textstring
    quotes[].authorstring
    quotes[].author_slugstring
    quotes[].author_urlstring
    quotes[].tagsstring[]
    authorsobject[]
    authors[].foundboolean
    authors[].namestring
    authors[].slugstring
    authors[].born_datestring
    authors[].born_locationstring
    authors[].descriptionstring
    has_nextboolean
    has_previousboolean
    next_pageinteger
    previous_pagenull
    top_tagsstring[]
    fetched_atstring
    ageinteger
  • 作者 GET /authors

    网站上被引用的所有作者,按名言数量从多到少排列(数量相同时按名称排序),每位作者附带名言数、作者页面 slug/URL 及其名言所用的标签(按使用次数从多到少)。

    GET /authors 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    qstring / query否optional text; keep only authors whose name or slug contains it (case and accent insensitive).
    响应字段
    字段类型说明
    qnull
    totalinteger
    countinteger
    authorsobject[]
    authors[].namestring
    authors[].slugstring
    authors[].author_urlstring
    authors[].quote_countinteger
    authors[].tagsstring[]
    completeboolean
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • 搜索 GET /search

    返回网站上同时满足所有给定筛选条件(作者、标签、正文中的词语)的全部名言,按网站自身的列表顺序排列。不传筛选条件时返回全部名言。

    GET /search 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    authorstring / 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.
    tagstring / query否one tag as the site spells it (love, humor, inspirational...); an unknown tag is rejected. See /tags.
    qstring / query否words that must all appear in the quote text (case and accent insensitive).
    响应字段
    字段类型说明
    authornull
    tagnull
    qnull
    totalinteger
    countinteger
    quotesobject[]
    quotes[].textstring
    quotes[].authorstring
    quotes[].author_slugstring
    quotes[].author_urlstring
    quotes[].tagsstring[]
    completeboolean
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger

将 Quotes to Scrape 数据导出为 CSV

下面的每个列表都可以下载为 CSV 文件,每条记录一行。用上方控制台下面的 "Get all the data, no code" 卡片把列表收集到数据集中。数据集会逐页读取列表,之后可下载为 CSV、JSON 或 JSONL。

列表CSV 列
名言GET /quotestext, author, author_slug, author_url, tags
标签GET /tagtext, author, author_slug, author_url, tags
标签GET /tagstag, quote_count, author_count, tag_url
作者GET /authorsname, slug, author_url, quote_count, tags
搜索GET /searchtext, 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
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.toscrape.com 修改页面时,maviapi 会让 Quotes to Scrape API 保持可用,您继续调用同样的端点,并得到本页文档所述结构的 JSON。它当前的运行状况见状态页,变更记录见它的更新日志。

更新会破坏我的 Quotes to Scrape API 集成吗?

不会。您正在使用的端点,其结构永远不会改变:新的字段、可选参数和端点只会加在旁边,会破坏调用的变更则作为新端点发布。请忽略您不认识的响应字段,新内容请关注更新日志。

  • Speedtest by Ookla API

    来自 Speedtest Global Index 的网速统计数据:固定宽带和移动网络的国家及城市排名(下载、上传、延迟)、各国的月度历史数据、全球平均值,以及 Speedtest 测速服务器搜索。

  • Fazilet Takvimi API

    覆盖全球数千个地区的每日礼拜时间和 Fazilet Takvimi 伊斯兰历(Hicri/Rumi 日期、每日历史大事记、月相)。

  • Tripadvisor API

    来自 Tripadvisor 的行程规划数据:支持地点搜索,并可按地点(geo_id)获取景点、餐厅和酒店,包含评分、评论、价格和坐标。先用 /search 解析地名,再通过…