Sketchfab for Developers
oEmbed
Sketchfab implements the oEmbed protocol to allow seamless embedding of any model on any website.
Our oEmbed endpoint is https://sketchfab.com/oembed
.
Parameters
-
url: mandatory, URL of the model page:
https://sketchfab.com/models/*
where * is the ID of the model you wish to embed. - maxwidth: optional, maximum width of the returned viewer.
- maxheight: optional, maximum height of the returned viewer.
The oEmbed endpoint will always return a viewer with an aspect ratio of 16:9, regardless of the maxheight and maxwidth parameters.
Response
A JSON response will be returned. Insert the html
attribute of the response where you want your model to be embedded.
Playlists
The oEmbed endpoint can also be used to embed Playlists.