Download
Download a project (With authentication)
POST
https://sketchub.in/api/v2/download_project.php
This endpoint will allow users to download any public project, or their own private project.
No matter what file type is uploaded, it will download as zip.
The link generated by this endpoint is cleared every 24 hours.
Body
uid
number
User ID
project_id
number
Project ID
email
string
password
string
api_key
string
Your API key
Response
Download a project (Without authentication)
POST
https://sketchub.in/api/v2/download_project_guest.php
This endpoint will give access to public projects only, but it requires one of the following: hcaptcha_response
or access_token
Body
project_id
number
Project ID
hcaptcha_response
(optional)
string
Token by hCaptcha.
access_token
(optional)
string
Response
If the above response have new_access_token, you can use it instead of hcaptcha_response in next download request within 24 hours.
In above response new_access_token might be missing, it happens when you reaches token usage limit. To get the new token, you should pass hcaptcha_response in next download request.
How access token works in project downloading?
-> You provide hcatpcha_token and project id <- Server provides you access_token (10) and project download link -> You dont need to solve hcaptcha again and again, just provide the access_token (10) and another project id <- Server provides you access_token (9) and project download link -> You provide access_token (8) and another project id <- Server provides you access_token (7) and project download link ... and so on ... <- Server provides you access_token (1) and project download link -> You provide access_token (1) and another project id <- Server provides you project download link only (in next request, provide hcaptcha_token again)
Please note that in above example, the numbers mean the number of series you can use the tokens (10 by default), once you reach the usage limit, it will not bounce back new token, and you will need to solve captcha again.
This method was founded for avoiding user to solve captcha everytime when they downloads the project. Perhaps, they only need to solve it once after 10 downloads in a day.
Last updated
Was this helpful?