Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

CNET API - What is productId?

Feb 7, 2014 2:53AM PST

Hi,

I am trying to access CNET's API for data on reviews/ratings for laptops. I read through the documents on CNET's developer site and was wondering if someone could help me understand "productId". What is this field?

For example; what is the productId for the laptop (http://www.cnet.com/laptops/lenovo-thinkpad-yoga/4507-3121_7-35827163.html)
Is it the same as part number or is it something different?

Any help would be deeply appreciated. Thanks in advance!

Regards,
Gautam

Discussion is locked

- Collapse -
Answer
(NT) FYI. I sent up an alert on this.
Feb 7, 2014 2:59AM PST
- Collapse -
Answer
Product ID
Feb 7, 2014 3:08AM PST

Looking at the URL and HTML source, the numbers mean the following:
4507............Page type
3121............Node ID
7..................Site ID
35827163....Asset ID

Considering there are probably more products in the system than pages, nodes or sites, I'd assume that the asset ID corresponds to the product ID.

If you look at the reference guide:
http://developer.cnet.com/docs/read/reference_guide

See if you can query the techProduct resource with the asset ID and look at what it returns.

~Sovereign

- Collapse -
I just tested this out
Feb 7, 2014 3:22AM PST

and can confirm that the asset ID does correspond to the product ID.

~Sovereign