WordPress Extended icon

WordPress Extended

WordPress REST API with Custom Post Types, ACF and Meta Fields

Actions17

User → Get

AI-generated

Summary

Retrieves a single user record from WordPress based on the provided user ID.

Inputs

  • userId (required) — Unique identifier for the user to retrieve.
  • options — Optional parameters to control the request scope and authentication.

Output shape

a single item containing the user object

The 'context' option in 'options' controls which fields are included in the response (view, embed, or edit).

Examples

Example 1: Fetch a user profile by ID

Set 'User ID' to '1' and 'Context' to 'view'.

Links

Discussion