Semantic Mentions

This endpoint allows you to pull semantic mentions for a given set of lodging ids in a date range.

Resource URL

http://connect.reviewpro.com/v1/lodging/semantic/mentions

Try it now with our interactive API!

Parameters

Param Value Required
api_key <your api key> Yes
pid The product id(s) of the lodging for which data is to be pulled Yes
fd The "from" date for the range of the query. This should be in the format yyyy-MM-dd.  Yes
td The "to" date for the range of the query.  This should be in the fomrat yyyy-MM-dd. Yes

Example GET Request

http://connect.reviewpro.com/v1/lodging/semantic/mentions?pid=33927&fd=2012-08-01&td=2013-02-01&api_key
{
    "name": "Hotel ReviewPro",
    "data": {
        "date_range_from": "2013-03-01",
        "date_range_to": "2013-03-20",
        "value": {
            "negative": [{
                "32812": 1
            }],
            "positive": [{
                "2": 1
            }, {
                "32827": 1
            }, {
                "32937": 1
            }]
        }
    },
    "pid": 123456
}