Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

borozu's avatar

How to display API fetched data

Hi, Can please someone help me with very basic example how to display fetched API data from: http://ip-api.com/json/

Like few steps to follow how to do it?

I would like to insert API data in fresh project welcome.blade.php view. Just to get it working

0 likes
3 replies
jaseofspades88's avatar

Is there any documentation for the endpoint? If so then follow that.

jlrdw's avatar

Or are you saying you don't know how to iterate through json data.

If that is the case, there are many past post on how to do this. Myself and others have given examples.

Please or to participate in this conversation.