This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Markus Smet
Posted Feb 18 - Read on Facebook

Hey All - looking for articles/tutorial on using an API to add data into a Framer project. An example API is https://randomuser.me/ - but how do I access that because the default doesn't work when added to Framer...

$.ajax({
url: 'https://randomuser.me/api/',
dataType: 'json',
success: function(data){
console.log(data);
}
});

4 Comments

Chris Camargo

You're using a jQuery method ($.ajax). I don't believe jQuery is built in to FramerJS. You'd need to add it to the index file yourself.

Markus Smet

Hey Chris Camargo thanks for your answer... I think there's a Util.???? that can help so I wouldn't need JQuery but I couldn't find anything on that?

Chris Camargo

I don't believe there's a utility function that will replace jQuery functionality.

Markus Smet

Found what I was looking for inside this project http://share.framerjs.com/u35l5iq3zd75/

allUsers = JSON.parse(Utils.domLoadDataSync("http://api.randomuser.me/?gender=female&results=28"))

Read the entire post on Facebook