You’ll want to create a new instance of Axios with a custom config for each API you want that has a distinct baseURL
.
var instance = axios.create({
baseURL: 'https://example.com/api/',
timeout: 1000,
headers: {'X-Custom-Header': 'foobar'}
});