Skip to content

最后更新

更新日志

Speedtest by Ookla API

正常只读

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

基础 URL
https://api.maviapi.com/v1/sites/speedtest
9
端点
52 min ago
最近验证
100%
可用率 / 7 天
930ms
p50 延迟
1
自动修复 / 累计
GET/servers5 credits per call

服务器

城市、国家或赞助商(网络)与搜索词匹配的 Speedtest 测试服务器,最多 100 个,按国家、城市和 id 排序:返回 id、城市名、赞助商、国家、主机、HTTPS 支持情况、坐标和 ISP id。

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

city, country or sponsor name, e.g. "berlin", "Vodafone"

searchstringe.g."berlin"
countintegere.g.24
serversobject[]10 fields
idstringe.g."71810"
namestringe.g."Camaçari"
sponsorstringe.g."Cyberlink"
countrystringe.g."Brazil"
country_codestringe.g."BR"
hoststringe.g."speedtest-cam1.cyberlink.net.br:8080"
httpsbooleane.g.true
latnumbere.g.-12.7002
lonnumbere.g.-38.3253
isp_idstringe.g."185806"
paginationobject3 fields
countintegere.g.24
has_morebooleane.g.false
next_cursornull
fetched_atstringe.g."2026-11-27T10:09:02.668Z"
ageintegere.g.0
Try itLive
GET
https://api.maviapi.com/v1/sites/speedtest/servers?search=berlin
Request
curl "https://api.maviapi.com/v1/sites/speedtest/servers?search=berlin" \
-H "Authorization: Bearer $MAVI_KEY"
Example493 B
{
  "search": "berlin",
  "count": 24,
  "servers": [
    {
      "id": "71810",
      "name": "Camaçari",
      "sponsor": "Cyberlink",
      "country": "Brazil",
      "country_code": "BR",
      "host": "speedtest-cam1.cyberlink.net.br:8080",
      "https": true,
      "lat": -12.7002,
      "lon": -38.3253,
      "isp_id": "185806"
    }
  ],
  "pagination": {
    "count": 24,
    "has_more": false,
    "next_cursor": null
  },
  "fetched_at": "2026-11-27T10:09:02.668Z",
  "age": 0
}

Get all the data, no code

Collect every page of GET /servers 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 Speedtest by Ookla 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 Speedtest by Ookla API as its own tool:

claude mcp add maviapi -e MAVIAPI_TOOLS=speedtest -- npx -y '@maviapi/mcp'

Import Speedtest by Ookla 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/speedtest/openapi.json
  • Postman
    https://api.maviapi.com/v1/apis/speedtest/postman.json

The Postman collection sends the shared demo key until you put your own key in its maviapi_key variable.

使用 Speedtest by Ookla API 进行开发

选择一个端点开始

  • 服务器 GET /servers

    城市、国家或赞助商(网络)与搜索词匹配的 Speedtest 测试服务器,最多 100 个,按国家、城市和 id 排序:返回 id、城市名、赞助商、国家、主机、HTTPS 支持情况、坐标和 ISP id。

    GET /servers 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    searchstring / query否city, country or sponsor name, e.g. "berlin", "Vodafone"
    响应字段
    字段类型说明
    searchstring
    countinteger
    serversobject[]
    servers[].idstring
    servers[].namestring
    servers[].sponsorstring
    servers[].countrystring
    servers[].country_codestring
    servers[].hoststring
    servers[].httpsboolean
    servers[].latnumber
    servers[].lonnumber
    servers[].isp_idstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • 探索 GET /explore

    一次调用获取国家概览:返回该国最新的固定宽带和移动网络中位数/平均值排名及速度、该国的城市排名(固定宽带和移动网络,按排名排序)、13 个月历史数据,以及该国境内的 Speedtest 测试服务器(最多 100 个,按城市和 id 排序)。没有国家匹配 q 时 found 为 false。

    GET /explore 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    qstring / query否country name (exact, else the first country whose name contains it), ISO-2 code or slug
    includestring / query否extra legs to add: "all" (history and servers), "history", "servers" or "none"; history is null and servers empty when left out 可选值: all, history, servers, none.
    响应字段
    字段类型说明
    querystring
    foundboolean
    countryobject
    country.countrystring
    country.country_codestring
    country.slugstring
    country.fixedobject
    country.fixed.medianobject
    country.fixed.median.rankinteger
    country.fixed.median.download_mbpsnumber
    country.fixed.median.upload_mbpsnumber
    country.fixed.median.latency_msinteger
    country.fixed.meanobject
    country.fixed.mean.rankinteger
    country.fixed.mean.download_mbpsnumber
    country.fixed.mean.upload_mbpsnumber
    country.fixed.mean.latency_msinteger
    country.mobileobject
    country.mobile.medianobject
    country.mobile.median.rankinteger
    country.mobile.median.download_mbpsnumber
    country.mobile.median.upload_mbpsnumber
    country.mobile.median.latency_msinteger
    country.mobile.meanobject
    country.mobile.mean.rankinteger
    country.mobile.mean.download_mbpsnumber
    country.mobile.mean.upload_mbpsnumber
    country.mobile.mean.latency_msinteger
    citiesobject
    cities.fixedobject[]
    cities.fixed[].rankinteger
    cities.fixed[].rank_changeinteger
    cities.fixed[].citystring
    cities.fixed[].countrystring
    cities.fixed[].country_codestring
    cities.fixed[].country_slugstring
    cities.fixed[].download_mbpsnumber
    cities.fixed[].upload_mbpsnumber
    cities.fixed[].latency_msinteger
    cities.fixed[].jitter_msinteger
    cities.fixed[].monthstring
    cities.mobileobject[]
    cities.mobile[].rankinteger
    cities.mobile[].rank_changeinteger
    cities.mobile[].citystring
    cities.mobile[].countrystring
    cities.mobile[].country_codestring
    cities.mobile[].country_slugstring
    cities.mobile[].download_mbpsnumber
    cities.mobile[].upload_mbpsnumber
    cities.mobile[].latency_msinteger
    cities.mobile[].jitter_msinteger
    cities.mobile[].monthstring
    historyobject
    history.fixedobject
    history.fixed.medianobject
    history.fixed.median.latestobject
    history.fixed.median.latest.rankinteger
    history.fixed.median.latest.previous_rankinteger
    history.fixed.median.latest.rank_changeinteger
    history.fixed.median.latest.download_mbpsnumber
    history.fixed.median.latest.upload_mbpsnumber
    history.fixed.median.latest.latency_msinteger
    history.fixed.median.historyobject[]
    history.fixed.median.history[].monthstring
    history.fixed.median.history[].rankinteger
    history.fixed.median.history[].download_mbpsnumber
    history.fixed.median.history[].upload_mbpsnumber
    history.fixed.median.history[].latency_msinteger
    history.fixed.median.history[].jitter_msinteger
    history.fixed.meanobject
    history.fixed.mean.latestobject
    history.fixed.mean.latest.rankinteger
    history.fixed.mean.latest.previous_rankinteger
    history.fixed.mean.latest.rank_changeinteger
    history.fixed.mean.latest.download_mbpsnumber
    history.fixed.mean.latest.upload_mbpsnumber
    history.fixed.mean.latest.latency_msinteger
    history.fixed.mean.historyobject[]
    history.fixed.mean.history[].monthstring
    history.fixed.mean.history[].rankinteger
    history.fixed.mean.history[].download_mbpsnumber
    history.fixed.mean.history[].upload_mbpsnumber
    history.fixed.mean.history[].latency_msinteger
    history.fixed.mean.history[].jitter_msinteger
    history.mobileobject
    history.mobile.medianobject
    history.mobile.median.latestobject
    history.mobile.median.latest.rankinteger
    history.mobile.median.latest.previous_rankinteger
    history.mobile.median.latest.rank_changeinteger
    history.mobile.median.latest.download_mbpsnumber
    history.mobile.median.latest.upload_mbpsnumber
    history.mobile.median.latest.latency_msinteger
    history.mobile.median.historyobject[]
    history.mobile.median.history[].monthstring
    history.mobile.median.history[].rankinteger
    history.mobile.median.history[].download_mbpsnumber
    history.mobile.median.history[].upload_mbpsnumber
    history.mobile.median.history[].latency_msinteger
    history.mobile.median.history[].jitter_msinteger
    history.mobile.meanobject
    history.mobile.mean.latestobject
    history.mobile.mean.latest.rankinteger
    history.mobile.mean.latest.previous_rankinteger
    history.mobile.mean.latest.rank_changeinteger
    history.mobile.mean.latest.download_mbpsnumber
    history.mobile.mean.latest.upload_mbpsnumber
    history.mobile.mean.latest.latency_msinteger
    history.mobile.mean.historyobject[]
    history.mobile.mean.history[].monthstring
    history.mobile.mean.history[].rankinteger
    history.mobile.mean.history[].download_mbpsnumber
    history.mobile.mean.history[].upload_mbpsnumber
    history.mobile.mean.history[].latency_msinteger
    history.mobile.mean.history[].jitter_msinteger
    serversobject[]
    servers[].idstring
    servers[].namestring
    servers[].sponsorstring
    servers[].countrystring
    servers[].country_codestring
    servers[].hoststring
    servers[].httpsboolean
    servers[].latnumber
    servers[].lonnumber
    servers[].isp_idstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • 排名 GET /rankings

    Speedtest Global Index 最新月份的国家排名,按排名排序:包含每个国家的下载速度、上传速度、延迟、抖动、排名及环比排名变化。

    GET /rankings 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    typestring / query否connection type, "fixed" (broadband) or "mobile" 可选值: fixed, mobile.
    metricstring / query否statistic the ranking is based on, "median" or "mean" 可选值: median, mean.
    qstring / query否optional filter by country name (substring, case and accents ignored), ISO-2 code or slug
    响应字段
    字段类型说明
    typestring
    metricstring
    monthstring
    countinteger
    countriesobject[]
    countries[].rankinteger
    countries[].rank_changeinteger
    countries[].countrystring
    countries[].country_codestring
    countries[].slugstring
    countries[].download_mbpsnumber
    countries[].upload_mbpsinteger
    countries[].latency_msinteger
    countries[].jitter_msinteger
    countries[].monthstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • 城市 GET /cities

    Speedtest Global Index 最新月份的城市排名(中位数速度),按排名排序,包含每个城市的下载速度、上传速度、延迟、抖动和排名变化。

    GET /cities 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    typestring / query否connection type, "fixed" (broadband) or "mobile" 可选值: fixed, mobile.
    qstring / query否optional filter by city name (substring, case and accents ignored), or by country name, ISO-2 code or slug
    响应字段
    字段类型说明
    typestring
    metricstring
    monthstring
    countinteger
    citiesobject[]
    cities[].rankinteger
    cities[].rank_changeinteger
    cities[].citystring
    cities[].countrystring
    cities[].country_codestring
    cities[].country_slugstring
    cities[].download_mbpsnumber
    cities[].upload_mbpsnumber
    cities[].latency_msinteger
    cities[].jitter_msinteger
    cities[].monthstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • 国家 GET /countries

    Speedtest Global Index 收录的所有国家,按字母顺序排列,附最新的固定宽带和移动网络中位数及平均值排名、下载速度、上传速度和延迟(该国在某类型中未上榜时为 null)。将 slug 用于 /countries/{slug}。

    GET /countries 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    qstring / query否optional filter by country name (substring, case and accents ignored), ISO-2 code or slug
    响应字段
    字段类型说明
    countinteger
    countriesobject[]
    countries[].countrystring
    countries[].country_codestring
    countries[].slugstring
    countries[].fixedobject
    countries[].fixed.medianobject
    countries[].fixed.median.rankinteger
    countries[].fixed.median.download_mbpsnumber
    countries[].fixed.median.upload_mbpsnumber
    countries[].fixed.median.latency_msinteger
    countries[].fixed.meanobject
    countries[].fixed.mean.rankinteger
    countries[].fixed.mean.download_mbpsnumber
    countries[].fixed.mean.upload_mbpsnumber
    countries[].fixed.mean.latency_msinteger
    countries[].mobileobject
    countries[].mobile.medianobject
    countries[].mobile.median.rankinteger
    countries[].mobile.median.download_mbpsnumber
    countries[].mobile.median.upload_mbpsnumber
    countries[].mobile.median.latency_msinteger
    countries[].mobile.meanobject
    countries[].mobile.mean.rankinteger
    countries[].mobile.mean.download_mbpsnumber
    countries[].mobile.mean.upload_mbpsnumber
    countries[].mobile.mean.latency_msinteger
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • 测试结果 GET /results/{id}

    按 id 获取单条分享的 Speedtest 测试结果:测试时间(UTC)、下载和上传速度(Mbps)、ping 以及空闲/下载/上传负载延迟(ms)、ISP、服务商、连接类型和模式、测试服务器及其他服务器。id 不存在时仅返回 id 和 found:false。

    GET /results/{id} 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    idstring / path是numeric Speedtest result id, the number in a speedtest.net/result/<id> share link
    响应字段
    字段类型说明
    idstring
    foundboolean
    urlstring
    image_urlstring
    tested_atstring
    download_mbpsnumber
    upload_mbpsnumber
    ping_msinteger
    idle_latency_msinteger
    download_latency_msinteger
    upload_latency_msinteger
    ispstring
    providernull
    connection_typestring
    connection_modestring
    serverobject
    server.namestring
    server.sponsorstring
    server.sponsor_urlnull
    additional_serversobject[]
    additional_servers[].idstring
    additional_servers[].namestring
    additional_servers[].sponsorstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • 探索 V2 GET /explore-v2

    一次调用获取国家概览,按国家精确匹配:返回 q 解析到的国家、该国最新的固定宽带和移动网络中位数/平均值排名及速度、该国的城市排名、13 个月历史数据,以及该国境内的 Speedtest 测试服务器(最多 100 个,按城市和 id 排序)。“UK”指英国,绝不会匹配乌克兰。q 无精确匹配时返回 400 及候选国家。

    GET /explore-v2 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    qstring / query否country matched exactly, case and accents ignored: ISO-2 code (GB), ISO-3 code (GBR), name (United Kingdom), slug (united-kingdom) or a common alias (UK, USA, UAE, Holland)
    includestring / query否extra legs to add: "all" (history and servers), "history", "servers" or "none"; history is null and servers empty when left out 可选值: all, history, servers, none.
    响应字段
    字段类型说明
    querystring
    resolvedobject
    resolved.inputstring
    resolved.idstring
    resolved.namestring
    resolved.typestring
    resolved.country_codestring
    resolved.iso3string
    resolved.matched_bystring
    countryobject
    country.countrystring
    country.country_codestring
    country.slugstring
    country.fixedobject
    country.fixed.medianobject
    country.fixed.median.rankinteger
    country.fixed.median.download_mbpsnumber
    country.fixed.median.upload_mbpsnumber
    country.fixed.median.latency_msinteger
    country.fixed.meanobject
    country.fixed.mean.rankinteger
    country.fixed.mean.download_mbpsnumber
    country.fixed.mean.upload_mbpsnumber
    country.fixed.mean.latency_msinteger
    country.mobileobject
    country.mobile.medianobject
    country.mobile.median.rankinteger
    country.mobile.median.download_mbpsnumber
    country.mobile.median.upload_mbpsnumber
    country.mobile.median.latency_msinteger
    country.mobile.meanobject
    country.mobile.mean.rankinteger
    country.mobile.mean.download_mbpsnumber
    country.mobile.mean.upload_mbpsnumber
    country.mobile.mean.latency_msinteger
    citiesobject
    cities.fixedobject[]
    cities.fixed[].rankinteger
    cities.fixed[].rank_changeinteger
    cities.fixed[].citystring
    cities.fixed[].countrystring
    cities.fixed[].country_codestring
    cities.fixed[].country_slugstring
    cities.fixed[].download_mbpsnumber
    cities.fixed[].upload_mbpsnumber
    cities.fixed[].latency_msinteger
    cities.fixed[].jitter_msinteger
    cities.fixed[].monthstring
    cities.mobileobject[]
    cities.mobile[].rankinteger
    cities.mobile[].rank_changeinteger
    cities.mobile[].citystring
    cities.mobile[].countrystring
    cities.mobile[].country_codestring
    cities.mobile[].country_slugstring
    cities.mobile[].download_mbpsnumber
    cities.mobile[].upload_mbpsnumber
    cities.mobile[].latency_msinteger
    cities.mobile[].jitter_msinteger
    cities.mobile[].monthstring
    historyobject
    history.fixedobject
    history.fixed.medianobject
    history.fixed.median.latestobject
    history.fixed.median.latest.rankinteger
    history.fixed.median.latest.previous_rankinteger
    history.fixed.median.latest.rank_changeinteger
    history.fixed.median.latest.download_mbpsnumber
    history.fixed.median.latest.upload_mbpsnumber
    history.fixed.median.latest.latency_msinteger
    history.fixed.median.historyobject[]
    history.fixed.median.history[].monthstring
    history.fixed.median.history[].rankinteger
    history.fixed.median.history[].download_mbpsnumber
    history.fixed.median.history[].upload_mbpsnumber
    history.fixed.median.history[].latency_msinteger
    history.fixed.median.history[].jitter_msinteger
    history.fixed.meanobject
    history.fixed.mean.latestobject
    history.fixed.mean.latest.rankinteger
    history.fixed.mean.latest.previous_rankinteger
    history.fixed.mean.latest.rank_changeinteger
    history.fixed.mean.latest.download_mbpsnumber
    history.fixed.mean.latest.upload_mbpsnumber
    history.fixed.mean.latest.latency_msinteger
    history.fixed.mean.historyobject[]
    history.fixed.mean.history[].monthstring
    history.fixed.mean.history[].rankinteger
    history.fixed.mean.history[].download_mbpsnumber
    history.fixed.mean.history[].upload_mbpsnumber
    history.fixed.mean.history[].latency_msinteger
    history.fixed.mean.history[].jitter_msinteger
    history.mobileobject
    history.mobile.medianobject
    history.mobile.median.latestobject
    history.mobile.median.latest.rankinteger
    history.mobile.median.latest.previous_rankinteger
    history.mobile.median.latest.rank_changeinteger
    history.mobile.median.latest.download_mbpsnumber
    history.mobile.median.latest.upload_mbpsnumber
    history.mobile.median.latest.latency_msinteger
    history.mobile.median.historyobject[]
    history.mobile.median.history[].monthstring
    history.mobile.median.history[].rankinteger
    history.mobile.median.history[].download_mbpsnumber
    history.mobile.median.history[].upload_mbpsnumber
    history.mobile.median.history[].latency_msinteger
    history.mobile.median.history[].jitter_msinteger
    history.mobile.meanobject
    history.mobile.mean.latestobject
    history.mobile.mean.latest.rankinteger
    history.mobile.mean.latest.previous_rankinteger
    history.mobile.mean.latest.rank_changeinteger
    history.mobile.mean.latest.download_mbpsnumber
    history.mobile.mean.latest.upload_mbpsnumber
    history.mobile.mean.latest.latency_msinteger
    history.mobile.mean.historyobject[]
    history.mobile.mean.history[].monthstring
    history.mobile.mean.history[].rankinteger
    history.mobile.mean.history[].download_mbpsnumber
    history.mobile.mean.history[].upload_mbpsnumber
    history.mobile.mean.history[].latency_msinteger
    history.mobile.mean.history[].jitter_msinteger
    serversobject[]
    servers[].idstring
    servers[].namestring
    servers[].sponsorstring
    servers[].countrystring
    servers[].country_codestring
    servers[].hoststring
    servers[].httpsboolean
    servers[].latnumber
    servers[].lonnumber
    servers[].isp_idstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • 国家 GET /countries/{slug}

    单个国家的 Speedtest Global Index 报告:最新的固定宽带和移动网络中位数及平均值排名、上期排名、排名变化、下载速度、上传速度和延迟,另含按日期排序的 13 个月月度历史(月份、排名、速度、延迟、抖动)。该国未上榜的月份不会出现在历史中。

    GET /countries/{slug} 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    slugstring / path是country slug as given by /countries or /rankings, e.g. "germany", "united-states"
    响应字段
    字段类型说明
    countrystring
    slugstring
    monthstring
    fixedobject
    fixed.medianobject
    fixed.median.latestobject
    fixed.median.latest.rankinteger
    fixed.median.latest.previous_rankinteger
    fixed.median.latest.rank_changeinteger
    fixed.median.latest.download_mbpsnumber
    fixed.median.latest.upload_mbpsnumber
    fixed.median.latest.latency_msinteger
    fixed.median.historyobject[]
    fixed.median.history[].monthstring
    fixed.median.history[].rankinteger
    fixed.median.history[].download_mbpsnumber
    fixed.median.history[].upload_mbpsnumber
    fixed.median.history[].latency_msinteger
    fixed.median.history[].jitter_msinteger
    fixed.meanobject
    fixed.mean.latestobject
    fixed.mean.latest.rankinteger
    fixed.mean.latest.previous_rankinteger
    fixed.mean.latest.rank_changeinteger
    fixed.mean.latest.download_mbpsnumber
    fixed.mean.latest.upload_mbpsnumber
    fixed.mean.latest.latency_msinteger
    fixed.mean.historyobject[]
    fixed.mean.history[].monthstring
    fixed.mean.history[].rankinteger
    fixed.mean.history[].download_mbpsnumber
    fixed.mean.history[].upload_mbpsnumber
    fixed.mean.history[].latency_msinteger
    fixed.mean.history[].jitter_msinteger
    mobileobject
    mobile.medianobject
    mobile.median.latestobject
    mobile.median.latest.rankinteger
    mobile.median.latest.previous_rankinteger
    mobile.median.latest.rank_changeinteger
    mobile.median.latest.download_mbpsnumber
    mobile.median.latest.upload_mbpsnumber
    mobile.median.latest.latency_msinteger
    mobile.median.historyobject[]
    mobile.median.history[].monthstring
    mobile.median.history[].rankinteger
    mobile.median.history[].download_mbpsnumber
    mobile.median.history[].upload_mbpsnumber
    mobile.median.history[].latency_msinteger
    mobile.median.history[].jitter_msinteger
    mobile.meanobject
    mobile.mean.latestobject
    mobile.mean.latest.rankinteger
    mobile.mean.latest.previous_rankinteger
    mobile.mean.latest.rank_changeinteger
    mobile.mean.latest.download_mbpsnumber
    mobile.mean.latest.upload_mbpsnumber
    mobile.mean.latest.latency_msinteger
    mobile.mean.historyobject[]
    mobile.mean.history[].monthstring
    mobile.mean.history[].rankinteger
    mobile.mean.history[].download_mbpsnumber
    mobile.mean.history[].upload_mbpsnumber
    mobile.mean.history[].latency_msinteger
    mobile.mean.history[].jitter_msinteger
    fetched_atstring
    ageinteger
  • 全球速度 GET /global

    最新 Global Index 月份的全球固定宽带和移动网络速度中位数及平均值(下载、上传、延迟、抖动),各附按日期排序的 13 个月历史。

    GET /global 的参数和响应字段
    响应字段
    字段类型说明
    monthstring
    medianobject
    median.fixedobject
    median.fixed.latestobject
    median.fixed.latest.monthstring
    median.fixed.latest.download_mbpsnumber
    median.fixed.latest.upload_mbpsnumber
    median.fixed.latest.latency_msinteger
    median.fixed.latest.jitter_msinteger
    median.fixed.historyobject[]
    median.fixed.history[].monthstring
    median.fixed.history[].download_mbpsnumber
    median.fixed.history[].upload_mbpsnumber
    median.fixed.history[].latency_msinteger
    median.fixed.history[].jitter_msinteger
    median.mobileobject
    median.mobile.latestobject
    median.mobile.latest.monthstring
    median.mobile.latest.download_mbpsnumber
    median.mobile.latest.upload_mbpsnumber
    median.mobile.latest.latency_msinteger
    median.mobile.latest.jitter_msinteger
    median.mobile.historyobject[]
    median.mobile.history[].monthstring
    median.mobile.history[].download_mbpsinteger
    median.mobile.history[].upload_mbpsnumber
    median.mobile.history[].latency_msinteger
    median.mobile.history[].jitter_msinteger
    meanobject
    mean.fixedobject
    mean.fixed.latestobject
    mean.fixed.latest.monthstring
    mean.fixed.latest.download_mbpsnumber
    mean.fixed.latest.upload_mbpsnumber
    mean.fixed.latest.latency_msinteger
    mean.fixed.latest.jitter_msinteger
    mean.fixed.historyobject[]
    mean.fixed.history[].monthstring
    mean.fixed.history[].download_mbpsnumber
    mean.fixed.history[].upload_mbpsnumber
    mean.fixed.history[].latency_msinteger
    mean.fixed.history[].jitter_msinteger
    mean.mobileobject
    mean.mobile.latestobject
    mean.mobile.latest.monthstring
    mean.mobile.latest.download_mbpsnumber
    mean.mobile.latest.upload_mbpsnumber
    mean.mobile.latest.latency_msinteger
    mean.mobile.latest.jitter_msinteger
    mean.mobile.historyobject[]
    mean.mobile.history[].monthstring
    mean.mobile.history[].download_mbpsnumber
    mean.mobile.history[].upload_mbpsnumber
    mean.mobile.history[].latency_msinteger
    mean.mobile.history[].jitter_msinteger
    fetched_atstring
    ageinteger

将 Speedtest by Ookla 数据导出为 CSV

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

列表CSV 列
服务器GET /serversid, name, sponsor, country, country_code, host, https, lat, lon, isp_id
探索GET /exploreid, name, sponsor, country, country_code, host, https, lat, lon, isp_id
排名GET /rankingsrank, rank_change, country, country_code, slug, download_mbps, upload_mbps, latency_ms, jitter_ms, month
城市GET /citiesrank, rank_change, city, country, country_code, country_slug, download_mbps, upload_mbps, latency_ms, jitter_ms, month
国家GET /countriescountry, country_code, slug, fixed, mobile
探索 V2GET /explore-v2id, name, sponsor, country, country_code, host, https, lat, lon, isp_id

嵌套的值(列表或对象)以 JSON 写入同一个单元格。 数据集和导出如何工作

Speedtest by Ookla API 常见问题

能获取什么数据、费用多少、如何调用。

Speedtest by Ookla 有官方 API 吗?

这个 Speedtest by Ookla API 不是官方 API。它是 maviapi 针对 speedtest.net 上的公开数据提供的独立托管 API,并非由 Speedtest by Ookla 开发、认可或支持。Speedtest by Ookla 是否提供自己的开发者 API,请向 Speedtest by Ookla 咨询。这个 API 用一个 maviapi 密钥即可调用,它的每个端点和返回的每个字段都在本页有文档说明。

Speedtest by Ookla API 可以获取哪些数据?

Speedtest by Ookla API 有 9 个端点。每个端点都返回 JSON,参数和字段见上方的文档:

  • GET /servers: 城市、国家或赞助商(网络)与搜索词匹配的 Speedtest 测试服务器,最多 100 个,按国家、城市和 id 排序:返回 id、城市名、赞助商、国家、主机、HTTPS 支持情况、坐标和 ISP id。
  • GET /explore: 一次调用获取国家概览:返回该国最新的固定宽带和移动网络中位数/平均值排名及速度、该国的城市排名(固定宽带和移动网络,按排名排序)、13 个月历史数据,以及该国境内的 Speedtest 测试服务器(最多 100 个,按城市和 id 排序)。
  • GET /rankings: Speedtest Global Index 最新月份的国家排名,按排名排序:包含每个国家的下载速度、上传速度、延迟、抖动、排名及环比排名变化。
  • GET /cities: Speedtest Global Index 最新月份的城市排名(中位数速度),按排名排序,包含每个城市的下载速度、上传速度、延迟、抖动和排名变化。
  • GET /countries: Speedtest Global Index 收录的所有国家,按字母顺序排列,附最新的固定宽带和移动网络中位数及平均值排名、下载速度、上传速度和延迟(该国在某类型中未上榜时为 null)。
  • GET /results/{id}: 按 id 获取单条分享的 Speedtest 测试结果:测试时间(UTC)、下载和上传速度(Mbps)、ping 以及空闲/下载/上传负载延迟(ms)、ISP、服务商、连接类型和模式、测试服务器及其他服务器。
  • GET /explore-v2: 一次调用获取国家概览,按国家精确匹配:返回 q 解析到的国家、该国最新的固定宽带和移动网络中位数/平均值排名及速度、该国的城市排名、13 个月历史数据,以及该国境内的 Speedtest 测试服务器(最多 100 个,按城市和 id 排序)。
  • GET /countries/{slug}: 单个国家的 Speedtest Global Index 报告:最新的固定宽带和移动网络中位数及平均值排名、上期排名、排名变化、下载速度、上传速度和延迟,另含按日期排序的 13 个月月度历史(月份、排名、速度、延迟、抖动)。
  • GET /global: 最新 Global Index 月份的全球固定宽带和移动网络速度中位数及平均值(下载、上传、延迟、抖动),各附按日期排序的 13 个月历史。

Speedtest by Ookla API 的价格是多少?

调用用您 maviapi 套餐中的积分支付,只有成功的调用才会计费。此 API 的每个端点每次调用消耗 5 个积分。在 Hobby 套餐下(每月 $49,含 250,000 个积分),1,000 次调用约 $0.98。失败的调用不收费。Free 套餐每月提供 1,000 个积分,无需信用卡。超出部分请查看套餐和积分价格。

如何调用 Speedtest by Ookla API?

向端点发送 HTTPS 请求,并在 Authorization 请求头中带上您的 API 密钥。例如 GET /servers:

cURL
curl 'https://api.maviapi.com/v1/sites/speedtest/servers' \
  -H "Authorization: Bearer $MAVI_KEY"

在您的 API 密钥页面创建密钥,或者先在上方的控制台中用免费测试密钥试用任意端点。

以 JSON 获取 Speedtest by Ookla 数据有哪些方式?

以 JSON 获取 Speedtest by Ookla 数据的每种方式适合不同的需求:

  • 自己写爬虫: 完全由自己掌控,不依赖任何服务商,但解析、被拦截的请求以及 speedtest.net 每次改版后的修复都要自己负责。更适合从很少变化的页面一次性获取数据。
  • Apify: 一个 Actor 市场,Actor 由您自己运行,输入、输出和价格由各个 Actor 决定。当已有 Actor 能返回您需要的数据,或者您想托管自己的代码时更合适。参见maviapi 与 Apify 的对比。
  • RapidAPI: 一个汇集了众多提供方 API 的平台,用一个 RapidAPI 密钥调用,每个 API 单独定价。当您已经在使用该平台,并且其中某个 API 能满足需求时更合适。来源:RapidAPI docs。
  • maviapi: 本页的 Speedtest by Ookla API:9 个带文档的端点、公开的响应结构,以及一个可用于整个目录的密钥。当这些数据是您产品的一部分,而您不想维护爬虫时更合适。

speedtest.net 改版后会怎样?

您的代码不需要改动。speedtest.net 修改页面时,maviapi 会让 Speedtest by Ookla API 保持可用,您继续调用同样的端点,并得到本页文档所述结构的 JSON。它当前的运行状况见状态页,变更记录见它的更新日志。

更新会破坏我的 Speedtest by Ookla API 集成吗?

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

  • Quotes to Scrape API

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

  • Fazilet Takvimi API

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

  • Tripadvisor API

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