🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Conta Get it free
CoCart – Headless REST API for WooCommerce icon
Manutenção ativamente Testado com WP 7.1 #18 in cart Livre

CoCart – Headless REST API for WooCommerce

Ship your headless WooCommerce storefront faster. CoCart is the REST API built for Next.js, React, Vue, and any modern frontend — developer-first.

Instalações ativas900+100+ nível
Downloads · 30d1.2K▼ -1.2% vs prev. 30d
Classificação4.9/521 comentários
Pontuação da saúde83/100Excelente
Downloads de todos os tempos104KSince Feb 2018
Suporte resolvido—Sem tópicos recentes
RequerWP 6.7Php 7.4+
Downloads · 7d288▲ +5.1% week over week
Nosso veredicto

Escolha segura

Yes — CoCart is a safe, well-maintained plugin to use in 2026. It runs on 900+ sites, is rated 4.9/5 and was last updated 2 months ago, and scores 83/100 on our health check.

  • Loved by users — 4.9/5 from 21 reviews
  • Testado com as últimas WordPress (7.1)
  • Pequena base de usuários (900+ instalações ativas)

Como ele se acumula?

Lado a lado em instalações, atualizações, avaliações e suporte

Downloads diários

50100150Sep 6Oct 20Dec 4
Ontem44
Média diária (1y)31
Dia de pico201Aug 24, 2026
Últimos 12 meses11.4K

Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.

Rankings

Where CoCart stands today

WordPress.org Classificações de pesquisa

Posição ao vivo na pesquisa de plugins, top 100
Palavra chavePosiçãoPlugins concorrentesCategoria
cart >100 8,978 Best cart plugins →
decoupled #4 158 Best decoupled plugins →
headless #2 616 Best headless plugins →
rest-api #10 10,000 Best rest-api plugins →
WooCommerce >100 10,000 Os melhores plugins do WooCommerce →

Adoção da versão

Compartilhamento de sites ativos por lançamento.

  • 4.955.5%
  • 4.819.2%
  • 3.99.2%
  • Outros16.1%

Divisão de classificação

★★★★★★★★★★ 4.9 from 21 reviews

  • 5★95.2%
  • 4★0.00%
  • 3★0.00%
  • 2★4.8%
  • 1★0.00%

About CoCart

From the official readme · v4.9.7

Descrição

You’ve chosen WooCommerce for your store. Now you want a modern frontend — React, Next.js, Astro, Vue — without being locked into WordPress themes. That’s exactly what CoCart is built for.

CoCart gives WooCommerce a proper frontend REST API: cookie-less session management built for stateless frontends, authentication that makes sense, and CORS support built-in. Cart sessions, authentication, and product data. Scale up when you’re ready.

In active development since 2018, with a ★4.9/5 rating from the developers who build headless stores with it every day.

🚀 Make your first API call in 2 minutes

Install CoCart and you’re immediately ready to call the API — no setup required:

curl -X POST https://your-store.com/wp-json/cocart/v2/cart/add-item \
  -H "Content-Type: application/json" \
  -d '{"id": "123", "quantity": 1}'

Want to explore before installing? Try a free sandbox →

See the full API reference →

💬 Loved by 1,000+ developers worldwide

Rated ★★★★★ 4.9/5 on WordPress.org.

★★★★★

“An excellent plugin, which makes building a headless WooCommerce experience a breeze. Easy to use, nearly zero setup time.” — Harald Schneider

★★★★★

“This plugin works great out of the box for adding products to the cart via API. The code is solid and functionality is as expected, thanks Sebastien!” — Scott Bolinger, Creator of Holler Box

★★★★★

“Thanks for doing such great work with this! Works exactly as expected and CoCart seems to have a nice community around it. The founder seems really devoted and that’s one of the key things for a plugin like this to live on and get the right updates in the future. We just got ourselves the lifetime subscription.” — Mighty Group Agency

See our full wall of love for more developer testimonials.

Why CoCart?

WooCommerce’s Store API can be used headless, but it was designed for the Gutenberg block editor ecosystem. Its session model relies on nonces passed via response headers — suited for anonymous single-session shoppers, but the nonce is tied to WordPress’s nonce lifecycle and less straightforward to persist across sessions or devices.

CoCart is purpose-built for headless from day one: cart sessions identified by a persistent key — no nonces, no cookies — a single unified endpoint set for both product and cart data, and authentication for customers that supports any shop requirement.

Recursos

🚀 Session management that works

  • 🔐 Cookie-less sessions — database-stored, built for concurrent requests and stateless frontends
  • 👤 Guest customer support — full cart session support for unauthenticated shoppers, no login required
  • 🔄 Load any session into checkout — hand off to WooCommerce’s native checkout with any payment gateway

🛒 Essential cart operations

  • ✅ Add, update, and remove items via simple POST/PUT/DELETE requests
  • 🔎 Product search — query by name, SKU, or ID, authenticated or not, with flexible filtering
  • 💸 Name Your Price support — donation-based and flexible pricing built in
  • 📦 Bulk cart requests — combine multiple operations into a single API call

💻 Developer experience, done right

  • 🔑 Flexible authentication — email, username, or phone login; no admin API keys to manage
  • 🌍 CORS support built in — first-party CORS handling; your frontend connects without configuration hell
  • 🧩 180+ filters — customize every response, add logic without writing new routes
  • 📊 Cart insights — monitor active, expiring, and expired sessions from the dashboard
  • 🛠 Works with your existing stack — built on WooCommerce Data Stores with familiar hooks for broad plugin compatibility

🎯 Battle-tested

  • Tested with every major WooCommerce release
  • Multisite compatible

Who builds with CoCart?

Frontend developers shipping storefronts in Next.js, React, Vue, Nuxt, Astro, Svelte, or Remix — keep WooCommerce as the commerce engine and own the entire frontend experience, from server components to fully static builds.

Mobile app developers building shopping apps in React Native, Flutter, Swift, or Kotlin — the same cart key works across devices, so a customer can start a cart on their phone and finish on the web.

Agencies delivering high-performance client storefronts — reuse one proven commerce backend across projects while every client gets a custom frontend, free of WordPress theme constraints.

Product teams going beyond the browser — progressive web apps with persistent carts, in-store kiosks, point-of-sale screens, even chat and voice commerce. Anywhere a customer can shop, CoCart can serve the cart.

Free vs. CoCart Plus

The free community version handles everything a headless cart needs: sessions, auth, CORS, cart operations, and product queries. It is actively maintained with security updates.

New features ship in CoCart Plus. When you’re ready to build a complete headless storefront — with coupons, shipping, fees, rate limiting, and checkout — Plus has you covered:

  • 🎫 Coupon Management — apply discounts and promo codes, boost conversions
  • 🚢 Shipping Calculations — real-time rates and method selection
  • 💰 Cart Fees — handling fees, rush charges, and custom pricing logic
  • 🥪 Advanced Batch API — multiple cart operations in a single request
  • 🕒 Rate Limiting — protect your API from abuse under load
  • 🧾 Checkout — complete orders with any WooCommerce-supported gateway (coming soon)
  • 💲 Subscription Support — new subscriptions and renewals (coming soon)

View CoCart Plus features and pricing →

👍 Add-ons

Free add-ons that extend the core:

SDKs & Tools

Official SDKs — authentication, session management, and cart operations out of the box:

  • cocart-js (TypeScript/JavaScript) — GitHub
  • cocart-php (PHP) — GitHub
  • cocart-python (Python) — GitHub
  • cocart-go (Go) — GitHub

More are also in development and look forward to your feedback.

Developer tools:

Need Support?

Free users: Post in the WordPress support forum or join the CoCart Discord community — a growing group of developers, agencies, and shop owners building headless stores together.

CoCart Plus customers receive priority support with faster response times.

Join the community on Discord →

More Information

💯 Credits

Developed and maintained by Sébastien Dumont
Founder of CoCart Headless, LLC.

Contributors & Developers

You can help translate “CoCart” into your language.

INTERESTED IN DEVELOPMENT?

Browse the code on GitHub, or follow the CoCart development blog for the latest development updates. You can also follow @cocartapi on Twitter to stay up to date about everything happening with CoCart.

Please share your experience

We’d love to hear what you have to say. Share your experience and help others discover CoCart. It helps to keep the plugin going strong, and is greatly appreciated.

Instalação

Requisitos mínimos

  • WordPress v6.7
  • WooCommerce v9.0
  • PHP v7.4

Recommended Requirements

  • WordPress v6.7 or higher.
  • WooCommerce v10.0 or higher.
  • PHP v8.2 or higher.

Instalação automática

Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t need to leave your web browser. To do an automatic install of CoCart, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.

In the search field type “CoCart” and click Search Plugins. Once you’ve found the plugin you can view details about it such as the point release, rating, and description. Most importantly of course, you can install it by simply clicking “Install Now”.

Instalação manual

The manual installation method involves downloading the plugin and uploading it to your web server via your favorite FTP application. The WordPress codex contains instructions on how to do this here.

Upgrading

Review the changelog before upgrading. CoCart follows Semver — MAJOR versions may contain breaking API changes.

Log de Changes

Security hardening for CoCart's REST authentication check. Update as soon as possible.

CoCart is open source and community-driven. Every release is tested, maintained, and published here on WordPress.org. Need more power? CoCart Plus unlocks advanced features and priority support.

v4.9.7 – 30th September, 2026

Security Patch

This release hardens how CoCart’s REST authentication check is scoped, ensuring WordPress’s own request verification is not bypassed on other REST endpoints. It is recommended that you update to this release as soon as possible.

  • REST API: Authentication error check now only applies to requests CoCart authenticated itself, so WordPress’s own nonce verification is no longer bypassed on other endpoints, including the batch endpoint. Reported by Naoki Kawahigashi.

v4.9.6 – 10th September, 2026

Improvement

Developer note: We don’t recommend using plain permalinks as it reduces the performance of lookup but we added support should it be the only option for you. e.g. ?rest_route=/cocart/v2/products

  • REST API: Recognize requests made via the ?rest_route= query parameter (plain permalinks).
  • WordPress Dashboard: Prevent enabling integrations without a loader module.

Compatibilidade

  • Tested with WooCommerce v11.1

v4.9.5 – 1st September, 2026

Security Patch

This release hardens how the cart session handler validates the cart key, however it is supplied — whether as a request parameter or via the header — ensuring a cart can only be loaded by the account it actually belongs to. It is recommended that you update to this release as soon as possible.

  • REST API: Session handler now verifies ownership of the requested cart key before loading cart data, regardless of whether it was supplied via parameter or header.

v4.9.4 – 24th August, 2026

[!IMPORTANT]
PHP 7.4 is once again the minimum requirement to install and use CoCart. While PHP 7.4, 8.0, and 8.1 are past end-of-life/security support, we recognize many hosts still run them, and we don’t want that to be a barrier to using CoCart. For the best performance and security, we still recommend running PHP 8.2 or later, but CoCart will continue to function correctly on 7.4+.

Alterar

  • Reverted PHP version to 7.4 as the minimum requirement to install and use CoCart.

v4.9.3 – 20th August, 2026

Alterar

  • REST API: Checks the product’s password directly rather than post_password_required() function.

Compatibilidade

  • Testado com WordPress 7.1

v4.9.2 – 12th August, 2026

Correções de bugs

  • REST API: Products that have password protection were still accessible. Now return as invalid ID when accessed directly and are excluded from results.

Compatibilidade

  • Tested with WooCommerce v11

Registro de change completo em WordPress.org →

Capturas de tela

The optional setup wizard gets your headless store configured in minutes.
The optional setup wizard gets your headless store configured in minutes.
Settings page — configure CORS, authentication, sessions, and features without touching code.
Settings page — configure CORS, authentication, sessions, and features without touching…
Integrations page — control which supported third-party plugins load during CoCart requests.
Integrations page — control which supported third-party plugins load during CoCart…

Para desenvolvedores

Este é o seu plugin? Mostre os números.

Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.

Selo de Instalações Ativas Selo de classificação Distintivo de pontuação de saúde

Best CoCart alternatives

All cart plugins →
Alternativas
Classificação Plugin Instalações ativas Classificação Atualizada Saúde
1 Menu Cart for WooCommerce Menu Cart for WooCommerce Automatically displays a shopping cart in your menu bar. Works with WooCommerce and Easy… by WP Overnight 70K+ ★★★★★★★★★★ 4.6 (99) 2 semanas atrás 78
2 Welcart e-Commerce Welcart e-Commerce Welcart is a free WordPress e-commerce plugin with the top market share in Japan. by info@welcart 10K+ ★★★★★★★★★★ 4.5 (6) 1 semana atrás 83
3 Simple Shopping Cart Simple Shopping Cart Lightweight, user-friendly plugin to sell products/services on WordPress. Easily add a… Por MRA13 / Dicas e truques da equipe… 10K+ ★★★★★★★★★★ 4.6 (215) 1 semana atrás 92
4 Cart Popup for WooCommerce Cart Popup for WooCommerce Cart Popup for WooCommerce enables Ajax add-to-cart and displays an instant popup showing… by xootix 9K+ ★★★★★★★★★★ 4.4 (70) 7 meses atrás 65
5 Custom Add To Cart Button for WooCommerce Custom Add To Cart Button for WooCommerce Customize the Add to Cart buttons in WooCommerce by changing the text, adding a cart icon… by Kestrel 8K+ ★★★★★★★★★★ 3.9 (8) 2 anos atrás 40
6 WP Menu Cart WP Menu Cart Automatically displays a shopping cart in your menu bar. Works with WooCommerce and Easy… by WP Overnight 8K+ ★★★★★★★★★★ 4.8 (23) 2 semanas atrás 77
7 Atualização automática do carrinho AJAX para WooCommerce Atualização automática do carrinho AJAX para WooCommerce Um plugin de luz que atualiza automaticamente a página do carrinho e o mini-carro quando a quantidade do produto é… por Taisho 7K+ ★★★★★★★★★★ 5 (214) 6 anos atrás 46
8 Force Authentification Before Checkout for WooCommerce Force Authentification Before Checkout for WooCommerce Force customer to log in or register before checkout Por Link Nacional 5K+ ★★★★★★★★★★ 5 (57) 2 meses atrás 85
9 WC Minimum Order Amount WC Minimum Order Amount Set a minimum order amount for WooCommerce, based on the subtotal or the total. Works with… by Hannah S.L. 3K+ ★★★★★★★★★★ 4.2 (5) 1 mês atrás 76
10 Minimum Order Amount for WooCommerce Minimum Order Amount for WooCommerce Set a minimum order amount for WooCommerce, with a customizable notice shown in the cart… by dcurasi 2K+ ★★★★★★★★★★ 4.6 (14) 3 meses atrás 71

FAQ

CoCart: quick answers

Respostas diretas, extraídas de dados ao vivo WordPress.org.

Fonte: WordPress.org

Is CoCart free?

Yes. CoCart is free to download and use from the official WordPress.org plugin directory. The developer also sells premium add-ons or a Pro version with extra features.

Is CoCart safe to use in 2026?

Yes — CoCart is a safe, well-maintained plugin to use in 2026. It runs on 900+ sites, is rated 4.9/5 and was last updated 2 months ago, and scores 83/100 on our health check.

How many websites use CoCart?

CoCart is active on 900+ WordPress websites and has been downloaded 104,008 times since it launched in February 2018. It was downloaded 1,201 times in the last 30 days.

Does CoCart work with WordPress 7.1?

Yes. The developer has tested CoCart up to WordPress 7.1.5, the latest release. It requires WordPress 6.7 or newer.

What PHP version does CoCart need?

CoCart requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was CoCart last updated?

The latest version, 4.9.7, was released on September 30, 2026 (2 months ago).

Who makes CoCart?

CoCart is developed and maintained by CoCart Headless.

What are the best alternatives to CoCart?

The most popular alternatives to CoCart are Menu Cart for WooCommerce (70K+ installs), Welcart e-Commerce (10K+ installs) and Simple Shopping Cart (10K+ installs).

Alimentado por PageForge

Um modelo e uma planilha. Uma página real para cada pesquisa.

PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.

  • CSV e XLSX, mais Google Sheets em Profissional e Empresarial
  • Seu próprio título, URL, SEO campos e esquema para cada página
  • Funciona com o editor de blocos, Elementor, Divi e Avada
  • Gratuito em WordPress.org, sem cartão de crédito

↑↓ mover↵ abrir