Open AI Codex Generating API Calls - So Impressed!

I was recently invited to the BETA and have playing with the codex-javascript-sandbox. At first I wanted to see if it could make the same calculator I made in C++ years ago (it could). Then I did a bunch of goofy games and stuff.

Then I started to wonder about API calls. And I think this is the best tool I have ever seen (yet) at helping people make such connections (please correct me if I am wrong).

Of course we need to use open APIs without tokens.

So I used the following API from Dog API

I typed in: make an api call to:
then: display image from console

It didn’t display until I opened in JSFiddle.

However, I kept doing it and it started displaying in playground.

Then I started changing things up.

make an api call to a popular dog api
show me the dog picture

That worked.

I played with the ISS API and it seems to have more trouble with multiple JSON objects.

I am very interested in exploring this more. Has anyone had success with this?

If this Codex could recognize JSON objects that would be life changing. It already feels life changing.

I am so happy to be a part of this.


Made some progress…

From the ISS API:

make an api call to: and then display the json object “latitude” value

var xhr = new XMLHttpRequest();‘GET’, ‘’, true);
xhr.onload = function() {
var data = JSON.parse(this.response);
var latitude = data.latitude;
var latitudeDiv = document.createElement(‘div’);
latitudeDiv.innerHTML = latitude;

display data from latitudediv


The codex can recognize individual JSON object data you just have to be specific.

For people like me that work at start up companies that use an in house “source of truth” database and then tools like iOS, Android, Zendesk, Iterable, MixPanel, etc… all of these tools talk to each other through API calls. I am not an engineer. However, I do have to know enough to make a call between Zendesk and Iterable because I can’t ask an engineer to do it. And, I wish I knew enough to create events that could trigger calls.

For me this is a huge leap forward to empowering small businesses. Almost a year ago I was wishing for something like this because I couldn’t figure out how to display text in html via javascript after I made an html call.

Again, I feel so thankful.