Difference between revisions of "Google Poly"
(Add info about retrieving data from Poly) |
|||
Line 14: | Line 14: | ||
== Downloading Assets == | == Downloading Assets == | ||
=== Manual === | |||
The Poly web interface appears at https://poly.google.com/view/<id-of-item>. The web interface downloads sketch.gltf and sketch.bin. Links to sketch.gltf, sketch.bin and sketch.tilt can be found in the html page in the object passed to the second call of <pre>AF_initDataCallback</pre>. This works for models with any license. | |||
Assets IDs can be grabbed from search using https://poly.google.com/search/<search-term>. Search for links to <pre>./view/<some-id></pre>. Unknown how to get past the first page. | |||
=== API === | |||
The Poly API requires an API key. Each API key has a limit of 3000 queries per minute, and no limit per day/month<ref>https://developers.google.com/poly/develop/api#usage_and_quota</ref>. | The Poly API requires an API key. Each API key has a limit of 3000 queries per minute, and no limit per day/month<ref>https://developers.google.com/poly/develop/api#usage_and_quota</ref>. | ||
It's possible to get all CC-By assets using [https://developers.google.com/poly/reference/api/rest/v1/assets/list https://poly.googleapis.com/v1/assets]. This returns an array that contains the information for each asset. The formats object contains links to the 3D model files, (sketch.gltf, sketch.bin | It's possible to get all CC-By assets using [https://developers.google.com/poly/reference/api/rest/v1/assets/list https://poly.googleapis.com/v1/assets]. This returns an array that contains the information for each asset. The formats object contains links to the 3D model files, (sketch.gltf, sketch.bin, sketch.tilt and thumbnail.png) and these can be downloaded without an API key. | ||
Other assets IDs would have to be scraped from search using https://poly.google.com/search/<search-term>. For each asset, the ID from the URL can be used to retrieve the same info as above from [https://developers.google.com/poly/reference/api/rest/v1/assets/get https://poly.googleapis.com/v1/{name=assets/*}] | Other assets IDs would have to be scraped from search using https://poly.google.com/search/<search-term>. For each asset, the ID from the URL can be used to retrieve the same info as above from [https://developers.google.com/poly/reference/api/rest/v1/assets/get https://poly.googleapis.com/v1/{name=assets/*}] | ||
== References == | == References == |
Revision as of 03:34, 9 April 2021
Google Poly | |
URL | https://poly.google.com/ |
Status | Closing |
Archiving status | Upcoming... |
Archiving type | Unknown |
Project source | google-poly-grab |
IRC channel | #polygone (on hackint) |
Google Poly is a platform for 3D objects. It will become read-only after 2021-04-30 and is shutting down on 2021-06-30[1].
Downloading Assets
Manual
The Poly web interface appears at https://poly.google.com/view/<id-of-item>. The web interface downloads sketch.gltf and sketch.bin. Links to sketch.gltf, sketch.bin and sketch.tilt can be found in the html page in the object passed to the second call of
AF_initDataCallback
. This works for models with any license. Assets IDs can be grabbed from search using https://poly.google.com/search/<search-term>. Search for links to
./view/<some-id>
. Unknown how to get past the first page.
API
The Poly API requires an API key. Each API key has a limit of 3000 queries per minute, and no limit per day/month[2].
It's possible to get all CC-By assets using https://poly.googleapis.com/v1/assets. This returns an array that contains the information for each asset. The formats object contains links to the 3D model files, (sketch.gltf, sketch.bin, sketch.tilt and thumbnail.png) and these can be downloaded without an API key.
Other assets IDs would have to be scraped from search using https://poly.google.com/search/<search-term>. For each asset, the ID from the URL can be used to retrieve the same info as above from https://poly.googleapis.com/v1/{name=assets/*}
References