= Best Web Hosting Platform that could run Python to Display the Results of API Requests =

![ ](httpswww.redditstatic.com/desktop2x/img/renderTimingPixel.png)

I'm trying to build a website that displays the results of a request to a cross-origin API. I originally wrote the code using http.client, and then I tried to rewrite it in javascript, html, and css so I could host it for free on github pages. The problem is that because of CORS I couldn't modify the request headers like 'Origin', 'Referrer', or 'Cookie' in the way I can in my python http request. I'm on a limited budget, with limited experience, and I'm wondering what the best solution is for running my python http requests on a server and displaying the results on a website. Ultimately the site is pretty simple, a 'GET' request is made to get an authtoken, then 'GET' requests are made to fetch court data based on an identifying number, then I want to display the 'JSON' data in tables so it is easy for people who can't write their own http requests to access this data. Any help is much appreciated.

![ ](httpswww.redditstatic.com/desktop2x/img/renderTimingPixel.png)

Probably the easiest is pythonanywhere.com and you might find the free plan is sufficient for your needs. This has Python and server already set up for you.

My personal preference is to use digitalocean.com with a capped $5 per month

*droplet* to host multiple docker containers which I use to host various Python based services. Heroku is similar.

Thanks for your reply, I'm curious how I could then integrate such a service with a static page. Say my Python service creates a case object with name, judge, hearing attributes, how could I then add this data on a static html page. Please feel free to reference a good resource for me to read if there is one. I also tried writing the site in Brython, but I ran in to similar issues. Really I want to get the input from the html form, send that to my python script, and use the output of the python script to populate various html elements.

== About Community ==

Members

Online