{"id":9834,"date":"2021-07-15T15:08:25","date_gmt":"2021-07-15T15:08:25","guid":{"rendered":"https:\/\/docs_v3.dataforseo.com\/v3\/?page_id=9834"},"modified":"2026-01-06T15:52:50","modified_gmt":"2026-01-06T15:52:50","slug":"on_page-lighthouse-overview","status":"publish","type":"page","link":"https:\/\/docs.dataforseo.com\/v3\/on_page-lighthouse-overview\/","title":{"rendered":"on_page\/lighthouse\/overview"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]<\/p>\n<h1 id=\"introduction\">OnPage Lighthouse API: Overview<\/h1>\n    <div class=\"endpoint\">\n        <img decoding=\"async\" class=\"endpoint__icon\" src=\"https:\/\/docs.dataforseo.com\/v3\/wp-content\/themes\/dataforseo\/assets\/img\/icons\/checked-circle.svg\" alt=\"checked\">\n\n                    The OnPage Lighthouse API is based on Google&#039;s open-source Lighthouse project and provides data on the quality of web pages.            <\/div>\n    \n<p>The OnPage Lighthouse API is a tool for leveraging the capabilities of Lighthouse &#8211; Google&#8217;s open-source project intended to help webmasters access the data on the performance and quality of web pages and web apps.<\/p>\n<p>Lighthouse reports the performance metrics simulating a mid-tier mobile device on a 4G internet connection. To achieve that, Lighthouse incorporates sophisticated architecture, illustrated below. You can get more information about how Lighthouse works by visiting the official documentation of Google&#8217;s Lighthouse project. <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/docs.dataforseo.com\/v3\/wp-content\/uploads\/2021\/07\/architecture.png\" alt=\"\" width=\"724\" height=\"409\" class=\"alignleft size-large wp-image-9862\" \/><\/p>\n<p><em>Note that OnPage Lighthouse API is based on Google&#8217;s open-source <a href=\"https:\/\/github.com\/GoogleChrome\/lighthouse\/\" rel=\"noopener noreferrer\" target=\"_blank\">Lighthouse project<\/a>. The data returned in the <code>results<\/code> array of the API&#8217;s response is identical to that described in the project&#8217;s <a href=\"https:\/\/github.com\/GoogleChrome\/lighthouse\/tree\/master\/docs\" rel=\"noopener noreferrer\" target=\"_blank\">official documentation<\/a>. You can refer to it for more information about the content and structure of the data provided by OnPage Lighthouse API. <\/em><\/p>\n<p>Sending a web page for crawling is done through a POST request to the <a href=\"\/v3\/on_page\/lighthouse\/task_post\/\" target=\"_blank\" rel=\"noopener noreferrer\">Lighthouse Task POST<\/a> endpoint. Alongside the URL of the web page, you can specify additional parameters, which would help you filter the data and get the results you need:<\/p>\n<p><strong>&#9679; Audits<\/strong> contain the results of the audits and keyed by their titles; to get only certain audits, you should specify their titles in the corresponding Task POST array; you can obtain the list of titles of all available audits by requesting the <a href=\"\/v3\/on_page\/lighthouse\/audits\/\" target=\"_blank\" rel=\"noopener noreferrer\">Lighthouse Audits endpoint<\/a>.<br \/>\n<strong>&#9679; Categories<\/strong> contain different categories, their scores, and references to the audits that comprise them.<\/p>\n<p>After the website is fetched for crawling, you can start retrieving results by passing the <code>task_id<\/code> of the tasks in the <a href=\"\/v3\/on_page\/lighthouse\/task_get\/json\" target=\"_blank\" rel=\"noopener noreferrer\">Lighthouse Task GET<\/a> endpoint. For now, you can obtain results in JSON only, but we plan to add support for HTML in the nearest future. <\/p>\n<p>Learn more about task completion and obtaining a list of completed tasks in <a href=\"https:\/\/dataforseo.com\/help-center\/completed-tasks\" rel=\"noopener noreferrer\" target=\"_blank\">this help center article.<\/a>  <\/p>\n<p>\u200cAlternatively, you can specify <code>pingback_url<\/code> or <code>postback_url<\/code> when setting a task, and we will notify you on completion of tasks or send the results to you respectively. <\/p>\n<p>If you do use <code>pingback_url<\/code> or <code>postback_url<\/code>, you can receive the list of id for all completed tasks using the <a href=\"\/v3\/on_page\/lighthouse\/tasks_ready\/\" target=\"_blank\" rel=\"noopener noreferrer\">Tasks Ready<\/a> endpoint. It is designed to provide you with a list of completed tasks, which haven&#8217;t been collected yet. <\/p>\n<p>You can send up to 2000 API calls per minute, with each POST call containing no more than 100 tasks. Contact us if you would like to raise the limit. Note that the maximum number of simultaneous requests you can send is limited to 30.<\/p>\n<p>If your system requires delivering instant results, the <a href=\"\/v3\/on_page\/lighthouse\/live\/json\" target=\"_blank\" rel=\"noopener noreferrer\">Lighthouse Live<\/a> endpoint is the best solution for you as it doesn\u2019t require making separate POST and GET requests to the corresponding endpoints.<\/p>\n<p>You can test the Lighthouse OnPage API for free using DataForSEO <a href=\"\/v3\/appendix\/sandbox\/\">Sandbox.<\/a><\/p>\n<p><strong>The cost can be calculated on the <a title=\"Pricing\" href=\"https:\/\/dataforseo.com\/pricing\/on-page\/lighthouse-api\" target=\"_blank\" rel=\"noopener noreferrer\">Pricing<\/a> page or by making a separate call to <a href=\"\/v3\/appendix\/user_data\/?php\" target=\"_blank\" rel=\"noopener noreferrer\">the User Data endpoint.<\/a><\/strong><\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<blockquote><p>Instead of \u2018login\u2019 and \u2018password\u2019 use your credentials from https:\/\/app.dataforseo.com\/api-access<\/p><\/blockquote><\/div>","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][vc_column_text] OnPage Lighthouse API: Overview The OnPage Lighthouse API is based on Google&#039;s open-source Lighthouse project and provides data on the quality of web pages. The OnPage Lighthouse API is a tool for leveraging the capabilities of Lighthouse &#8211; Google&#8217;s open-source project intended to help webmasters access the data on the performance and quality of [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template.php","meta":{"apibase_doc_request_yaml":"","apibase_doc_request_additional_yaml":"","apibase_doc_response_yaml":"","footnotes":""},"class_list":["post-9834","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/docs.dataforseo.com\/v3\/wp-json\/wp\/v2\/pages\/9834","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.dataforseo.com\/v3\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.dataforseo.com\/v3\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.dataforseo.com\/v3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.dataforseo.com\/v3\/wp-json\/wp\/v2\/comments?post=9834"}],"version-history":[{"count":14,"href":"https:\/\/docs.dataforseo.com\/v3\/wp-json\/wp\/v2\/pages\/9834\/revisions"}],"predecessor-version":[{"id":9851,"href":"https:\/\/docs.dataforseo.com\/v3\/wp-json\/wp\/v2\/pages\/9834\/revisions\/9851"}],"wp:attachment":[{"href":"https:\/\/docs.dataforseo.com\/v3\/wp-json\/wp\/v2\/media?parent=9834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}