It is not possible to run the API across multiple pages on the local server.
However, if you place these files on the local network instead of the local ones, then you should be able to train the extractor on the pages hosted and subsequently publish the API.
Here are some free web hosts you could try.
If you are familiar with AWS, you can also use s3 static hosting
source share