Documentation
Use c0upons from the web, terminal, or your own apps.
Overview
c0upons is an open-source, community-powered coupon platform. Browse and submit deals for free on the web, or use the CLI and API to integrate savings into your own tools.
CLI
The c0upons CLI is a bash script that works on macOS and Linux. Requires curl and jq.
Installation
curl -fsSL https://c0upons.com/install.sh | shInstalls to /usr/local/bin/c0upons (or ~/.local/bin without sudo).
Upgrade
c0upons upgradeUninstall
c0upons removeDependencies
| Tool | Required | Install |
|---|---|---|
curl | Yes | Pre-installed on most systems |
jq | Yes | brew install jq · apt install jq |
python3 | Optional | Used for URL encoding fallback |
Commands
c0upons search <query>Search for coupons by store name, code, or title.
c0upons search nike
c0upons search "20% off"c0upons latestShow the most recent/trending coupons.
c0upons latestc0upons storesList all stores with active coupons.
c0upons storesc0upons store <slug>Show all coupons for a specific store.
c0upons store adidas
c0upons store nikec0upons upgradeUpgrade the CLI to the latest version. Alias: update
c0upons upgrade
c0upons updatec0upons removeUninstall the CLI from your system. Alias: uninstall
c0upons remove
c0upons uninstallc0upons versionPrint the installed CLI version.
c0upons versionEnvironment
| Variable | Default | Description |
|---|---|---|
C0UPONS_API | https://c0upons.com/api | Override the API base URL |
REST API
No authentication required for read operations. Base URL: https://c0upons.com/api
Coupons
/api/couponsReturns all coupons ordered by votes descending.
curl https://c0upons.com/api/couponsResponse
[
{
"id": 1,
"store_id": 42,
"code": "SAVE20",
"title": "20% off sitewide",
"discount": "20%",
"expiry_date": "2025-12-31",
"verified": 1,
"votes": 47,
"store_name": "Example Store",
"store_slug": "example-store"
}
]/api/coupons/[id]Returns a single coupon by ID.
curl https://c0upons.com/api/coupons/1/api/couponsSubmit a new coupon.
curl -X POST https://c0upons.com/api/coupons \
-H "Content-Type: application/json" \
-d '{"store_id":42,"title":"20% off","code":"SAVE20","discount":"20%"}'Stores
/api/storesReturns all stores alphabetically.
curl https://c0upons.com/api/stores/api/stores/[slug]Returns a store and its coupons.
curl https://c0upons.com/api/stores/nikeSearch
/api/search?q=queryFull-text search across coupon titles, descriptions, codes, and store names.
curl "https://c0upons.com/api/search?q=nike"Contributing
c0upons is open source. Contributions are welcome — submit coupons via the web, report bugs, or open a pull request.
Submit via API
curl -X POST https://c0upons.com/api/coupons \
-H "Content-Type: application/json" \
-d '{"store_id": 1, "title": "15% off everything", "code": "GET15"}'