Thank you so much! I spend a few hours trying to figure out what I was doing wrong. And only your video gave me all the missing information. Incredibly grateful to you!!
If anyone encounters the issue that "Print String" prints empty, be sure that you use the correct "Get xxx Field" node. 'xxx' should represent the value in JSON, not the key. For example, if your JSON is like this; { "level": 3 } you use "Get Integer Field", however if your JSON is like this; { "level": "3" } then you should use "Get String Field". IDK if this is so obvious, but I had a confusing time figuring out. I was trying to use "Get String Field" to get an integer from a JSON, thinking the key is a string, then I realized all the keys are strings :d
Hello. I have a problem. I created a local server on WEB.API in Visual Studio, created a database on the server. With a GET request, I can display a table, it is displayed in JSON, as in your video. JSON strings from sites on the Internet work for me, but upon request to my server, the output is just "{}"
Hmm, might be out of my league since I have no experience with Visual Studio. Since internet JSON strings seem to work, my first thought is the WEB.API is doing something different from what VaREST expects.
@@bobthechemist Hey, thanks for the response! I get it to work by not using any kind of authentication, I've used an API that is called gsx2json which transforms any google sheet on a json object and than I process it inside Unreal
thanks this helped a lot can you show a tutorial on how to use it for login system ? like the totaly unreal channel guy did but I cant use his method as its outdated
Hey, thank you so much for the tutorial! Did have an additional question - is there a way for me to set headers for GET requests? (e.g. add authorization tokens in the header)
Hello , could you point me out in the right direction? I want to make a website from which I can retrieve json data form t to use in unreal and update that data from another source like a nodemcu device, do you know how or what to follow ?
If you're looking to post json data to a website and then retrieve that data in UE, io.adafruit.com/ might be a good (free) start. Note that this solution would be limited to a relatively low data refresh rate, but would teach the process.
Adafruit's IO tutorials are here: learn.adafruit.com/category/adafruit-io. As for "solution" I mean that the Adafruit IO only refreshes data a few times per minute, so you couldn't use this approach for things like real time positioning of enemies in a game.
@@bobthechemist ah no , all I want to do is retrieve a sensor data like humidity or temperature , send it to a website with a nodemcu and write it somwehre so that I could get it from Unreal with the Varest plugin and display the results ingame or have some other interaction there, the most I woul dlike to do it on a personal website but I have no idea how to make that to work and write/display json data there.
My other vid (th-cam.com/video/DifFzUQgVzo/w-d-xo.html) might be a tad helpful. It uses a particle to post data to the web which I grab in UE. The library would be different since I'm using a particle and not a nodemcu, so YMMV.
Excellent one! Easy to follow. I could land this watching it and it worked. Thanks for sharing it with us. Got a question if someone can help, please. So if my GET / POST request needs a user id and password, is there a technique to do this, please. Thanks
Thanks for the video. The documentation is indeed non-existent. While trying to do this for a call of my own, I came across two things that I'd like to point out (as a complete beginner!) : 1 - the Construct Json Object node is not needed for a GET. 2 - I used "Get Object Array Field" instead of "Get Array Field", so my item remained a Json Object (instead of a Json Value) and I did not need the "As Object" node. This alternate node comes with a warning though : "Use it only if you're sure that array is uniform!". Not sure if it's more exception-prone... Was it a conscious choice for you to go from Object to Value and back?
Good point to mention on #1 - I thought Call URL would need something tied to the Va Rest Json pin but if you're saying we can ignore that, excellent. #2 - The object/value/back approach is something I saw while searching for solutions. There is undoubtedly room for refactoring here.
Hey I'm building a game to collect real time data from the API of OpenStreetMaps to create a world like Pokemon Go! So let's say when a player opens and connects to GPS then it gets user location and it displays real time 3d vector tile maps generated through the API of OpenStreetMap. Any ideas how to do this?
Sounds like a cool project. There's a lot going on in that one sentence "connects to GPS...user location...real time 3d vector tile maps ... API of OpenStreetMap." Seems like you need to break the project down into chunks. I'd definitely explore the openstreetmap API thoroughly before proceeding. Not sure it has the features you're looking for.
@@bobthechemist hey super cool of you to reply, so the first thing is I need something to get me real time map data for the player from a server (like a real map of where the player is in the actual world) and accordingly I'll place my object in a co-ordinate near him so he goes out to collect that object for which he'll be definitely connecting to the mobile GPS. I hope it's clear. I am definitely a noob in UE4 so any help would be awesome.
@@0xnd90sjsnjdo0sbbo0 I have never searched for a web scraping plugin for unreal. If I were interested, my approach would be to see how the experimental Python coding in UE5 works and then use the webscraping libraries (e.g. BeautifulSoup) available in Python.
@@bobthechemist yes I saw it yesterday but that logic doesn't work for me, probably due to my json that is an array of items and each item has a 5 variables ( I think that i do wrong the "make Json node" can you help me? ^_^
Still waiting for someone to gift me a HoloLens 2, so I don't know for sure :-). My intuition tells me that if the HoloLens 2 can handle network traffic, then it can handle this plugin.
@@bobthechemist Hi Bob, No worries at all !! But this was a great tutorial, I tried it in HoloLens 2 and it worked flawlessly 😄thank you so much for ur efforts into the content that literally saves the day! Cheers!
I'm not sure that is possible - it might have something to do with the way UE4 deals with JSON. Searching for top-level arrays will give you some ideas on how to create blueprints for adding a name to an unnamed array.
See this (cdn.discordapp.com/attachments/778039738459488256/782265326850015272/unknown.png) You want to use the Make JSON node and pass that output to a Set Request Object node.
Finally An updated VaRest Tutorial. lets GOOOOOOOOOOOOOOOOO.
Thank you so much! I spend a few hours trying to figure out what I was doing wrong. And only your video gave me all the missing information. Incredibly grateful to you!!
I'm glad it helped.
Saw your comment on an older video. Thank you for the help
MAN YOU GOT ME A FULL TIME JOB JUST BECAUSE OF THIS VIDEO YOU LEGEND!!!!!!!!!!
Nice! Congrats. I hope you get a chance to make cool stuff.
You my friend, are a lifesaver, I've been struggling with a login system for months, and following up this tutorial I was able to make it work
Awesome! Glad it worked for you.
Hi, hey, how would I upload my own .JSON file to the wep?
How do I add a header to the query before sending it? (token for authentication)
If anyone encounters the issue that "Print String" prints empty, be sure that you use the correct "Get xxx Field" node. 'xxx' should represent the value in JSON, not the key.
For example, if your JSON is like this;
{ "level": 3 }
you use "Get Integer Field", however if your JSON is like this;
{ "level": "3" }
then you should use "Get String Field".
IDK if this is so obvious, but I had a confusing time figuring out. I was trying to use "Get String Field" to get an integer from a JSON, thinking the key is a string, then I realized all the keys are strings :d
this is good to know, I found that print string while doesnt show in unreal engine running, it does show it in the text logs
so how can i call 'temp'?
How to use Set Header from Varest plugin?
I don’t know how to insert x-api-key to Varest
Hii I'm currently using UE 5.2. I'm not able to get Text Render to set it to Set Text. Can you help me with this.
not working, array[0] is always None (empty array)
how can i get json file with Path? not URL! Any advices?
Hello. I have a problem. I created a local server on WEB.API in Visual Studio, created a database on the server. With a GET request, I can display a table, it is displayed in JSON, as in your video. JSON strings from sites on the Internet work for me, but upon request to my server, the output is just "{}"
Hmm, might be out of my league since I have no experience with Visual Studio. Since internet JSON strings seem to work, my first thought is the WEB.API is doing something different from what VaREST expects.
There's a way to use an Oauth2 access token on these GET requests? I'm asking because I need to get data from a google forms responses
If there is, I don't know about it. Semester is almost over and I'll be able to play with UE again....
@@bobthechemist Hey, thanks for the response! I get it to work by not using any kind of authentication, I've used an API that is called gsx2json which transforms any google sheet on a json object and than I process it inside Unreal
cant find the last step text (render) anymore....on unreal 5
maybe is there a workaround?
Good to know. I plan to check out UE5 this summer and will keep an eye out for this problem.
thanks this helped a lot can you show a tutorial on how to use it for login system ? like the totaly unreal channel guy did but I cant use his method as its outdated
I'll see what I can do; middle of the semester so I have to do chemistry videos right now...
Hey, thank you so much for the tutorial! Did have an additional question - is there a way for me to set headers for GET requests? (e.g. add authorization tokens in the header)
I'm sure the answer is yes, but I haven't worked through it yet.
@@bobthechemist Any direction would be very helpful. Thanks
Finally I like this video. Can I ask you something? how if i want to display data from api directly or realtime data into 3D text?
Certainly possible, last time I used 3D text was when it was unstable, so I'm not the person to ask for that part.
Hello , could you point me out in the right direction? I want to make a website from which I can retrieve json data form t to use in unreal and update that data from another source like a nodemcu device, do you know how or what to follow ?
If you're looking to post json data to a website and then retrieve that data in UE, io.adafruit.com/ might be a good (free) start. Note that this solution would be limited to a relatively low data refresh rate, but would teach the process.
@@bobthechemist Sorry what solution ? I only see the adafruit website mainpage? you meant a specific tutorial there?
Adafruit's IO tutorials are here: learn.adafruit.com/category/adafruit-io. As for "solution" I mean that the Adafruit IO only refreshes data a few times per minute, so you couldn't use this approach for things like real time positioning of enemies in a game.
@@bobthechemist ah no , all I want to do is retrieve a sensor data like humidity or temperature , send it to a website with a nodemcu and write it somwehre so that I could get it from Unreal with the Varest plugin and display the results ingame or have some other interaction there, the most I woul dlike to do it on a personal website but I have no idea how to make that to work and write/display json data there.
My other vid (th-cam.com/video/DifFzUQgVzo/w-d-xo.html) might be a tad helpful. It uses a particle to post data to the web which I grab in UE. The library would be different since I'm using a particle and not a nodemcu, so YMMV.
Excellent one! Easy to follow. I could land this watching it and it worked. Thanks for sharing it with us. Got a question if someone can help, please. So if my GET / POST request needs a user id and password, is there a technique to do this, please. Thanks
Thanks for the video. The documentation is indeed non-existent.
While trying to do this for a call of my own, I came across two things that I'd like to point out (as a complete beginner!) :
1 - the Construct Json Object node is not needed for a GET.
2 - I used "Get Object Array Field" instead of "Get Array Field", so my item remained a Json Object (instead of a Json Value) and I did not need the "As Object" node. This alternate node comes with a warning though : "Use it only if you're sure that array is uniform!". Not sure if it's more exception-prone... Was it a conscious choice for you to go from Object to Value and back?
Good point to mention on #1 - I thought Call URL would need something tied to the Va Rest Json pin but if you're saying we can ignore that, excellent. #2 - The object/value/back approach is something I saw while searching for solutions. There is undoubtedly room for refactoring here.
Hey I'm building a game to collect real time data from the API of OpenStreetMaps to create a world like Pokemon Go! So let's say when a player opens and connects to GPS then it gets user location and it displays real time 3d vector tile maps generated through the API of OpenStreetMap. Any ideas how to do this?
Sounds like a cool project. There's a lot going on in that one sentence "connects to GPS...user location...real time 3d vector tile maps ... API of OpenStreetMap." Seems like you need to break the project down into chunks. I'd definitely explore the openstreetmap API thoroughly before proceeding. Not sure it has the features you're looking for.
@@bobthechemist hey super cool of you to reply, so the first thing is I need something to get me real time map data for the player from a server (like a real map of where the player is in the actual world) and accordingly I'll place my object in a co-ordinate near him so he goes out to collect that object for which he'll be definitely connecting to the mobile GPS. I hope it's clear. I am definitely a noob in UE4 so any help would be awesome.
Do you know, how to conect to local host data base ???
I haven't done that, and it's probably out of scope for VaREST. Have you seen this? th-cam.com/video/RRvzRxxUhcg/w-d-xo.html
What if I want to have information without api. E.g get price from an amazon item? Is this doable?
I don't think so with this plugin. It does not do generic web scraping.
@@bobthechemist how do you think I would get around this problem?
@@bobthechemist is there any other plugin that can do scraping inside unreal?
@@0xnd90sjsnjdo0sbbo0 I have never searched for a web scraping plugin for unreal. If I were interested, my approach would be to see how the experimental Python coding in UE5 works and then use the webscraping libraries (e.g. BeautifulSoup) available in Python.
wonderful example, easy to follow!
Glad it was helpful!
Thanks from Paris
Is it also possible to set things with this plugin via REST?
Yes, vaREST allows for POST operations. I've linked to my other video in the comments below, and that video provides an example.
Hi there! Thank you for this tutorial! Did you known how can I do the inverse process in order to set the json fields from ue4 to the website?
I've also got a video on POST. Is that perhaps what you're looking for? th-cam.com/video/DifFzUQgVzo/w-d-xo.html
@@bobthechemist yes I saw it yesterday but that logic doesn't work for me, probably due to my json that is an array of items and each item has a 5 variables ( I think that i do wrong the "make Json node" can you help me? ^_^
@@michelecommisso4824 I'll look at that node again and see. It's been on my list of things to do, but school has gotten in the way :-)
Will this work with HoloLens 2? If yes what’s the configuration that’s needed ?
Still waiting for someone to gift me a HoloLens 2, so I don't know for sure :-). My intuition tells me that if the HoloLens 2 can handle network traffic, then it can handle this plugin.
@@bobthechemist Hi Bob, No worries at all !! But this was a great tutorial, I tried it in HoloLens 2 and it worked flawlessly 😄thank you so much for ur efforts into the content that literally saves the day! Cheers!
Awesome! Glad it worked. Good luck with the project.
Thank you for this tutorial. How can I access to an unnamed array?
I'm not sure that is possible - it might have something to do with the way UE4 deals with JSON. Searching for top-level arrays will give you some ideas on how to create blueprints for adding a name to an unnamed array.
Hello
BoB LeSuer! Thanks for this tutorial, Please how do I add variables as parameters to the URL?
See this (cdn.discordapp.com/attachments/778039738459488256/782265326850015272/unknown.png) You want to use the Make JSON node and pass that output to a Set Request Object node.
Thanks, that helps.. Can you make a POST tutorial also?
This is what I've done for POST so far: th-cam.com/video/DifFzUQgVzo/w-d-xo.html
Simple, clear efficient!
Glad it helped!
can you make me a tutorial connect php mysql unreal engine
I'd love to, but I haven't done any PHP programming, so I'm not the best person to follow for that task.
Thank you so much!
Glad it helped!
that's useful to me! thx
Thank you!)
Thank you!!!!!
Thankyou :)
Thanks!
Thanks!!!!