WooCommerce API
Overview
The WooCommerce REST API lets you read and manage data on any WordPress site running WooCommerce — including products, orders, customers, and coupons. It uses standard HTTP methods (GET, POST, PUT, DELETE) and returns JSON, making it easy to work with from any language. You authenticate with consumer key and consumer secret credentials generated in your WooCommerce settings.
Beginner Tip
Generate your API credentials from WooCommerce Settings Advanced REST API in your WordPress dashboard. Use HTTPS for all requests, since HTTP connections will be rejected by default.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from WooCommerce",
"description": "WooCommerce REST APIS to create, read, update, and delete data on wordpress website in JSON format",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
id Unique identifier for the product or order within WooCommerce. name Display name of the product. status Visibility status of the product, such as publish, draft, or private. price Current selling price of the product as a string (e.g., "29.99"). stock_status Indicates whether the product is instock, outofstock, or onbackorder. categories List of category objects (id and name) the product belongs to. Implementation Example
const url = "https://woocommerce.github.io/woocommerce-rest-api-docs/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Explore More
Similar APIs
View All →Best Buy
⭐ Beginner's PickThe Best Buy API gives you access to Best Buy's product catalog, store locations, pricing, and buying options in real time.
Dummy Products
Dummy Products provides programmatic access to an api to fetch dummy e-commerce products json data with placeholder images via REST API.
Lazada
The Lazada Open Platform API lets sellers and developers access Lazada's Southeast Asian marketplace to retrieve product data, manage orders, track seller performance metrics, and handle logistics.
Mercadolibre
⭐ Beginner's PickMercado Libre is the largest e-commerce marketplace in Latin America, and its API gives developers access to product listings, pricing, seller data, and order management across 18 countries.
Octopart
Octopart is an electronic component search engine, and its API gives you access to detailed part data including pricing from hundreds of distributors, stock availability, datasheets, and technical specifications.