Access to API hosted on local server

Dear all,

Could you confirm me this isn’t possible to call an API hosted on a local server (intranet) ?

I have good result with POSTMAN, but, it’ll seem that API CONNECTOR from Bubble use their servers externalised.

Thank you for your help.

Benoît.

2 Likes

The API calls are made via Bubble’s servers, hence an API on a local server would not be accessible by the API Connector.

What you could do is to instead create a Bubble plugin which would run client side (on the users browser) and hence would be able to access the local server’s APIs

After that you could pass the data fetched by the Bubble plugin onto your Bubble workflows.

Has anyone managed to do this? I am encountering the same issue now as well and would love to know if anyone has a workaround or has actually made a plugin to do this…

2 Likes

3 years later? Anyone?

1 Like

You could use some tools, such as ngrok. It will expose your localhost as a public domain.
However, for a fixed domain, you could take a look at paid plans or some other tools
With ngrok, steps are simplified as

  • run your local server at port 6969 (for example)
  • expose that port via ngrok: ngrok http 6969

Ngrok is suitable for the above case, specifically when you’re developing some cool ideas. However, about the long term, you should bring your code to real servers

1 Like

You need to expose your local server with a secure tunnel.
There is plenty of services and articles you can find with a quick search (for example this this article or this tweet)

1 Like