WooCommerce API Client for TypeScript
Platform-agnostic TypeScript client for the WooCommerce Store API and Admin API.
Install
pnpm add @atomic-solutions/woocommerce-utils Fetch products without React
import { createStoreClient } from '@atomic-solutions/woocommerce-utils'
const store = createStoreClient({
baseURL: 'https://your-site.com/wp-json',
})
const products = await store.products.list({ per_page: 12, category: 'shoes' })
// products is typed: WCProduct[] What's included
- Store API client — products, cart, checkout, orders (public-facing)
- Admin API client — orders, customers, reports, settings (server-side use)
- Full TypeScript — all response shapes typed via Zod schemas
- Works in Node.js, browsers, and React Native
Use this if you need the raw client
If you're in a React app, consider @atomic-solutions/react-woocommerce instead — it wraps this client with React Query hooks so you get caching and the analytics event system for free.
Need help shipping this in production?
Atomic Solutions builds headless WooCommerce storefronts for clients. Get in touch →