Skip to content
pubscout

wp_json_api

5.0.2, released 6 weeks ago by woosignal.com

WordPress and WooCommerce JSON API client for user authentication, management, and customer data.

$ flutter pub add wp_json_api
Source repository

What it does

Connects Flutter applications to WordPress and WooCommerce backends using the WP JSON API plugin. It handles user sign up, login, profile management, WooCommerce customer data, and points/rewards.

AI-written summary of version 5.0.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building a Flutter app backed by a WordPress or WooCommerce site using the WP JSON API plugin.
  • You need standard user authentication (login, register, reset password) with a WordPress backend.
  • You need to fetch or update WooCommerce customer info and loyalty points.

Skip it when

  • Your backend is not WordPress or WooCommerce.
  • You are using a WordPress plugin version older than 5.0 (unless you stay on older package versions).

Strengths

  • Provides typed exceptions for specific WordPress REST API error codes.
  • Built-in secure token storage and session management.
  • Supports WooCommerce customer details and Points and Rewards.

Weaknesses

  • Tightly coupled to a specific WordPress plugin (WP JSON API 5.0+).
  • Admin actions and role updates must be managed server-side.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
4

Requires installing the WP JSON API plugin (version 5.0 or later) on your WordPress site.

import 'package:wp_json_api/wp_json_api.dart';

void main() {
  WPJsonAPI.instance.init(baseUrl: "https://mysite.com");
}

Works with

Packages commonly used together with wp_json_api: ones it builds on, ones built on it, and its own family.