Site Audit

This endpoint consumes a fixed cost of 50 API units per request.

get/site-audit/page-content

Request

  • Base URL
    https://api.ahrefs.com/v3
  • URL
    https://api.ahrefs.com/v3/site-audit/page-content
  • Auth
    HTTP bearer

Query parameters

selectstring required

A comma-separated list of fields to return.

  • crawl_datetime
  • page_text
  • page_text_md
  • raw_html
  • rendered_html
project_idinteger required

The unique identifier of the project. Only projects with verified ownership are supported. You can find the project ID in the URL of your Site Audit project in Ahrefs: https://app.ahrefs.com/site-audit/#project_id#

target_urlstring url required

The URL of the page to retrieve content for.

datestring date-time

A timestamp in YYYY-MM-DDThh:mm:ss format specifying the crawl date to retrieve metrics from. Defaults to the most recent available crawl if omitted. For scheduled crawls, we return data from the latest crawl finished before the specified timestamp. For Always-on audit crawls, we return data as of the provided date and time. If the time component is omitted, it defaults to 00:00:00. The timestamp is interpreted in UTC.

output'json' | 'php'

The output format.

Response

OK

Changes