Skip to main content

Content Freshness API

developer
GET/v1/domain/content-freshness

Reports observed publication/modification metadata, source agreement and date-signal quality. Age categories are descriptive; recency is not a universal quality or ranking requirement. Cache diagnostics are separate and do not improve the date score.

What It Does

Extracts dates from actual HTML metadata, JSON-LD, time elements and HTTP headers; preserves independent corroborating sources and validates local calendar dates across timezone rollover. Returns source confidence, date consistency, final URL and assessment scope. Missing dates do not establish stale or low-quality content, and cosmetic date updates are not recommended.

Why It's Useful

Content freshness is a ranking factor for search engines, especially for news and time-sensitive queries (Google's QDF algorithm). AI assistants cite content that is 25% fresher on average than organic search results. This endpoint helps identify stale content, validate date metadata accuracy across sources, audit cache configuration, and prioritize content refresh efforts based on actual freshness data and signal confidence.

Use Cases

Content Manager

Content Refresh Planning

Identify pages with outdated content and inconsistent date signals that need to be refreshed for continued ranking.

Prioritize content updates based on actual freshness data and confidence levels.

Technical SEO

Structured Data Validation

Verify that datePublished and dateModified in structured data, meta tags, and HTTP headers are consistent and accurate.

Ensure accurate dates in search result rich snippets and avoid freshness penalties from conflicting signals.

Web Developer

Cache Configuration Audit

Analyze Cache-Control directives, ETag configuration, and CDN caching behavior to ensure optimal content delivery.

Identify cache misconfigurations, missing revalidation headers, and conflicting directives that hurt performance.

Parameters

NameLocationTypeRequiredDescription
domainquerystringRequiredDomain or full URL — accepts `example.com` or `https://example.com/path`.Example: https://example.com

Response Fields

Result fields below are inside the JSON data object. Any row named meta describes the sibling response metadata object. See response and error handling for status codes and error responses. Optional observations may be absent or null; inspect warnings and partial-failure fields before treating a missing result as a negative finding.

FieldTypeDescription
domainstringThe analyzed domain (bare hostname).
urlstringFull URL that was fetched, echoing the protocol used in the request.
lastModifiedHeaderstringLast-Modified header date if present
publishDateobjectDetected publish date with source, date, and ageInDays
modifiedDateobjectDetected modification date with source, date, and ageInDays
allDatesFoundarrayAll detected date signals with sources and types (published/modified/created)
contentAgeobjectContent age assessment with days and category (fresh/recent/aging/stale/unknown)
cacheHeadersobjectHTTP cache header analysis including Cache-Control directives, ETag, Age, Expires, effective TTL, CDN indicators, and configuration issues
dateConsistencyobjectCross-validation of dates across sources with consistency flag, issues, date spread, and modified-after-published check
confidencestringDate detection confidence level (high/medium/low/none) based on signal count and consistency
scorenumberMulti-dimensional freshness score (0-100) combining content age, signal quality, and cache hygiene
gradestringContent freshness grade (A+ to F)
recommendationsarrayActionable improvement suggestions for content freshness, date metadata, and cache configuration

Code Examples

Replace YOUR_API_KEY with your API key. This endpoint requires the developer plan or higher; see plans and usage limits.

cURL
curl --request GET 'https://api.edgedns.dev/v1/domain/content-freshness?domain=https%3A%2F%2Fexample.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/domain/content-freshness?domain=https%3A%2F%2Fexample.com",
  {
    "method": "GET",
    "headers": {
      "Authorization": "Bearer YOUR_API_KEY"
    }
  }
);

if (!response.ok) {
  throw new Error(`EdgeDNS returned HTTP ${response.status}`);
}
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    'GET',
    "https://api.edgedns.dev/v1/domain/content-freshness?domain=https%3A%2F%2Fexample.com",
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)

Read the full Content Freshness guide

Learn the concepts, choose a practical workflow, and interpret the observations from Content Freshness before acting on them. Run supported checks via MCP or through REST.

Read the guide →

    Related Endpoints

    External References

    Learn more about the standards and protocols behind this endpoint.

    Try This Endpoint

    Test the Content Freshness endpoint live in the playground.

    Content Freshness API Reference | EdgeDNS