Import Films or Serials via API

Hello. How I can add films from another source via API? Thanks.

Plex is looking at media files. No other “sources” are possible.

Or do you mean something like this?