Metadata-Version: 2.4
Name: abelfeed-clickbank
Version: 0.1.0
Summary: Lightweight Python client & CLI for ClickBank Marketplace offers (Gravity, Net EPC, Avg $/Sale, Rebill, Return Rate, Categories) via Apify.
License-Expression: MIT
Project-URL: Homepage, https://apify.com/abelfeed/clickbank-marketplace-fast-api
Project-URL: Repository, https://github.com/abelfeed/clickbank-marketplace-api
Keywords: clickbank,affiliate-marketing,marketplace,gravity,epc,offers,apify,mcp
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: apify-client>=1.8.0
Dynamic: license-file

# ClickBank Marketplace Fast API — Python Client, CLI & MCP

Lightweight Python client & CLI to extract live **ClickBank Marketplace affiliate offers** (Gravity, BI Gravity, Net/Initial/Future EPC, Avg $/Sale, Total Rebill, Conversion Rate, Expected Return Rate, Languages & Flags) with zero headless browsers.

Backed by the hosted [`abelfeed/clickbank-marketplace-fast-api`](https://apify.com/abelfeed/clickbank-marketplace-fast-api) Apify Actor (**$1.20–$1.90 / 1,000 offers all-inclusive**, ~1–2s for 50 offers, $5/mo free Apify credits to test).

## Quickstart (Python & CLI)

```bash
pip install abelfeed-clickbank
export APIFY_TOKEN="your_apify_token"   # Free account: https://apify.com/abelfeed/clickbank-marketplace-fast-api
clickbank-fetch --sort-field gravity --sort-descending --max-results 50
```

```python
from abelfeed_clickbank import ClickBankClient

cb = ClickBankClient()
offers = cb.fetch(
    sort_field="net_epc",
    sort_descending=True,
    rebill_only=True,
    min_gravity=10,
    max_results=50,
)
print(offers[0]["vendorId"], offers[0]["gravity"], offers[0]["netEPC"])
```

## Supported sort orders

`rank` · `gravity` · `bi_gravity` · `popularity` · `average_epc` · `initial_epc` · `future_epc` · `net_epc` · `conversion_rate`

## Use directly in Claude Desktop, Claude Code, Cursor or VS Code (MCP)

Connect Apify's official hosted MCP server with this Actor preloaded:

```json
{
  "mcpServers": {
    "abelfeed-clickbank": {
      "url": "https://mcp.apify.com/?tools=abelfeed/clickbank-marketplace-fast-api"
    }
  }
}
```
