最后更新
更新日志/servers5 credits per call服务器
城市、国家或赞助商(网络)与搜索词匹配的 Speedtest 测试服务器,最多 100 个,按国家、城市和 id 排序:返回 id、城市名、赞助商、国家、主机、HTTPS 支持情况、坐标和 ISP id。
Authorization: Bearer <key> on every request.Parameters
city, country or sponsor name, e.g. "berlin", "Vodafone"
Response fields
searche.g."berlin"counte.g.24servers
ide.g."71810"namee.g."Camaçari"sponsore.g."Cyberlink"countrye.g."Brazil"country_codee.g."BR"hoste.g."speedtest-cam1.cyberlink.net.br:8080"httpse.g.truelate.g.-12.7002lone.g.-38.3253isp_ide.g."185806"pagination
counte.g.24has_moree.g.falsenext_cursorfetched_ate.g."2026-11-27T10:09:02.668Z"agee.g.0curl "https://api.maviapi.com/v1/sites/speedtest/servers?search=berlin" \-H "Authorization: Bearer $MAVI_KEY"
{
"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.
https://mcp.maviapi.com/mcpOr 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 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/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 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 search string / query 否 city, country or sponsor name, e.g. "berlin", "Vodafone" 响应字段 字段 类型 说明 search string count integer servers object[] servers[].id string servers[].name string servers[].sponsor string servers[].country string servers[].country_code string servers[].host string servers[].https boolean servers[].lat number servers[].lon number servers[].isp_id string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 探索
GET /explore一次调用获取国家概览:返回该国最新的固定宽带和移动网络中位数/平均值排名及速度、该国的城市排名(固定宽带和移动网络,按排名排序)、13 个月历史数据,以及该国境内的 Speedtest 测试服务器(最多 100 个,按城市和 id 排序)。没有国家匹配 q 时 found 为 false。
GET /explore 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 q string / query 否 country name (exact, else the first country whose name contains it), ISO-2 code or slug include string / 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. 响应字段 字段 类型 说明 query string found boolean country object country.country string country.country_code string country.slug string country.fixed object country.fixed.median object country.fixed.median.rank integer country.fixed.median.download_mbps number country.fixed.median.upload_mbps number country.fixed.median.latency_ms integer country.fixed.mean object country.fixed.mean.rank integer country.fixed.mean.download_mbps number country.fixed.mean.upload_mbps number country.fixed.mean.latency_ms integer country.mobile object country.mobile.median object country.mobile.median.rank integer country.mobile.median.download_mbps number country.mobile.median.upload_mbps number country.mobile.median.latency_ms integer country.mobile.mean object country.mobile.mean.rank integer country.mobile.mean.download_mbps number country.mobile.mean.upload_mbps number country.mobile.mean.latency_ms integer cities object cities.fixed object[] cities.fixed[].rank integer cities.fixed[].rank_change integer cities.fixed[].city string cities.fixed[].country string cities.fixed[].country_code string cities.fixed[].country_slug string cities.fixed[].download_mbps number cities.fixed[].upload_mbps number cities.fixed[].latency_ms integer cities.fixed[].jitter_ms integer cities.fixed[].month string cities.mobile object[] cities.mobile[].rank integer cities.mobile[].rank_change integer cities.mobile[].city string cities.mobile[].country string cities.mobile[].country_code string cities.mobile[].country_slug string cities.mobile[].download_mbps number cities.mobile[].upload_mbps number cities.mobile[].latency_ms integer cities.mobile[].jitter_ms integer cities.mobile[].month string history object history.fixed object history.fixed.median object history.fixed.median.latest object history.fixed.median.latest.rank integer history.fixed.median.latest.previous_rank integer history.fixed.median.latest.rank_change integer history.fixed.median.latest.download_mbps number history.fixed.median.latest.upload_mbps number history.fixed.median.latest.latency_ms integer history.fixed.median.history object[] history.fixed.median.history[].month string history.fixed.median.history[].rank integer history.fixed.median.history[].download_mbps number history.fixed.median.history[].upload_mbps number history.fixed.median.history[].latency_ms integer history.fixed.median.history[].jitter_ms integer history.fixed.mean object history.fixed.mean.latest object history.fixed.mean.latest.rank integer history.fixed.mean.latest.previous_rank integer history.fixed.mean.latest.rank_change integer history.fixed.mean.latest.download_mbps number history.fixed.mean.latest.upload_mbps number history.fixed.mean.latest.latency_ms integer history.fixed.mean.history object[] history.fixed.mean.history[].month string history.fixed.mean.history[].rank integer history.fixed.mean.history[].download_mbps number history.fixed.mean.history[].upload_mbps number history.fixed.mean.history[].latency_ms integer history.fixed.mean.history[].jitter_ms integer history.mobile object history.mobile.median object history.mobile.median.latest object history.mobile.median.latest.rank integer history.mobile.median.latest.previous_rank integer history.mobile.median.latest.rank_change integer history.mobile.median.latest.download_mbps number history.mobile.median.latest.upload_mbps number history.mobile.median.latest.latency_ms integer history.mobile.median.history object[] history.mobile.median.history[].month string history.mobile.median.history[].rank integer history.mobile.median.history[].download_mbps number history.mobile.median.history[].upload_mbps number history.mobile.median.history[].latency_ms integer history.mobile.median.history[].jitter_ms integer history.mobile.mean object history.mobile.mean.latest object history.mobile.mean.latest.rank integer history.mobile.mean.latest.previous_rank integer history.mobile.mean.latest.rank_change integer history.mobile.mean.latest.download_mbps number history.mobile.mean.latest.upload_mbps number history.mobile.mean.latest.latency_ms integer history.mobile.mean.history object[] history.mobile.mean.history[].month string history.mobile.mean.history[].rank integer history.mobile.mean.history[].download_mbps number history.mobile.mean.history[].upload_mbps number history.mobile.mean.history[].latency_ms integer history.mobile.mean.history[].jitter_ms integer servers object[] servers[].id string servers[].name string servers[].sponsor string servers[].country string servers[].country_code string servers[].host string servers[].https boolean servers[].lat number servers[].lon number servers[].isp_id string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 排名
GET /rankingsSpeedtest Global Index 最新月份的国家排名,按排名排序:包含每个国家的下载速度、上传速度、延迟、抖动、排名及环比排名变化。
GET /rankings 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 type string / query 否 connection type, "fixed" (broadband) or "mobile" 可选值: fixed, mobile. metric string / query 否 statistic the ranking is based on, "median" or "mean" 可选值: median, mean. q string / query 否 optional filter by country name (substring, case and accents ignored), ISO-2 code or slug 响应字段 字段 类型 说明 type string metric string month string count integer countries object[] countries[].rank integer countries[].rank_change integer countries[].country string countries[].country_code string countries[].slug string countries[].download_mbps number countries[].upload_mbps integer countries[].latency_ms integer countries[].jitter_ms integer countries[].month string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 城市
GET /citiesSpeedtest Global Index 最新月份的城市排名(中位数速度),按排名排序,包含每个城市的下载速度、上传速度、延迟、抖动和排名变化。
GET /cities 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 type string / query 否 connection type, "fixed" (broadband) or "mobile" 可选值: fixed, mobile. q string / query 否 optional filter by city name (substring, case and accents ignored), or by country name, ISO-2 code or slug 响应字段 字段 类型 说明 type string metric string month string count integer cities object[] cities[].rank integer cities[].rank_change integer cities[].city string cities[].country string cities[].country_code string cities[].country_slug string cities[].download_mbps number cities[].upload_mbps number cities[].latency_ms integer cities[].jitter_ms integer cities[].month string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 国家
GET /countriesSpeedtest Global Index 收录的所有国家,按字母顺序排列,附最新的固定宽带和移动网络中位数及平均值排名、下载速度、上传速度和延迟(该国在某类型中未上榜时为 null)。将 slug 用于 /countries/{slug}。
GET /countries 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 q string / query 否 optional filter by country name (substring, case and accents ignored), ISO-2 code or slug 响应字段 字段 类型 说明 count integer countries object[] countries[].country string countries[].country_code string countries[].slug string countries[].fixed object countries[].fixed.median object countries[].fixed.median.rank integer countries[].fixed.median.download_mbps number countries[].fixed.median.upload_mbps number countries[].fixed.median.latency_ms integer countries[].fixed.mean object countries[].fixed.mean.rank integer countries[].fixed.mean.download_mbps number countries[].fixed.mean.upload_mbps number countries[].fixed.mean.latency_ms integer countries[].mobile object countries[].mobile.median object countries[].mobile.median.rank integer countries[].mobile.median.download_mbps number countries[].mobile.median.upload_mbps number countries[].mobile.median.latency_ms integer countries[].mobile.mean object countries[].mobile.mean.rank integer countries[].mobile.mean.download_mbps number countries[].mobile.mean.upload_mbps number countries[].mobile.mean.latency_ms integer pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 测试结果
GET /results/{id}按 id 获取单条分享的 Speedtest 测试结果:测试时间(UTC)、下载和上传速度(Mbps)、ping 以及空闲/下载/上传负载延迟(ms)、ISP、服务商、连接类型和模式、测试服务器及其他服务器。id 不存在时仅返回 id 和 found:false。
GET /results/{id} 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 id string / path 是 numeric Speedtest result id, the number in a speedtest.net/result/<id> share link 响应字段 字段 类型 说明 id string found boolean url string image_url string tested_at string download_mbps number upload_mbps number ping_ms integer idle_latency_ms integer download_latency_ms integer upload_latency_ms integer isp string provider null connection_type string connection_mode string server object server.name string server.sponsor string server.sponsor_url null additional_servers object[] additional_servers[].id string additional_servers[].name string additional_servers[].sponsor string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 探索 V2
GET /explore-v2一次调用获取国家概览,按国家精确匹配:返回 q 解析到的国家、该国最新的固定宽带和移动网络中位数/平均值排名及速度、该国的城市排名、13 个月历史数据,以及该国境内的 Speedtest 测试服务器(最多 100 个,按城市和 id 排序)。“UK”指英国,绝不会匹配乌克兰。q 无精确匹配时返回 400 及候选国家。
GET /explore-v2 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 q string / 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) include string / 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. 响应字段 字段 类型 说明 query string resolved object resolved.input string resolved.id string resolved.name string resolved.type string resolved.country_code string resolved.iso3 string resolved.matched_by string country object country.country string country.country_code string country.slug string country.fixed object country.fixed.median object country.fixed.median.rank integer country.fixed.median.download_mbps number country.fixed.median.upload_mbps number country.fixed.median.latency_ms integer country.fixed.mean object country.fixed.mean.rank integer country.fixed.mean.download_mbps number country.fixed.mean.upload_mbps number country.fixed.mean.latency_ms integer country.mobile object country.mobile.median object country.mobile.median.rank integer country.mobile.median.download_mbps number country.mobile.median.upload_mbps number country.mobile.median.latency_ms integer country.mobile.mean object country.mobile.mean.rank integer country.mobile.mean.download_mbps number country.mobile.mean.upload_mbps number country.mobile.mean.latency_ms integer cities object cities.fixed object[] cities.fixed[].rank integer cities.fixed[].rank_change integer cities.fixed[].city string cities.fixed[].country string cities.fixed[].country_code string cities.fixed[].country_slug string cities.fixed[].download_mbps number cities.fixed[].upload_mbps number cities.fixed[].latency_ms integer cities.fixed[].jitter_ms integer cities.fixed[].month string cities.mobile object[] cities.mobile[].rank integer cities.mobile[].rank_change integer cities.mobile[].city string cities.mobile[].country string cities.mobile[].country_code string cities.mobile[].country_slug string cities.mobile[].download_mbps number cities.mobile[].upload_mbps number cities.mobile[].latency_ms integer cities.mobile[].jitter_ms integer cities.mobile[].month string history object history.fixed object history.fixed.median object history.fixed.median.latest object history.fixed.median.latest.rank integer history.fixed.median.latest.previous_rank integer history.fixed.median.latest.rank_change integer history.fixed.median.latest.download_mbps number history.fixed.median.latest.upload_mbps number history.fixed.median.latest.latency_ms integer history.fixed.median.history object[] history.fixed.median.history[].month string history.fixed.median.history[].rank integer history.fixed.median.history[].download_mbps number history.fixed.median.history[].upload_mbps number history.fixed.median.history[].latency_ms integer history.fixed.median.history[].jitter_ms integer history.fixed.mean object history.fixed.mean.latest object history.fixed.mean.latest.rank integer history.fixed.mean.latest.previous_rank integer history.fixed.mean.latest.rank_change integer history.fixed.mean.latest.download_mbps number history.fixed.mean.latest.upload_mbps number history.fixed.mean.latest.latency_ms integer history.fixed.mean.history object[] history.fixed.mean.history[].month string history.fixed.mean.history[].rank integer history.fixed.mean.history[].download_mbps number history.fixed.mean.history[].upload_mbps number history.fixed.mean.history[].latency_ms integer history.fixed.mean.history[].jitter_ms integer history.mobile object history.mobile.median object history.mobile.median.latest object history.mobile.median.latest.rank integer history.mobile.median.latest.previous_rank integer history.mobile.median.latest.rank_change integer history.mobile.median.latest.download_mbps number history.mobile.median.latest.upload_mbps number history.mobile.median.latest.latency_ms integer history.mobile.median.history object[] history.mobile.median.history[].month string history.mobile.median.history[].rank integer history.mobile.median.history[].download_mbps number history.mobile.median.history[].upload_mbps number history.mobile.median.history[].latency_ms integer history.mobile.median.history[].jitter_ms integer history.mobile.mean object history.mobile.mean.latest object history.mobile.mean.latest.rank integer history.mobile.mean.latest.previous_rank integer history.mobile.mean.latest.rank_change integer history.mobile.mean.latest.download_mbps number history.mobile.mean.latest.upload_mbps number history.mobile.mean.latest.latency_ms integer history.mobile.mean.history object[] history.mobile.mean.history[].month string history.mobile.mean.history[].rank integer history.mobile.mean.history[].download_mbps number history.mobile.mean.history[].upload_mbps number history.mobile.mean.history[].latency_ms integer history.mobile.mean.history[].jitter_ms integer servers object[] servers[].id string servers[].name string servers[].sponsor string servers[].country string servers[].country_code string servers[].host string servers[].https boolean servers[].lat number servers[].lon number servers[].isp_id string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - 国家
GET /countries/{slug}单个国家的 Speedtest Global Index 报告:最新的固定宽带和移动网络中位数及平均值排名、上期排名、排名变化、下载速度、上传速度和延迟,另含按日期排序的 13 个月月度历史(月份、排名、速度、延迟、抖动)。该国未上榜的月份不会出现在历史中。
GET /countries/{slug} 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 slug string / path 是 country slug as given by /countries or /rankings, e.g. "germany", "united-states" 响应字段 字段 类型 说明 country string slug string month string fixed object fixed.median object fixed.median.latest object fixed.median.latest.rank integer fixed.median.latest.previous_rank integer fixed.median.latest.rank_change integer fixed.median.latest.download_mbps number fixed.median.latest.upload_mbps number fixed.median.latest.latency_ms integer fixed.median.history object[] fixed.median.history[].month string fixed.median.history[].rank integer fixed.median.history[].download_mbps number fixed.median.history[].upload_mbps number fixed.median.history[].latency_ms integer fixed.median.history[].jitter_ms integer fixed.mean object fixed.mean.latest object fixed.mean.latest.rank integer fixed.mean.latest.previous_rank integer fixed.mean.latest.rank_change integer fixed.mean.latest.download_mbps number fixed.mean.latest.upload_mbps number fixed.mean.latest.latency_ms integer fixed.mean.history object[] fixed.mean.history[].month string fixed.mean.history[].rank integer fixed.mean.history[].download_mbps number fixed.mean.history[].upload_mbps number fixed.mean.history[].latency_ms integer fixed.mean.history[].jitter_ms integer mobile object mobile.median object mobile.median.latest object mobile.median.latest.rank integer mobile.median.latest.previous_rank integer mobile.median.latest.rank_change integer mobile.median.latest.download_mbps number mobile.median.latest.upload_mbps number mobile.median.latest.latency_ms integer mobile.median.history object[] mobile.median.history[].month string mobile.median.history[].rank integer mobile.median.history[].download_mbps number mobile.median.history[].upload_mbps number mobile.median.history[].latency_ms integer mobile.median.history[].jitter_ms integer mobile.mean object mobile.mean.latest object mobile.mean.latest.rank integer mobile.mean.latest.previous_rank integer mobile.mean.latest.rank_change integer mobile.mean.latest.download_mbps number mobile.mean.latest.upload_mbps number mobile.mean.latest.latency_ms integer mobile.mean.history object[] mobile.mean.history[].month string mobile.mean.history[].rank integer mobile.mean.history[].download_mbps number mobile.mean.history[].upload_mbps number mobile.mean.history[].latency_ms integer mobile.mean.history[].jitter_ms integer fetched_at string age integer - 全球速度
GET /global最新 Global Index 月份的全球固定宽带和移动网络速度中位数及平均值(下载、上传、延迟、抖动),各附按日期排序的 13 个月历史。
GET /global 的参数和响应字段
响应字段 字段 类型 说明 month string median object median.fixed object median.fixed.latest object median.fixed.latest.month string median.fixed.latest.download_mbps number median.fixed.latest.upload_mbps number median.fixed.latest.latency_ms integer median.fixed.latest.jitter_ms integer median.fixed.history object[] median.fixed.history[].month string median.fixed.history[].download_mbps number median.fixed.history[].upload_mbps number median.fixed.history[].latency_ms integer median.fixed.history[].jitter_ms integer median.mobile object median.mobile.latest object median.mobile.latest.month string median.mobile.latest.download_mbps number median.mobile.latest.upload_mbps number median.mobile.latest.latency_ms integer median.mobile.latest.jitter_ms integer median.mobile.history object[] median.mobile.history[].month string median.mobile.history[].download_mbps integer median.mobile.history[].upload_mbps number median.mobile.history[].latency_ms integer median.mobile.history[].jitter_ms integer mean object mean.fixed object mean.fixed.latest object mean.fixed.latest.month string mean.fixed.latest.download_mbps number mean.fixed.latest.upload_mbps number mean.fixed.latest.latency_ms integer mean.fixed.latest.jitter_ms integer mean.fixed.history object[] mean.fixed.history[].month string mean.fixed.history[].download_mbps number mean.fixed.history[].upload_mbps number mean.fixed.history[].latency_ms integer mean.fixed.history[].jitter_ms integer mean.mobile object mean.mobile.latest object mean.mobile.latest.month string mean.mobile.latest.download_mbps number mean.mobile.latest.upload_mbps number mean.mobile.latest.latency_ms integer mean.mobile.latest.jitter_ms integer mean.mobile.history object[] mean.mobile.history[].month string mean.mobile.history[].download_mbps number mean.mobile.history[].upload_mbps number mean.mobile.history[].latency_ms integer mean.mobile.history[].jitter_ms integer fetched_at string age integer
将 Speedtest by Ookla 数据导出为 CSV
下面的每个列表都可以下载为 CSV 文件,每条记录一行。用上方控制台下面的 "Get all the data, no code" 卡片把列表收集到数据集中。数据集会逐页读取列表,之后可下载为 CSV、JSON 或 JSONL。
| 列表 | CSV 列 |
|---|---|
服务器GET /servers | id, name, sponsor, country, country_code, host, https, lat, lon, isp_id |
探索GET /explore | id, name, sponsor, country, country_code, host, https, lat, lon, isp_id |
排名GET /rankings | rank, rank_change, country, country_code, slug, download_mbps, upload_mbps, latency_ms, jitter_ms, month |
城市GET /cities | rank, rank_change, city, country, country_code, country_slug, download_mbps, upload_mbps, latency_ms, jitter_ms, month |
国家GET /countries | country, country_code, slug, fixed, mobile |
探索 V2GET /explore-v2 | id, 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 '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 by Ookla API 集成吗?
不会。您正在使用的端点,其结构永远不会改变:新的字段、可选参数和端点只会加在旁边,会破坏调用的变更则作为新端点发布。请忽略您不认识的响应字段,新内容请关注更新日志。
相关 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 解析地名,再通过…