Skip to content

Examples

All examples are available in the examples/ directory and can be opened directly from the Arduino IDE via File → Examples → ESP32-HTTP-Client.

Example Description
CRUD Operations Full suite of REST methods (GET, POST, PUT, PATCH, DELETE) in a single sketch.
Struct <-> JSON Bi-directional C++ struct to JSON serialization and deserialization.
URL Parameters Dynamic path parameter replacement (/users/{id}) and query parameters.
Authentication Authenticating requests using Bearer / JWT, HTTP Basic Auth, and API Key headers.
Callbacks & Errors Request callbacks, timeouts, automatic retries, error handling, and runtime URL change.
Nested JSON Extracting deeply nested fields using dot-notation paths.
Array JSON Addressing specific elements of a JSON array by index.
Raw JSON Capturing entire objects or sub-arrays into an Arduino String.
Unix Timestamp Fetching a long Unix timestamp from a time API.
Custom Port Connecting to a server running on a non-standard port.