Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

[API Integration] Sketchfab #236

Closed
annatuma opened this issue Jan 10, 2020 · 5 comments
Closed

[API Integration] Sketchfab #236

annatuma opened this issue Jan 10, 2020 · 5 comments
Assignees
Labels
🔒 staff only Restricted to CC staff members 🙅 status: discontinued Not suitable for work as repo is in maintenance
Milestone

Comments

@annatuma
Copy link
Contributor

Sketchfab has over 250,000 CC-licensed images, many from GLAM institutions. We'd like to prioritize integration with them at this time.

API info:
https://docs.sketchfab.com/data-api/v3/index.html#/

Per our contact, once you have created a user account you're able to apply for an API key. If that isn't the case, we have a contact to quickly connect with for access.

@annatuma annatuma created this issue from a note in Active Sprint (Ticket Work Required) Jan 10, 2020
@annatuma annatuma added this to To Be Prioritized in Backlog via automation Jan 10, 2020
@annatuma annatuma moved this from To Be Prioritized to Next Sprint in Backlog Jan 10, 2020
@annatuma annatuma removed this from Ticket Work Required in Active Sprint Jan 10, 2020
@annatuma annatuma added this to Prioritized in CC Catalog Pipeline Jan 13, 2020
@annatuma annatuma added this to Ready for Development in Active Sprint via automation Jan 24, 2020
@annatuma annatuma removed this from Next Sprint in Backlog Jan 24, 2020
@akshgpt7
Copy link
Contributor

Are only CC-licensed images to be fetched through this API integration?

@mathemancer
Copy link
Contributor

@akshgpt7 That is correct. I should work on this ticket to reflect that. I'll also mark this as in progress, since it's on my plate for this sprint (i.e., I'll be the one working on it).

@mathemancer mathemancer moved this from Ready for Development to In Progress in Active Sprint Feb 20, 2020
@mathemancer
Copy link
Contributor

Marking this as 'blocked' until we figure out how to proceed regarding the fact that it doesn't seem possible to systematically pull their entire collection via some sequence of API calls.

@mathemancer mathemancer moved this from In Progress to Ticket Work Required in Active Sprint Feb 25, 2020
@akshgpt7
Copy link
Contributor

akshgpt7 commented Mar 5, 2020

@mathemancer I think we can pull the required data using this way:

The https://api.sketchfab.com/v3/search?type=models&license=cc0 endpoint returns the various models. For each model, on calling the endpoint in the uri field, we get the metadata for that particular model, which we can easily extract.
(In the initial endpoint, we can replace cc0 by by, by-sa, by-nd, by-nc, by-nc-sa, by-nc-nd to get different licensed models)
So, we can either take the license URL from the license field in the response, otherwise, we already know it by the endpoint we're calling. For example https://api.sketchfab.com/v3/search?type=models&license=by-sa responses will only contain BY-SA licenses.

@mathemancer
Copy link
Contributor

@akshgpt7 Some context: There's a technical limitation in their API that means it's impossible to obtain more than 10,000 images per license that way. (That's actually the approach we tried initially). To see the script, check out the sketchfab_integration branch in this repo.

@kgodey kgodey removed this from Ticket Work Required in Active Sprint Mar 23, 2020
@kgodey kgodey added this to Pending Review in Backlog via automation Mar 23, 2020
@kgodey kgodey moved this from Pending Review to Q2 2020 in Backlog Mar 23, 2020
@annatuma annatuma added this to the 3D milestone May 8, 2020
@annatuma annatuma changed the title Sketchfab integration with CC Search [API Integration] Sketchfab Jun 4, 2020
@annatuma annatuma removed this from Q2 2020 in Backlog Jun 12, 2020
@kgodey kgodey added 🔒 staff only Restricted to CC staff members 🚧 status: blocked Blocked & therefore, not ready for work and removed CC staff only labels Sep 22, 2020
@cc-open-source-bot cc-open-source-bot added the 🏷 status: label work required Needs proper labelling before it can be worked on label Dec 2, 2020
@kgodey kgodey added this to [TEMPORARY] Deprioritize in Active Sprint Dec 2, 2020
@kgodey kgodey removed this from [TEMPORARY] Deprioritize in Active Sprint Dec 2, 2020
@kgodey kgodey added this to Pending Review in Backlog Dec 2, 2020
@kgodey kgodey added this to [TEMPORARY] Deprioritize in Active Sprint Dec 2, 2020
@kgodey kgodey removed this from [TEMPORARY] Deprioritize in Active Sprint Dec 2, 2020
@kgodey kgodey added this to [TEMPORARY] Deprioritize in Active Sprint Dec 2, 2020
@kgodey kgodey removed this from [TEMPORARY] Deprioritize in Active Sprint Dec 2, 2020
@kgodey kgodey added 🙅 status: discontinued Not suitable for work as repo is in maintenance and removed 🏷 status: label work required Needs proper labelling before it can be worked on 🚧 status: blocked Blocked & therefore, not ready for work labels Dec 16, 2020
@kgodey kgodey closed this as completed Dec 16, 2020
@kgodey kgodey moved this from Pending Review to Done in Backlog Dec 16, 2020
@TimidRobot TimidRobot removed this from New Integrations (Ready for Work) in CC Catalog Pipeline Jan 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔒 staff only Restricted to CC staff members 🙅 status: discontinued Not suitable for work as repo is in maintenance
Development

No branches or pull requests

5 participants