#: Integrating Files via the WordPress REST API

The "External Files in the Media Library" plugin allows you to use files from various external sources, including via the WordPress REST API. The steps to do this are described below.

## Using Files from Another WordPress Project

With the REST API, WordPress offers an excellent way to access data from other projects. This API also includes data for files in the media library. This allows the "External Files in the Media Library" plugin to access these files and integrate them into your own project.

### Establishing a Connection

1. Go to Media Library &gt; Add External Files and select "WordPress REST API."
2. In the form, enter the URL of the WordPress project whose REST API you want to access.
3. Submit the form to view a list of the files.

## Importing and Using Files

You can then import the listed files into the Media Library. Whether these are linked externally or actually imported depends on the [file type settings](https://plugins when using the REST API as a source.thomaszwirner.de/external-files-in-the-media-library/file-type-settings/).

## FAQ

I can’t access the project’s REST API—why? The website you specified must provide a public feed of the media library files via the REST API. By default, this is the case in WordPress. However, security plugins might make access difficult. If you’re unable to establish a connection, please contact the operator of the project you’re trying to access.

The project’s REST API doesn’t use SEO-friendly URLs—is that a drawback? No, the plugin automatically detects which URL is used by the external project.