Review feed sample
Stay organized with collections
Save and categorize content based on your preferences.
Pull-based review feed example
{
"metaData": {
"feedCategory":"SNAPSHOT",
"feedTimestampMicros":1532930955190163,
"apiVersion": "v1",
"pagination": {
"nextTokenParam": "yre7yiesar"
},
"totalCount":1,
"partnerFeedId": "7439279432"
},
"reviewItems": [
{
"serviceProviderId": 1,
"ratingCount": 2,
"reviews": [
{
"reviewId": "1",
"author": "Jack L.",
"reviewText": "Good service!",
"rating": 4,
"serviceLocationCity": "New York",
"reviewTimestampMicros": 1451415600000000,
"category": {
"categoryId": "garage_door_pro",
"task": "repair_garage_door"
}
},
{
"reviewId": "2",
"author": "Jack M.",
"reviewText": "Great service!",
"rating": 5,
"serviceLocationCity": "New York",
"reviewTimestampMicros": 1451415600000000,
"language": "en",
"category": {
"categoryId": "garage_door_pro",
"task": "repair_garage_door"
}
}
],
"confirmedCustomer": true
},
{
"serviceProviderId": 2,
"ratingCount": 0,
"reviews": []
}
]
}
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-03 UTC."],[[["\u003cp\u003eThis is an example of a JSON payload for a pull-based review feed, containing metadata about the feed and a list of review items.\u003c/p\u003e\n"],["\u003cp\u003eEach review item includes information about the service provider, the number of ratings received, and an array of individual reviews with details like author, text, rating, location, and category.\u003c/p\u003e\n"],["\u003cp\u003eMetadata provides context for the feed, such as feed category, timestamp, API version, pagination details, total review count, and partner feed ID.\u003c/p\u003e\n"],["\u003cp\u003eThe example showcases two service providers, one with two reviews and the other with no reviews, demonstrating the structure for both scenarios.\u003c/p\u003e\n"],["\u003cp\u003eReviews can include details like the service location city, timestamp, language, and a category object specifying the service category and task.\u003c/p\u003e\n"]]],[],null,["# Review feed sample\n\nPull-based review feed example\n------------------------------\n\n```scdoc\n{\n \"metaData\": {\n \"feedCategory\":\"SNAPSHOT\",\n \"feedTimestampMicros\":1532930955190163,\n \"apiVersion\": \"v1\",\n \"pagination\": {\n \"nextTokenParam\": \"yre7yiesar\"\n },\n \"totalCount\":1,\n \"partnerFeedId\": \"7439279432\"\n },\n \"reviewItems\": [\n {\n \"serviceProviderId\": 1,\n \"ratingCount\": 2,\n \"reviews\": [\n {\n \"reviewId\": \"1\",\n \"author\": \"Jack L.\",\n \"reviewText\": \"Good service!\",\n \"rating\": 4,\n \"serviceLocationCity\": \"New York\",\n \"reviewTimestampMicros\": 1451415600000000,\n \"category\": {\n \"categoryId\": \"garage_door_pro\",\n \"task\": \"repair_garage_door\"\n }\n },\n {\n \"reviewId\": \"2\",\n \"author\": \"Jack M.\",\n \"reviewText\": \"Great service!\",\n \"rating\": 5,\n \"serviceLocationCity\": \"New York\",\n \"reviewTimestampMicros\": 1451415600000000,\n \"language\": \"en\",\n \"category\": {\n \"categoryId\": \"garage_door_pro\",\n \"task\": \"repair_garage_door\"\n }\n }\n ],\n \"confirmedCustomer\": true\n },\n {\n \"serviceProviderId\": 2,\n \"ratingCount\": 0,\n \"reviews\": []\n }\n ]\n}\n```"]]