POST
/synopsis/lastoneyearGet Synopsis Last One Year
Get Synopsis Last One Year
This method retrieves the number of reviews available for a specific hotel over the past year by providing the hotelcodes, sourcecodes, and shopid. The result will include a month-by-month count of reviews, organized by each hotel and source.
Mandatory Fields:
- hotelCodes
- shopId
POST
/synopsis/lastoneyearParameter Details
| Name | In | Type | Required | Description |
|---|---|---|---|---|
body | body | object | Optional | none |
» hotelCodes | body | array | Optional | Unique code of the hotel to fetch reviews for (as obtained from POST /entity/hotels). |
» sourceCodes | body | array | Optional | Optionally filter by reviews from these specific website/sources only (as obtained from GET /references/sources). By default, it will fetch from all sources available. |
» shopId | body | integer | Optional | Identifier of the shop. |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Ok | |
| 400 | Bad Request | Bad Request | None |
| 401 | Unauthorized | Authorization Failed | None |
| 404 | Not Found | Not found | None |
| 429 | Too Many Requests | Too Many Requests | None |
| 500 | Internal Server Error | Internal Server Error | None |
Example Request
# You can also use wget
curl -X POST http://localhost:3000/synopsis/lastoneyear \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: API_KEY'
Body parameter
{
"hotelCodes": [
72110
],
"sourceCodes": [
1
],
"shopId": 537
}
Example responses
200 Response
{
"websiteName": "Makemytrip",
"counts": {
"2024-02": 2
}
}
Need Support?
Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.