Page Speed Analyzer API

Be able to run an extensive analysis of your page speed with this API. Ideal to know about your page performance.

About the API:

 

This API will run an analysis of your webpage. It will give you an insight into its speed and different key points to check.

 

What this API receives and what your API provides (input/output)?

 

Just pass your URL and the API will deliver a list of the speed performance. Also, it gives recommendations on how to improve the current speed and its SEO friendliness.

 

What are the most common uses cases of this API?

 

This API is ideal for those who want to check the different speeds of their different domains and subdomains. Be able to recognize speed problems and know how to solve them. 

Improve your page's speed, no user wants to wait too long for a page to load so, take action with this API and start recognizing what you could do better.  

 

Are there any limitations to your plans?

Besides API call limitations per month, there are no other limitations. 

API Documentation

Endpoints


Pass the URL to analyze and receive an extensive report about its speed performance. 



                                                                            
GET https://zylalabs.com/api/479/page+speed+analyzer+api/361/analyze
                                                                            
                                                                        

Analyze - Endpoint Features

Object Description
url [Required] The URL to lookup.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"offscreen-images":{"id":"offscreen-images","title":"Defer offscreen images","description":"Consider lazy-loading offscreen and hidden images after all critical resources have finished loading to lower time to interactive. [Learn more](https:\/\/web.dev\/offscreen-images\/).","score":1,"scoreDisplayMode":"numeric","details":{"overallSavingsMs":0,"headings":[],"items":[],"type":"opportunity","overallSavingsBytes":0},"warnings":[],"numericValue":0,"numericUnit":"millisecond"},"largest-contentful-paint":{"id":"largest-contentful-paint","title":"Largest Contentful Paint","description":"Largest Contentful Paint marks the time at which the largest text or image is painted. [Learn more](https:\/\/web.dev\/lighthouse-largest-contentful-paint\/)","score":0.61,"scoreDisplayMode":"numeric","displayValue":"2.1\u00a0s","numericValue":2060,"numericUnit":"millisecond"},"first-contentful-paint":{"id":"first-contentful-paint","title":"First Contentful Paint","description":"First Contentful Paint marks the time at which the first text or image is painted. [Learn more](https:\/\/web.dev\/first-contentful-paint\/).","score":0.88,"scoreDisplayMode":"numeric","displayValue":"1.0\u00a0s","numericValue":970,"numericUnit":"millisecond"},"uses-responsive-images":{"id":"uses-responsive-images","title":"Properly size images","description":"Serve images that are appropriately-sized to save cellular data and improve load time. [Learn more](https:\/\/web.dev\/uses-responsive-images\/).","score":0.89,"scoreDisplayMode":"numeric","displayValue":"Potential savings of 255\u00a0KiB","details":{"overallSavingsBytes":260627,"overallSavingsMs":130,"items":[{"url":"https:\/\/zylalabs.com\/img\/zyla-first.png","wastedBytes":59802,"wastedPercent":26.558441558441558,"node":{"path":"1,HTML,1,BODY,3,SECTION,6,DIV,0,DIV,1,DIV,0,DIV,0,IMG","lhId":"page-7-IMG","type":"node","selector":"div.row > div.col-lg-6 > div.hero-right > img","nodeLabel":"hero","snippet":"<img src=\"https:\/\/zylalabs.com\/img\/zyla-first.png\" alt=\"hero\">","boundingRect":{"bottom":584,"left":690,"right":1176,"width":486,"top":207,"height":377}},"totalBytes":225170},{"totalBytes":47983,"node":{"lhId":"page-19-IMG","boundingRect":{"height":55,"left":917,"top":1407,"bottom":1462,"width":55,"right":972},"nodeLabel":"div.wow > div > a > img.card-img-top","path":"1,HTML,1,BODY,5,SECTION,0,DIV,1,DIV,2,DIV,0,DIV,0,DIV,0,A,0,IMG","snippet":"<img class=\"card-img-top\" style=\"width: 20% !important\" src=\"https:\/\/gopostr.s3.amazonaws.com\/favicon_url\/XVs9KuSFHacq03k29WdAdZGhqXN9o\u2026\">","selector":"div.wow > div > a > img.card-img-top","type":"node"},"url":"https:\/\/gopostr.s3.amazonaws.com\/favicon_url\/XVs9KuSFHacq03k29WdAdZGhqXN9ol9fZQ2TmSDC.png","wastedPercent":98.79,"wastedBytes":47402},{"url":"https:\/\/gopostr.s3.amazonaws.com\/favicon_url\/HfphoO5tcz97OVcgCaKgwympNFvOskHX1UK4QMlq.png","wastedPercent":98.79,"wastedBytes":35186,"node":{"selector":"div.wow > div > a > img.card-img-top","type":"node","snippet":"<img class=\"card-img-top\" style=\"width: 20% !important\" src=\"https:\/\/gopostr.s3.amazonaws.com\/favicon_url\/HfphoO5tcz97OVcgCaKgwympNFvOs\u2026\">","lhId":"page-26-IMG","path":"1,HTML,1,BODY,5,SECTION,0,DIV,1,DIV,9,DIV,0,DIV,0,DIV,0,A,0,IMG","boundingRect":{"left":157,"height":55,"bottom":2645,"width":55,"right":212,"top":2590},"nodeLabel":"div.wow > div > a > img.card-img-top"},"totalBytes":35617},{"url":"https:\/\/gopostr.s3.amazonaws.com\/favicon_url\/MqH31JIhllTjugNfia3skMEc7ckbDp0Re8tB1B7g.png","totalBytes":33321,"node":{"selector":"div.wow > div > a > img.card-img-top","type":"node","snippet":"<img class=\"card-img-top\" style=\"width: 20% !important\" src=\"https:\/\/gopostr.s3.amazonaws.com\/favicon_url\/MqH31JIhllTjugNfia3skMEc7ckbD\u2026\">","boundingRect":{"height":55,"top":1810,"bottom":1865,"right":592,"left":537,"width":55},"lhId":"page-21-IMG","path":"1,HTML,1,BODY,5,SECTION,0,DIV,1,DIV,4,DIV,0,DIV,0,DIV,0,A,0,IMG","nodeLabel":"div.wow > div > a > img.card-img-top"},"wastedBytes":32691,"wastedPercent":98.109375},{"wastedPercent":98.79,"node":{"snippet":"<img class=\"card-img-top\" style=\"width: 20% !important\" src=\"https:\/\/gopostr.s3.amazonaws.com\/favicon_url\/ebhr8dQks9DHS4yEKgcA5sTwPGwpo\u2026\">","type":"node","path":"1,HTML,1,BODY,5,SECTION,0,DIV,1,DIV,8,DIV,0,DIV,0,DIV,0,A,0,IMG","lhId":"page-25-IMG","boundingRect":{"height":55,"left":917,"top":2213,"bottom":2268,"width":55,"right":972},"nodeLabel":"div.wow > div > a > img.card-img-top","selector":"div.wow > div > a > img.card-img-top"},"wastedBytes":21361,"url":"https:\/\/gopostr.s3.amazonaws.com\/favicon_url\/ebhr8dQks9DHS4yEKgcA5sTwPGwpoBMrwEQYBUYJ.png","totalBytes":21623},{"wastedBytes":19341,"wastedPercent":98.79,"node":{"snippet":"<img class=\"card-img-top\" style=\"width: 20% !important\" src=\"https:\/\/gopostr.s3.amazonaws.com\/favicon_url\/GxpvHKHu7rHU6OtH3hbIWrgUQXJg8\u2026\">","selector":"div.wow > div > a > img.card-img-top","nodeLabel":"div.wow > div > a > img.card-img-top","boundingRect":{"left":157,"width":55,"right":212,"bottom":2268,"top":2213,"height":55},"type":"node","path":"1,HTML,1,BODY,5,SECTION,0,DIV,1,DIV,6,DIV,0,DIV,0,DIV,0,A,0,IMG","lhId":"page-23-IMG"},"url":"https:\/\/gopostr.s3.amazonaws.com\/favicon_url\/GxpvHKHu7rHU6OtH3hbIWrgUQXJg8ekjjTSpuOf8.png","totalBytes":19578},{"wastedBytes":13823,"wastedPercent":98.79,"url":"https:\/\/gopostr.s3.amazonaws.com\/favicon_url\/yOakvbRdcJk33Hg3iT9X9TQhiUnYAHk19cmDKcHn.png","totalBytes":13992,"node":{"lhId":"page-24-IMG","path":"1,HTML,1,BODY,5,SECTION,0,DIV,1,DIV,7,DIV,0,DIV,0,DIV,0,A,0,IMG","selector":"div.wow > div > a > img.card-img-top","nodeLabel":"div.wow > div > a > img.card-img-top","snippet":"<img class=\"card-img-top\" style=\"width: 20% !important\" src=\"https:\/\/gopostr.s3.amazonaws.com\/favicon_url\/yOakvbRdcJk33Hg3iT9X9TQhiUnYA\u2026\">","boundingRect":{"right":592,"height":55,"top":2213,"left":537,"width":55,"bottom":2268},"type":"node"}},{"wastedPercent":62.24634261444078,"node":{"boundingRect":{"top":1,"right":320,"width":200,"bottom":96,"height":96,"left":120},"type":"node","path":"1,HTML,1,BODY,2,HEADER,0,DIV,0,DIV,0,DIV,0,DIV,0,A,0,IMG","snippet":"<img style=\"width: 200px;\" src=\"https:\/\/zylalabs.com\/img\/logo-removebg-preview.png\" alt=\"logo\">","selector":"div.col-lg-12 > div.logo-area > a > img","lhId":"page-0-IMG","nodeLabel":"logo"},"wastedBytes":10770,"totalBytes":17302,"url":"https:\/\/zylalabs.com\/img\/logo-removebg-preview.png"},{"url":"https:\/\/zylalabs.com\/assets\/hero_shape.png","node":{"snippet":"<img src=\"https:\/\/zylalabs.com\/assets\/hero_shape.png\" alt=\"hero shape\">","nodeLabel":"hero shape","path":"1,HTML,1,BODY,3,SECTION,5,DIV,0,IMG","boundingRect":{"top":-13,"left":-202,"height":890,"right":1444,"width":1646,"bottom":877},"selector":"body > section.hero-section > div.hero-bg > img","type":"node","lhId":"page-6-IMG"},"wastedBytes":8004,"wastedPercent":26.49425979447656,"totalBytes":30211},{"wastedBytes":6390,"totalBytes":6980,"wastedPercent":91.5490553152743,"node":{"type":"node","lhId":"page-18-IMG","nodeLabel":"div.wow > div > a > img.card-img-top","selector":"div.wow > div > a > img.card-img-top","snippet":"<img class=\"card-img-top\" style=\"width: 20% !important\" src=\"https:\/\/gopostr.s3.amazonaws.com\/favicon_url\/YZNs2TfTxoJBApckLS3bcoP0Tcrf4\u2026\">","boundingRect":{"top":1408,"width":55,"right":592,"left":537,"height":27,"bottom":1434},"path":"1,HTML,1,BODY,5,SECTION,0,DIV,1,DIV,1,DIV,0,DIV,0,DIV,0,A,0,IMG"},"url":"https:\/\/gopostr.s3.amazonaws.com\/favicon_url\/YZNs2TfTxoJBApckLS3bcoP0Tcrf4HHeEMiHDM6T.png"},{"wastedPercent":82.5268817204301,"url":"https:\/\/gopostr.s3.amazonaws.com\/favicon_url\/6yKD4WNacn4wUC6kh46INJI5fvuO7XwDnxwXnZAt.png","node":{"type":"node","boundingRect":{"left":157,"width":55,"top":1407,"bottom":1446,"height":39,"right":212},"lhId":"page-17-IMG","nodeLabel":"div.wow > div > a > img.card-img-top","path":"1,HTML,1,BODY,5,SECTION,0,DIV,1,DIV,0,DIV,0,DIV,0,DIV,0,A,0,IMG","selector":"div.wow > div > a > img.card-img-top","snippet":"<img class=\"card-img-top\" style=\"width: 20% !important\" src=\"https:\/\/gopostr.s3.amazonaws.com\/favicon_url\/6yKD4WNacn4wUC6kh46INJI5fvuO7\u2026\">"},"totalBytes":7097,"wastedBytes":5857}],"headings":[{"valueType":"node","key":"node"},{"label":"URL","valueType":"url","key":"url"},{"key":"totalBytes","label":"Resource Size","valueType":"bytes"},{"valueType":"bytes","key":"wastedBytes","label":"Potential Savings"}],"type":"opportunity"},"numericValue":130,"numericUnit":"millisecond"},"cumulative-layout-shift":{"id":"cumulative-layout-shift","title":"Cumulative Layout Shift","description":"Cumulative Layout Shift measures the movement of visible elements within the viewport. [Learn more](https:\/\/web.dev\/cls\/).","score":0.97,"scoreDisplayMode":"numeric","displayValue":"0.066","details":{"type":"debugdata","items":[{"cumulativeLayoutShiftMainFrame":0.06566366503225052,"totalCumulativeLayoutShift":0.07596805168841023}]},"numericValue":0.06566366503225052,"numericUnit":"unitless"},"mainthread-work-breakdown":{"id":"mainthread-work-breakdown","title":"Minimizes main-thread work","description":"Consider reducing the time spent parsing, compiling and executing JS. You may find delivering smaller JS payloads helps with this. [Learn more](https:\/\/web.dev\/mainthread-work-breakdown\/)","score":0.99,"scoreDisplayMode":"numeric","displayValue":"1.1\u00a0s","details":{"items":[{"duration":620.4379999999989,"group":"scriptEvaluation","groupLabel":"Script Evaluation"},{"groupLabel":"Other","duration":243.55699999999763,"group":"other"},{"duration":135.98800000000008,"groupLabel":"Style & Layout","group":"styleLayout"},{"duration":46.519999999999996,"groupLabel":"Script Parsing & Compilation","group":"scriptParseCompile"},{"duration":44.62399999999998,"groupLabel":"Parse HTML & CSS","group":"parseHTML"},{"groupLabel":"Rendering","duration":42.31900000000016,"group":"paintCompositeRender"},{"groupLabel":"Garbage...
                                                                                                                                                                                                                    
                                                                                                    

Analyze - CODE SNIPPETS


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' 

    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Page Speed Analyzer API REST API, simply include your bearer token in the Authorization header.
Headers
Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

๐Ÿš€ Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • โœ”๏ธŽ Only Pay for Successful Requests
  • โœ”๏ธŽ Free 7-Day Trial
  • โœ”๏ธŽ Multi-Language Support
  • โœ”๏ธŽ One API Key, All APIs.
  • โœ”๏ธŽ Intuitive Dashboard
  • โœ”๏ธŽ Comprehensive Error Handling
  • โœ”๏ธŽ Developer-Friendly Docs
  • โœ”๏ธŽ Postman Integration
  • โœ”๏ธŽ Secure HTTPS Connections
  • โœ”๏ธŽ Reliable Uptime

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the worldโ€™s most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, look at the โ€˜X-Zyla-API-Calls-Monthly-Remainingโ€™ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.

To see the maximum number of API requests your plan allows, check the โ€˜X-Zyla-RateLimit-Limitโ€™ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The โ€˜X-Zyla-RateLimit-Resetโ€™ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, itโ€™s important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.

 Service Level
100%
 Response Time
10,743ms

Category:


Related APIs