The REST API is a way for other programs to read and change the content of a WordPress site over the web, by sending requests to addresses under /wp-json/. Open andersnoren.se/wp-json/wp/v2/posts, for example, and you’ll get the latest posts on this site as JSON, a plain text format that programs can read.
It has been part of WordPress since version 4.7, and much of WordPress now depends on it. The block editor uses it to load and save everything you edit, and so do many plugins, apps and headless sites, which use WordPress to manage content but show it with a front end of their own. It has replaced most of what XML-RPC was used for.
Anyone can read public content, like published posts and pages, but changing anything requires being logged in. Inside WordPress, that’s taken care of for you. Apps and services outside it usually log in with an Application Password, which you create under “Users” → “Profile”.
Some security guides suggest turning the REST API off. Since the block editor depends on it, that usually breaks more than it protects, and limiting what logged-out visitors can see is a safer middle ground. If your site uses plain permalinks, the REST API lives at ?rest_route= instead of /wp-json/.