io.github.abelfeed/clickbank-marketplace
by abelfeed
README.md
# ClickBank Marketplace API (Python SDK, CLI & MCP)
[](https://github.com/abelfeed/clickbank-marketplace-api/actions/workflows/ci.yml)
[](https://pypi.org/project/abelfeed-clickbank/)
[](https://pypi.org/project/abelfeed-clickbank/)
[](LICENSE)
Open-source Python client, CLI (`clickbank-fetch`), and Model Context Protocol (MCP) manifest for querying ClickBank Marketplace offers (Gravity, BI Gravity, Net/Initial/Future EPC, Avg $/Sale, Rebill, Conversion Rate, and Return Rate).
## Supported Sort Fields
`rank` · `gravity` · `bi_gravity` · `popularity` · `average_epc` · `initial_epc` · `future_epc` · `net_epc` · `conversion_rate`
## Installation
```bash
pip install abelfeed-clickbank
export APIFY_TOKEN="your_apify_token"
```
## Python Usage
```python
from abelfeed_clickbank import ClickBankClient
client = ClickBankClient()
offers = client.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"])
```
## CLI Usage
```bash
clickbank-fetch --sort-field gravity --sort-descending --max-results 50
```
## MCP Server (Claude Desktop / Cursor / VS Code)
Registered on the Official MCP Registry as `io.github.abelfeed/clickbank-marketplace` (see [server.json](server.json)):
```json
{
"mcpServers": {
"abelfeed-clickbank": {
"url": "https://mcp.apify.com/?tools=abelfeed/clickbank-marketplace-fast-api",
"headers": {
"Authorization": "Bearer YOUR_APIFY_TOKEN"
}
}
}
}
```
## Development & Testing
```bash
pip install -e . pytest
pytest -v
```
## Hosted Backend & Security
This package is a thin MIT-licensed wrapper around the hosted Apify Actor [`abelfeed/clickbank-marketplace-fast-api`](https://apify.com/abelfeed/clickbank-marketplace-fast-api). See [SECURITY.md](SECURITY.md) for vulnerability disclosure and OIDC Trusted Publishing details.
## License
MIT - see [LICENSE](LICENSE).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues