shish / blender-ikea-browser

Import 3D models from ikea.com into your scene!
20 stars 1 forks source link

Some products with 3D models get a 404 when querying the Rotera API #7

Closed shish closed 3 months ago

shish commented 3 months ago

eg product ID702.397.10

The webpage does show a 3D model:

https://www.ikea.com/ie/en/p/stockholm-coffee-table-walnut-veneer-70239710/

But the "3D model metadata" API (which we use to turn a product ID into a model URL) returns 404, so we fail to download the .usd file:

https://www.ikea.com/global/assets/rotera/resources/70239710.json

shish commented 3 months ago

When browsing the web page, it queries https://web-api.ikea.com/ie/en/rotera/data/model/70239710 -- perhaps that www URL is some kind of cache, or a deprecated old API that hasn't been updated for newer products, and we should use web-api instead?

shish commented 3 months ago

www/global/assets/rotera appears to be either an old API or a cache of static files or something - when browsing today, my browser interacts with https://web-api.ikea.com/ie/en/rotera/data/model/70239710 -- and web-api appears to be more up-to-date, so I'm switching to use that instead