curl --request GET \
--url https://api.hubapi.com/crm-objects/v1/objects/products/paged
"\nExample GET URL:\nhttps://api.hubapi.com/crm-objects/v1/objects/products/paged\n\nExample response:\n{\n \"objects\": [\n {\n \"objectType\": \"PRODUCT\",\n \"portalId\": 62515,\n \"objectId\": 1642736,\n \"properties\": {},\n \"version\": 2,\n \"isDeleted\": false\n },\n {\n \"objectType\": \"PRODUCT\",\n \"portalId\": 62515,\n \"objectId\": 1642767,\n \"properties\": {},\n \"version\": 1,\n \"isDeleted\": false\n },\n {\n \"objectType\": \"PRODUCT\",\n \"portalId\": 62515,\n \"objectId\": 1642796,\n \"properties\": {},\n \"version\": 2,\n \"isDeleted\": false\n }\n ],\n \"hasMore\": false,\n \"offset\": 1642796\n}\n\nExample GET URL (with properties):\nhttps://api.hubapi.com/crm-objects/v1/objects/products/paged?properties=name&properties=description&properties=price\n\nExample response:\n{\n \"objects\": [\n {\n \"objectType\": \"PRODUCT\",\n \"portalId\": 62515,\n \"objectId\": 1642736,\n \"properties\": {\n \"price\": {\n \"versions\": [\n {\n \"name\": \"price\",\n \"value\": \"10.00\",\n \"timestamp\": 1525287810508,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"10.00\",\n \"timestamp\": 1525287810508,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"name\": {\n \"versions\": [\n {\n \"name\": \"name\",\n \"value\": \"An updated product\",\n \"timestamp\": 1525287810508,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"An updated product\",\n \"timestamp\": 1525287810508,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"description\": {\n \"versions\": [\n {\n \"name\": \"description\",\n \"value\": \"This product has an updated description and price.\",\n \"timestamp\": 1525287810508,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"This product has an updated description and price.\",\n \"timestamp\": 1525287810508,\n \"source\": \"API\",\n \"sourceId\": null\n }\n },\n \"version\": 2,\n \"isDeleted\": false\n },\n {\n \"objectType\": \"PRODUCT\",\n \"portalId\": 62515,\n \"objectId\": 1642767,\n \"properties\": {\n \"price\": {\n \"versions\": [\n {\n \"name\": \"price\",\n \"value\": \"27.50\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"27.50\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"name\": {\n \"versions\": [\n {\n \"name\": \"name\",\n \"value\": \"A new product\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"A new product\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"description\": {\n \"versions\": [\n {\n \"name\": \"description\",\n \"value\": \"A description of this product.\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"A description of this product.\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceId\": null\n }\n },\n \"version\": 1,\n \"isDeleted\": false\n },\n {\n \"objectType\": \"PRODUCT\",\n \"portalId\": 62515,\n \"objectId\": 1642796,\n \"properties\": {\n \"price\": {\n \"versions\": [\n {\n \"name\": \"price\",\n \"value\": \"85.00\",\n \"timestamp\": 1525292253568,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"85.00\",\n \"timestamp\": 1525292253568,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"name\": {\n \"versions\": [\n {\n \"name\": \"name\",\n \"value\": \"A second new product\",\n \"timestamp\": 1525289943771,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"A second new product\",\n \"timestamp\": 1525289943771,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"description\": {\n \"versions\": [\n {\n \"name\": \"description\",\n \"value\": \"This is an updated product, it's getting a price change.\",\n \"timestamp\": 1525292253568,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"This is an updated product, it's getting a price change.\",\n \"timestamp\": 1525292253568,\n \"source\": \"API\",\n \"sourceId\": null\n }\n },\n \"version\": 2,\n \"isDeleted\": false\n }\n ],\n \"hasMore\": false,\n \"offset\": 1642796\n}"
Get all products from a portal, up to 100 per request. By default you will only get a few system fields for any products in the response. If you want to get specific properties, you’ll need to use the &properties= parameter in the request URL. The parameter can be included multiple times, so you can request any properties you may need. See the parameter descriptions below and the examples for more details.
curl --request GET \
--url https://api.hubapi.com/crm-objects/v1/objects/products/paged
"\nExample GET URL:\nhttps://api.hubapi.com/crm-objects/v1/objects/products/paged\n\nExample response:\n{\n \"objects\": [\n {\n \"objectType\": \"PRODUCT\",\n \"portalId\": 62515,\n \"objectId\": 1642736,\n \"properties\": {},\n \"version\": 2,\n \"isDeleted\": false\n },\n {\n \"objectType\": \"PRODUCT\",\n \"portalId\": 62515,\n \"objectId\": 1642767,\n \"properties\": {},\n \"version\": 1,\n \"isDeleted\": false\n },\n {\n \"objectType\": \"PRODUCT\",\n \"portalId\": 62515,\n \"objectId\": 1642796,\n \"properties\": {},\n \"version\": 2,\n \"isDeleted\": false\n }\n ],\n \"hasMore\": false,\n \"offset\": 1642796\n}\n\nExample GET URL (with properties):\nhttps://api.hubapi.com/crm-objects/v1/objects/products/paged?properties=name&properties=description&properties=price\n\nExample response:\n{\n \"objects\": [\n {\n \"objectType\": \"PRODUCT\",\n \"portalId\": 62515,\n \"objectId\": 1642736,\n \"properties\": {\n \"price\": {\n \"versions\": [\n {\n \"name\": \"price\",\n \"value\": \"10.00\",\n \"timestamp\": 1525287810508,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"10.00\",\n \"timestamp\": 1525287810508,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"name\": {\n \"versions\": [\n {\n \"name\": \"name\",\n \"value\": \"An updated product\",\n \"timestamp\": 1525287810508,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"An updated product\",\n \"timestamp\": 1525287810508,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"description\": {\n \"versions\": [\n {\n \"name\": \"description\",\n \"value\": \"This product has an updated description and price.\",\n \"timestamp\": 1525287810508,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"This product has an updated description and price.\",\n \"timestamp\": 1525287810508,\n \"source\": \"API\",\n \"sourceId\": null\n }\n },\n \"version\": 2,\n \"isDeleted\": false\n },\n {\n \"objectType\": \"PRODUCT\",\n \"portalId\": 62515,\n \"objectId\": 1642767,\n \"properties\": {\n \"price\": {\n \"versions\": [\n {\n \"name\": \"price\",\n \"value\": \"27.50\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"27.50\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"name\": {\n \"versions\": [\n {\n \"name\": \"name\",\n \"value\": \"A new product\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"A new product\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"description\": {\n \"versions\": [\n {\n \"name\": \"description\",\n \"value\": \"A description of this product.\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"A description of this product.\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceId\": null\n }\n },\n \"version\": 1,\n \"isDeleted\": false\n },\n {\n \"objectType\": \"PRODUCT\",\n \"portalId\": 62515,\n \"objectId\": 1642796,\n \"properties\": {\n \"price\": {\n \"versions\": [\n {\n \"name\": \"price\",\n \"value\": \"85.00\",\n \"timestamp\": 1525292253568,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"85.00\",\n \"timestamp\": 1525292253568,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"name\": {\n \"versions\": [\n {\n \"name\": \"name\",\n \"value\": \"A second new product\",\n \"timestamp\": 1525289943771,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"A second new product\",\n \"timestamp\": 1525289943771,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"description\": {\n \"versions\": [\n {\n \"name\": \"description\",\n \"value\": \"This is an updated product, it's getting a price change.\",\n \"timestamp\": 1525292253568,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"This is an updated product, it's getting a price change.\",\n \"timestamp\": 1525292253568,\n \"source\": \"API\",\n \"sourceId\": null\n }\n },\n \"version\": 2,\n \"isDeleted\": false\n }\n ],\n \"hasMore\": false,\n \"offset\": 1642796\n}"
Successful response - Get all products from a portal, up to 100 per request
The response is of type object
.
Was this page helpful?