Plugin Documentation

FetchAPI
A Fetch-API-inspired HTTP client

An HTTP client modelled on the web Fetch API: Fetch / FetchJson return a chainable request with OnText / OnJson / OnError callbacks, plus a simple JSON value/object API.

v1.0.0
UE 4.27–5.0+
Win64 · Win32 · Mac · iOS · Android · PS4 · XboxOne
Category Network
Alpha XP
FetchAPI diagram
FetchAPI — architecture & feature overview

Overview

FetchAPI mirrors the familiar JavaScript Fetch API. Call Fetch or FetchJson with a URL and options, then chain On Text / On Json / On Error. A small SimpleJson API reads and builds JSON.

Fork note Module Fetch was renamed to FetchAPI (and the mount point /Fetch//FetchAPI/) for UE 4.27–5.0+; CoreRedirects keep existing assets loading. URL/query and status-code helpers were added.

Requirements

RequirementDetails
Unreal Engine4.27–5.0+
LanguageBlueprints and/or C++
PlatformsWin64 · Win32 · Mac · iOS · Android · PS4 · XboxOne

Installation

  1. Copy the FetchAPI folder into your project's Plugins/ directory.
  2. C++ projects: regenerate project files and build. Blueprint-only projects can launch the editor directly.
  3. Open Edit → Plugins and confirm FetchAPI is enabled.

Core (UFetchAPI)

NodeTypeDescription
Fetch / Fetch JsonCallableStart a request; returns a chainable request object.
On Text / On Json / On ErrorCallableBind response/ error callbacks on the request.
Make Basic Auth Header / Make OAuth HeaderPureAuthorization header structs.

URL & status helpers

NodeTypeDescription
Url Encode / Url DecodePurePercent-encode & decode a value.
Append Query StringPureAppend URL-encoded query parameters, choosing ?/&.
Is Status Code SuccessPureTrue for any 2xx response.
Is Valid UrlPureValidate an absolute http(s) URL with a host.

Utility node pack

General-purpose networking utilities added to UFetchAPI — available from Blueprints and C++.

NodeTypeDescription
CRC32 Of BytesPureCRC32 checksum of a byte array.
MD5 Of String / SHA1 Of StringPureHex digests of a UTF-8 string.
Make Guid StringPureNew random GUID (hyphenated).
Now Unix SecondsPureCurrent UTC time as Unix seconds.
Unix Seconds To ISO8601PureUnix seconds → ISO-8601 UTC string.
Format Byte SizePureHuman-readable size, e.g. 1536 → 1.5 KB.
Random TokenPureRandom alphanumeric token (ids, nonces).
XOR Bytes With KeyPureXOR bytes with a repeating key (obfuscation, not encryption).
Is Valid HostnamePureRFC-952/1123-style hostname validation.

Credits

© Alpha XPalphaxp.net. Developed and maintained for UE 4.27–5.0+.