Extract the publish date of an article (news or blog). The API will return the publish date of the article if it can be found. The date returned is in the format YYYY-MM-DD.
{
"publish_date": "2023-03-27"
} {{ codeCopyText }}
{{ codeCopyText }}
{{ codeCopyText }}
{{ codeCopyText }}
{{ codeCopyText }}
{{ codeCopyText }}
The API returns the publish date in the standard ISO 8601 format: YYYY-MM-DD.
The API primarily targets the original publish date. However, on some sites, if the modification date is the only date available or prominently displayed, it might be returned.
Yes, it can work on blog posts and other content pages that have a clear publication date, but it is most effective on news articles and blogs.
The Extract Publish Date API is designed to find the single publication date of a web page, whereas the Extract Dates API finds all date mentions within a text string.