Date extraction
Alchemy Language - Date extraction
http://www.ibm.com/watson/developercloud/alchemy-language/api/v1/#date_extraction
Curl
$ curl -X POST -d "apikey=%API_KEY%" -d "outputMode=json" --data-urlencode "url=ibm.com/press" "https://gateway-a.watsonplatform.net/calls/url/URLExtractDates"
{
"status": "OK",
"usage": "By accessing AlchemyAPI or using information generated by AlchemyAPI, you are agreeing to be bound by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html",
"url": "http://www-03.ibm.com/press/us/en/index.wss",
"totalTransactions": "1",
"language": "english",
"dates": [
{
"date": "20160823T000000",
"text": "2016-08-23"
},
{
"date": "20160822T000000",
"text": "2016-08-22"
},
{
"date": "20160815T000000",
"text": "2016-08-15"
},
{
"date": "20160812T000000",
"text": "2016-08-12"
},
{
"date": "20160812T000000",
"text": "2016-08-12"
},
{
"date": "20160812T000000",
"text": "2016-08-12"
},
{
"date": "20160811T000000",
"text": "2016-08-11"
},
{
"date": "20160809T000000",
"text": "2016-08-09"
},
{
"date": "20160803T000000",
"text": "2016-08-03"
},
{
"date": "20160803T000000",
"text": "2016-08-03"
}
]
}
→返ってくる.テキスト中の位置情報は含まれていない.