关于API:
此API将分析您的网页。它将为您提供网页速度和不同检查关键点的见解。
只需传递您的URL,API将提供速度性能列表。同时,它还会给出改善当前速度和SEO友好的建议。
此API非常适合希望检查其不同域名和子域名不同速度的用户。能够识别速度问题并知道如何解决它们。
提高您页面的速度,没有用户希望长时间等待页面加载,因此使用此API采取行动并开始认识到您可以做得更好的地方。
除了每月的API调用限制之外,没有其他限制。
传递要分析的URL并接收关于其速度性能的详细报告
分析 - 端点功能
| 对象 | 描述 |
|---|---|
url |
[必需] The URL to lookup. |
{"redirects":{"id":"redirects","title":"Avoid multiple page redirects","description":"Redirects introduce additional delays before the page can be loaded. [Learn how to avoid page redirects](https:\/\/developer.chrome.com\/docs\/lighthouse\/performance\/redirects\/).","score":1,"scoreDisplayMode":"numeric","details":{"type":"opportunity","headings":[],"overallSavingsMs":0,"items":[]},"numericValue":0,"numericUnit":"millisecond"},"bootup-time":{"id":"bootup-time","title":"Reduce JavaScript execution time","description":"Consider reducing the time spent parsing, compiling, and executing JS. You may find delivering smaller JS payloads helps with this. [Learn how to reduce Javascript execution time](https:\/\/developer.chrome.com\/docs\/lighthouse\/performance\/bootup-time\/).","score":0.71,"scoreDisplayMode":"numeric","displayValue":"2.3\u00a0s","details":{"summary":{"wastedMs":2266.8879999999776},"items":[{"total":1799.0039999999779,"scriptParseCompile":127.14,"scripting":1535.9699999999775,"url":"https:\/\/www.gstatic.com\/recaptcha\/releases\/vm_YDiq1BiI3a8zfbIPZjtF2\/recaptcha__en.js"},{"scripting":16.251000000000005,"scriptParseCompile":3.8120000000000003,"url":"https:\/\/sheetsformarketers.com\/","total":195.12},{"total":121.04800000000051,"scriptParseCompile":0,"scripting":3.471,"url":"Unattributable"},{"scriptParseCompile":3.402,"total":119.10199999999999,"scripting":99.97699999999999,"url":"https:\/\/www.google.com\/recaptcha\/api2\/anchor?ar=1&k=6LdYsmsUAAAAAPXVTt-ovRsPIJ_IVhvYBBhGvRV6&co=aHR0cHM6Ly9zaGVldHNmb3JtYXJrZXRlcnMuY29tOjQ0Mw..&hl=en&type=image&v=vm_YDiq1BiI3a8zfbIPZjtF2&theme=light&size=invisible&cb=xe09611okztf"},{"total":109.85100000000003,"scriptParseCompile":2.59,"url":"https:\/\/sheetsformarketers.com\/wp-content\/cache\/minify\/818c0.js","scripting":62.01600000000002},{"url":"https:\/\/eocampaign1.com\/form\/6dac87d4-72bc-11ec-96e5-06b4694bee2a.js","scriptParseCompile":11.311,"scripting":62.021000000000015,"total":104.23200000000003},{"total":103.515,"scriptParseCompile":3.164,"scripting":75.52399999999999,"url":"https:\/\/www.google.com\/recaptcha\/api2\/anchor?ar=1&k=6LdYsmsUAAAAAPXVTt-ovRsPIJ_IVhvYBBhGvRV6&co=aHR0cHM6Ly9zaGVldHNmb3JtYXJrZXRlcnMuY29tOjQ0Mw..&hl=en&type=image&v=vm_YDiq1BiI3a8zfbIPZjtF2&theme=light&size=invisible&cb=ld6pjrnp7iyf"},{"total":102.88900000000004,"scriptParseCompile":2.7460000000000004,"url":"https:\/\/www.google.com\/recaptcha\/api2\/anchor?ar=1&k=6Leuo8wZAAAAAI6qa0Ivsum1Ten4Spq4k3sxc0-Y&co=aHR0cHM6Ly9zaGVldHNmb3JtYXJrZXRlcnMuY29tOjQ0Mw..&hl=en&v=vm_YDiq1BiI3a8zfbIPZjtF2&size=invisible&cb=1nadyyjsys6a","scripting":79.74800000000005},{"scriptParseCompile":4.175,"url":"https:\/\/www.googletagmanager.com\/gtag\/js?id=G-TF14GSSVXK","total":85.43399999999997,"scripting":79.85099999999998},{"scriptParseCompile":3.228,"url":"https:\/\/www.google.com\/recaptcha\/api2\/bframe?hl=en&v=vm_YDiq1BiI3a8zfbIPZjtF2&k=6LdYsmsUAAAAAPXVTt-ovRsPIJ_IVhvYBBhGvRV6","total":73.75199999999998,"scripting":29.64399999999999},{"scriptParseCompile":4.301,"url":"https:\/\/www.googletagmanager.com\/gtag\/js?id=G-VGLDXTHD1Q&l=dataLayer&cx=c","total":61.38100000000004,"scripting":56.54600000000004}],"type":"table","headings":[{"valueType":"url","key":"url","label":"URL"},{"granularity":1,"key":"total","valueType":"ms","label":"Total CPU Time"},{"valueType":"ms","granularity":1,"label":"Script Evaluation","key":"scripting"},{"key":"scriptParseCompile","granularity":1,"valueType":"ms","label":"Script Parse"}],"sortedBy":["total"]},"numericValue":2266.8879999999776,"numericUnit":"millisecond"},"uses-long-cache-ttl":{"id":"uses-long-cache-ttl","title":"Uses efficient cache policy on static assets","description":"A long cache lifetime can speed up repeat visits to your page. [Learn more about efficient cache policies](https:\/\/developer.chrome.com\/docs\/lighthouse\/performance\/uses-long-cache-ttl\/).","score":0.95,"scoreDisplayMode":"numeric","displayValue":"11 resources found","details":{"skipSumming":["cacheLifetimeMs"],"headings":[{"key":"url","valueType":"url","label":"URL"},{"valueType":"ms","label":"Cache TTL","displayUnit":"duration","key":"cacheLifetimeMs"},{"valueType":"bytes","label":"Transfer Size","key":"totalBytes","displayUnit":"kb","granularity":1}],"sortedBy":["totalBytes"],"type":"table","items":[{"totalBytes":21503,"cacheHitProbability":0.25,"cacheLifetimeMs":7200000,"url":"https:\/\/www.google-analytics.com\/analytics.js","debugData":{"max-age":7200,"type":"debugdata","public":true},"wastedBytes":16127.25},{"cacheLifetimeMs":604800000,"url":"https:\/\/static.getclicky.com\/js","wastedBytes":584.6999999999998,"cacheHitProbability":0.9,"totalBytes":5847,"debugData":{"max-age":604800,"type":"debugdata"}},{"cacheLifetimeMs":604800000,"url":"https:\/\/www.gstatic.com\/recaptcha\/api2\/logo_48.png","cacheHitProbability":0.9,"totalBytes":2985,"debugData":{"public":true,"type":"debugdata","max-age":604800},"wastedBytes":298.49999999999994},{"totalBytes":2985,"cacheHitProbability":0.9,"wastedBytes":298.49999999999994,"url":"https:\/\/www.gstatic.com\/recaptcha\/api2\/logo_48.png","debugData":{"public":true,"type":"debugdata","max-age":604800},"cacheLifetimeMs":604800000},{"cacheLifetimeMs":604800000,"totalBytes":2985,"debugData":{"max-age":604800,"type":"debugdata","public":true},"wastedBytes":298.49999999999994,"cacheHitProbability":0.9,"url":"https:\/\/www.gstatic.com\/recaptcha\/api2\/logo_48.png"},{"cacheHitProbability":0.9,"cacheLifetimeMs":604800000,"wastedBytes":141.99999999999997,"totalBytes":1420,"debugData":{"max-age":604800,"type":"debugdata","public":true},"url":"https:\/\/www.gstatic.com\/recaptcha\/api2\/info_2x.png"},{"wastedBytes":141.99999999999997,"url":"https:\/\/www.gstatic.com\/recaptcha\/api2\/info_2x.png","totalBytes":1420,"cacheLifetimeMs":604800000,"debugData":{"type":"debugdata","public":true,"max-age":604800},"cacheHitProbability":0.9},{"debugData":{"public":true,"max-age":604800,"type":"debugdata"},"wastedBytes":135.49999999999997,"url":"https:\/\/www.gstatic.com\/recaptcha\/api2\/refresh_2x.png","cacheHitProbability":0.9,"totalBytes":1355,"cacheLifetimeMs":604800000},{"wastedBytes":135.49999999999997,"cacheHitProbability":0.9,"url":"https:\/\/www.gstatic.com\/recaptcha\/api2\/refresh_2x.png","cacheLifetimeMs":604800000,"debugData":{"type":"debugdata","max-age":604800,"public":true},"totalBytes":1355},{"url":"https:\/\/www.gstatic.com\/recaptcha\/api2\/audio_2x.png","cacheLifetimeMs":604800000,"cacheHitProbability":0.9,"totalBytes":1285,"debugData":{"type":"debugdata","max-age":604800,"public":true},"wastedBytes":128.49999999999997},{"wastedBytes":128.49999999999997,"cacheLifetimeMs":604800000,"totalBytes":1285,"url":"https:\/\/www.gstatic.com\/recaptcha\/api2\/audio_2x.png","cacheHitProbability":0.9,"debugData":{"public":true,"max-age":604800,"type":"debugdata"}}],"summary":{"wastedBytes":18419.45}},"numericValue":18419.45,"numericUnit":"byte"},"screenshot-thumbnails":{"id":"screenshot-thumbnails","title":"Screenshot Thumbnails","description":"This is what the load of your site looked like.","score":null,"scoreDisplayMode":"informative","details":{"type":"filmstrip"}},"_note":"Response truncated for documentation purposes"}
curl --location --request GET 'https://zylalabs.com/api/479/page+speed+analyzer+api/361/analyze?url=https://google.com/' --header 'Authorization: Bearer YOUR_API_KEY'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
分析端点返回有关网页速度性能的综合报告,包括启动时间、重定向和改进机会等指标。每个指标都包含分数、描述和可行的建议
响应中的关键字段包括“重定向”“启动时间”和其他性能指标 每个字段包含一个标题 描述 分数和详细见解 如毫秒的潜在节省
响应数据以JSON格式结构化,每个性能指标表示为一个对象。每个对象包含如“id”、“标题”、“描述”和“细节”等属性,方便解析和分析
分析端点提供了有关各种性能方面的信息,包括页面加载时间 JavaScript 执行以及提升速度和 SEO 的机会 它突出了需要注意的特定领域
用户可以通过将不同的URL传递给分析端点来定制他们的请求。每个URL将产生一个基于特定网页性能指标和建议的定制报告
特定的数据字段如“分数”表示性能水平,而“描述”则为每个指标提供背景。“详情”提供更深入的见解,例如潜在的时间节省,帮助用户优先考虑改进
数据准确性通过持续更新和与行业标准的验证来保持。API利用已建立的性能指标和最佳实践,以确保为用户提供可靠的见解
典型的使用案例包括网站拥有者评估页面速度 开发人员优化网站性能 以及SEO专家识别改进领域 该API帮助用户通过解决速度问题来提升用户体验
服务级别:
100%
响应时间:
20,003ms
服务级别:
100%
响应时间:
10,604ms
服务级别:
100%
响应时间:
18,482ms
服务级别:
100%
响应时间:
5,864ms
服务级别:
100%
响应时间:
10,646ms
服务级别:
100%
响应时间:
20,003ms
服务级别:
100%
响应时间:
527ms
服务级别:
100%
响应时间:
12,041ms
服务级别:
100%
响应时间:
779ms
服务级别:
100%
响应时间:
5,878ms
服务级别:
100%
响应时间:
1,296ms
服务级别:
100%
响应时间:
1,812ms
服务级别:
100%
响应时间:
1,945ms
服务级别:
100%
响应时间:
737ms
服务级别:
100%
响应时间:
1,586ms
服务级别:
100%
响应时间:
58ms
服务级别:
100%
响应时间:
1,344ms
服务级别:
100%
响应时间:
0ms
服务级别:
100%
响应时间:
749ms
服务级别:
100%
响应时间:
3,168ms