Content Freshness API
developer/v1/domain/content-freshnessReports 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 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.
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.
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
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
domain | query | string | Required | Domain 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.
| Field | Type | Description |
|---|---|---|
domain | string | The analyzed domain (bare hostname). |
url | string | Full URL that was fetched, echoing the protocol used in the request. |
lastModifiedHeader | string | Last-Modified header date if present |
publishDate | object | Detected publish date with source, date, and ageInDays |
modifiedDate | object | Detected modification date with source, date, and ageInDays |
allDatesFound | array | All detected date signals with sources and types (published/modified/created) |
contentAge | object | Content age assessment with days and category (fresh/recent/aging/stale/unknown) |
cacheHeaders | object | HTTP cache header analysis including Cache-Control directives, ETag, Age, Expires, effective TTL, CDN indicators, and configuration issues |
dateConsistency | object | Cross-validation of dates across sources with consistency flag, issues, date spread, and modified-after-published check |
confidence | string | Date detection confidence level (high/medium/low/none) based on signal count and consistency |
score | number | Multi-dimensional freshness score (0-100) combining content age, signal quality, and cache hygiene |
grade | string | Content freshness grade (A+ to F) |
recommendations | array | Actionable 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 --request GET 'https://api.edgedns.dev/v1/domain/content-freshness?domain=https%3A%2F%2Fexample.com' \
--header "Authorization: Bearer YOUR_API_KEY"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);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.