Miscellaneous URLs#

Iframe view for contents and directories#

A subset of Software Heritage objects (contents and directories) can be embedded in external websites through the use of iframes. A dedicated endpoint serving a minimalist Web UI is available for that use case.

GET /embed/(swhid)/#

Endpoint to embed Software Heritage objects in external websites using an iframe.

Status Codes:
  • 200 OK – no error

  • 400 Bad Request – the provided identifier is malformed or the object type is not supported by the view

  • 404 Not Found – requested object cannot be found in the archive


By adding HTML code similar to the one below in a web page,

<iframe style="width: 100%; height: 500px; border: 1px solid rgba(0, 0, 0, 0.125);"

you will obtain the following rendering.