Scratch

From Archiveteam
Jump to navigation Jump to search

Scratch is 'a high-level block-based visual programming language and website aimed primarily at children as an educational tool for programming'[1].

In May 2022, it was rumoured that unshared projects, previously accessible through the API and thereby with third-party client alternatives, would likely be made private soon.[2]

It is possible to download public projects through the API[3].

Technical details

  • Website (official client): https://scratch.mit.edu/[IAWcite.todayMemWeb]
  • API: projects.scratch.mit.edu
    • https://projects.scratch.mit.edu/ID returns the data for a project. It can be either a JSON response with references to assets (hosted on assets.scratch.mit.edu) or, for old projects up to ID 3.8 million or so, a binary file that includes the assets. IDs are decimal and go to around 690 million as of late May 2022.
    • Fetching a project file through the API will download the file in the contemporary format it was uploaded to the website (.sb, .sb2 for pre-Scratch 3 projects). This is unlike manually downloading a project through the website interface which automatically convert project files in .sb3.

References