Extract Publish Date API

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.

GET
https://api.apileague.com/extract-publish-date
Example Request and Response
GET
https://api.apileague.com/{{ examples.getExtractPublishDate }}
{
    "publish_date": "2023-03-27"
}
cURL
Java
Javascript
Python
Go
C#
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}

Frequently Asked Questions

What format is the date returned in?

The API returns the publish date in the standard ISO 8601 format: YYYY-MM-DD.

Can it extract the modification date?

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.

Does it work on non-news websites?

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.

How is the Extract Publish Date API different from the Extract Dates API?

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.

Questions? Need Help? Ask Away