De API weet niet wie er iets opvraagt. Unity, Unreal, een website of Bruno: zolang het adres en de JSON kloppen, maakt het niet uit.

Met Blueprint: VaRest

In Unreal doe je dit met de plugin VaRest. Daarmee roep je vanuit Blueprint elke API aan, dus ook die van jou op http://localhost:5050.

Tutorial:

https://dev.epicgames.com/community/learning/tutorials/l5J6/using-apis-in-unreal-engine-varest-plugin-tutorial-json-login-system

De plugin: VaRest op Fab

Met C++

Zonder plugin kan ook, want Unreal heeft een HTTP-module ingebouwd:

Tutorial: HTTP GET JSON request using REST API, stap voor stap met broncode op GitHub

Documentatie: De HTTP-module

Wil je het daarna als Blueprint-node kunnen aanroepen, kijk dan bij Async Blueprint Nodes van Tom Looman, die bij Epic werkte.