Reports

Get URL Content Diff

Changed on

Compare two stored content versions of a source URL. Without version numbers, compares the newest version with the one before it. Use List URL Content Versions to see which versions exist. Returns 404 when the URL has only one version.

post/sources/urls/content/diff

Request

  • Base URL
    https://api.peec.ai/customer/v1
  • URL
    https://api.peec.ai/customer/v1/sources/urls/content/diff
  • Auth
    • API key in header X-API-Key
    • or API key in query parameter api_key
    • or HTTP bearer

Query parameters

project_idstring

Required if using a company api key

Example:or_f45b94ba-5e35-4982-93ed-285e72ee14eb

Request body

project_idstring

Required if using a company api key

urlstring uri required

Full URL of a source, as returned by the URLs report or Get URL Content.

from_versioninteger

Older version to compare from. Defaults to the version before to_version.

to_versioninteger

Newer version to compare to. Defaults to the newest version.

Example request

{
  "project_id": "or_f45b94ba-5e35-4982-93ed-285e72ee14eb",
  "url": "https://example.com/blog/page1",
  "from_version": 2,
  "to_version": 3
}

Response

Success

Example response

{
  "data": {
    "from_version": 2,
    "to_version": 3
  }
}

Changes