HELP CENTER

How to find pages with high loading time?

Mobile-first indexing and page speed being a factor for mobile rankings are arguments solid enough to take page speed seriously. Yet, even more importantly, slow page loading hampers user experience, which means websites loading for too long are at a huge risk of losing visitors and potential conversions.

To help you find slow-loading pages with DataForSEO On-Page API, we’ve prepared a simple step-by-step guide below. But before you get to it, remember to register and use your API credentials for authentication.

Learn more about Authentication in our docs >>

Then, follow the steps below.

1 Set a task to On-Page API and specify the necessary website.

POST: https://api.dataforseo.com/v3/on_page/task_post

[
  {
    "target": "dataforseo.com",
    "max_crawl_pages": 10,
    "tag": "some_string_123",
    "pingback_url": "https://your-server.com/pingscript?id=$id&tag=$tag"
  }
]

2 Use the task’s ID from the response to call the Summary endpoint.

GET: https://api.dataforseo.com/v3/on_page/summary/$id

Find the “checks” array and look at the “high_loading_time” counter. If it shows a value greater than 0, our crawler found the indicated number of pages with a high loading time on the target website.

3 Go to the Pages endpoint to extract the list of pages that are loading too slowly. Remember to indicate the task’s ID in the body of your request, and make sure you use a filter as in the example.

POST: https://api.dataforseo.com/v3/on_page/pages

[
  {
    "id": "07281559-0695-0216-0000-c269be8b7592",
    "filters": [
      [
        "resource_type",
        "=",
        "html"
      ],
      "and",
      [
        "checks.high_loading_time",
        "=",
        "true"
      ]
    ]
  }
]

The results will contain a list of pages with high loading time, that is, pages loading longer than 3 seconds. Each page will be provided with all other supported on-page check-ups and metrics related to the page performance.

Embed DataForSeo widget on your website


Embed code:
Preview: