abelfeed-clickbank 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- abelfeed_clickbank-0.1.0/LICENSE +21 -0
- abelfeed_clickbank-0.1.0/PKG-INFO +59 -0
- abelfeed_clickbank-0.1.0/README.md +45 -0
- abelfeed_clickbank-0.1.0/abelfeed_clickbank/__init__.py +3 -0
- abelfeed_clickbank-0.1.0/abelfeed_clickbank/cli.py +42 -0
- abelfeed_clickbank-0.1.0/abelfeed_clickbank/client.py +47 -0
- abelfeed_clickbank-0.1.0/abelfeed_clickbank.egg-info/PKG-INFO +59 -0
- abelfeed_clickbank-0.1.0/abelfeed_clickbank.egg-info/SOURCES.txt +12 -0
- abelfeed_clickbank-0.1.0/abelfeed_clickbank.egg-info/dependency_links.txt +1 -0
- abelfeed_clickbank-0.1.0/abelfeed_clickbank.egg-info/entry_points.txt +2 -0
- abelfeed_clickbank-0.1.0/abelfeed_clickbank.egg-info/requires.txt +1 -0
- abelfeed_clickbank-0.1.0/abelfeed_clickbank.egg-info/top_level.txt +1 -0
- abelfeed_clickbank-0.1.0/pyproject.toml +20 -0
- abelfeed_clickbank-0.1.0/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Abelfeed
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: abelfeed-clickbank
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Lightweight Python client & CLI for ClickBank Marketplace offers (Gravity, Net EPC, Avg $/Sale, Rebill, Return Rate, Categories) via Apify.
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Homepage, https://apify.com/abelfeed/clickbank-marketplace-fast-api
|
|
7
|
+
Project-URL: Repository, https://github.com/abelfeed/clickbank-marketplace-api
|
|
8
|
+
Keywords: clickbank,affiliate-marketing,marketplace,gravity,epc,offers,apify,mcp
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Requires-Dist: apify-client>=1.8.0
|
|
13
|
+
Dynamic: license-file
|
|
14
|
+
|
|
15
|
+
# ClickBank Marketplace Fast API — Python Client, CLI & MCP
|
|
16
|
+
|
|
17
|
+
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.
|
|
18
|
+
|
|
19
|
+
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).
|
|
20
|
+
|
|
21
|
+
## Quickstart (Python & CLI)
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pip install abelfeed-clickbank
|
|
25
|
+
export APIFY_TOKEN="your_apify_token" # Free account: https://apify.com/abelfeed/clickbank-marketplace-fast-api
|
|
26
|
+
clickbank-fetch --sort-field gravity --sort-descending --max-results 50
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
```python
|
|
30
|
+
from abelfeed_clickbank import ClickBankClient
|
|
31
|
+
|
|
32
|
+
cb = ClickBankClient()
|
|
33
|
+
offers = cb.fetch(
|
|
34
|
+
sort_field="net_epc",
|
|
35
|
+
sort_descending=True,
|
|
36
|
+
rebill_only=True,
|
|
37
|
+
min_gravity=10,
|
|
38
|
+
max_results=50,
|
|
39
|
+
)
|
|
40
|
+
print(offers[0]["vendorId"], offers[0]["gravity"], offers[0]["netEPC"])
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Supported sort orders
|
|
44
|
+
|
|
45
|
+
`rank` · `gravity` · `bi_gravity` · `popularity` · `average_epc` · `initial_epc` · `future_epc` · `net_epc` · `conversion_rate`
|
|
46
|
+
|
|
47
|
+
## Use directly in Claude Desktop, Claude Code, Cursor or VS Code (MCP)
|
|
48
|
+
|
|
49
|
+
Connect Apify's official hosted MCP server with this Actor preloaded:
|
|
50
|
+
|
|
51
|
+
```json
|
|
52
|
+
{
|
|
53
|
+
"mcpServers": {
|
|
54
|
+
"abelfeed-clickbank": {
|
|
55
|
+
"url": "https://mcp.apify.com/?tools=abelfeed/clickbank-marketplace-fast-api"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
```
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# ClickBank Marketplace Fast API — Python Client, CLI & MCP
|
|
2
|
+
|
|
3
|
+
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.
|
|
4
|
+
|
|
5
|
+
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).
|
|
6
|
+
|
|
7
|
+
## Quickstart (Python & CLI)
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pip install abelfeed-clickbank
|
|
11
|
+
export APIFY_TOKEN="your_apify_token" # Free account: https://apify.com/abelfeed/clickbank-marketplace-fast-api
|
|
12
|
+
clickbank-fetch --sort-field gravity --sort-descending --max-results 50
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
```python
|
|
16
|
+
from abelfeed_clickbank import ClickBankClient
|
|
17
|
+
|
|
18
|
+
cb = ClickBankClient()
|
|
19
|
+
offers = cb.fetch(
|
|
20
|
+
sort_field="net_epc",
|
|
21
|
+
sort_descending=True,
|
|
22
|
+
rebill_only=True,
|
|
23
|
+
min_gravity=10,
|
|
24
|
+
max_results=50,
|
|
25
|
+
)
|
|
26
|
+
print(offers[0]["vendorId"], offers[0]["gravity"], offers[0]["netEPC"])
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Supported sort orders
|
|
30
|
+
|
|
31
|
+
`rank` · `gravity` · `bi_gravity` · `popularity` · `average_epc` · `initial_epc` · `future_epc` · `net_epc` · `conversion_rate`
|
|
32
|
+
|
|
33
|
+
## Use directly in Claude Desktop, Claude Code, Cursor or VS Code (MCP)
|
|
34
|
+
|
|
35
|
+
Connect Apify's official hosted MCP server with this Actor preloaded:
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"mcpServers": {
|
|
40
|
+
"abelfeed-clickbank": {
|
|
41
|
+
"url": "https://mcp.apify.com/?tools=abelfeed/clickbank-marketplace-fast-api"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
```
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import argparse
|
|
4
|
+
import json
|
|
5
|
+
|
|
6
|
+
from .client import ClickBankClient
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def main() -> None:
|
|
10
|
+
p = argparse.ArgumentParser(description="Fetch ClickBank Marketplace offers via Abelfeed API.")
|
|
11
|
+
p.add_argument("--keywords", default="", help="Optional search keywords (e.g. keto, fitness)")
|
|
12
|
+
p.add_argument(
|
|
13
|
+
"--sort-field",
|
|
14
|
+
default="rank",
|
|
15
|
+
help="rank, gravity, bi_gravity, popularity, average_epc, initial_epc, future_epc, net_epc, conversion_rate",
|
|
16
|
+
)
|
|
17
|
+
p.add_argument("--sort-descending", action="store_true", help="Sort descending (recommended for gravity/EPC)")
|
|
18
|
+
p.add_argument("--category", default="", help="Optional category substring filter")
|
|
19
|
+
p.add_argument("--language", default="", help="Optional language code (en, fr, es, de, it, pt)")
|
|
20
|
+
p.add_argument("--rebill-only", action="store_true", help="Keep recurring/rebill offers only")
|
|
21
|
+
p.add_argument("--min-gravity", type=float, default=0)
|
|
22
|
+
p.add_argument("--min-avg-sale", type=float, default=0)
|
|
23
|
+
p.add_argument("--max-results", type=int, default=20)
|
|
24
|
+
args = p.parse_args()
|
|
25
|
+
|
|
26
|
+
client = ClickBankClient()
|
|
27
|
+
rows = client.fetch(
|
|
28
|
+
include_keywords=args.keywords,
|
|
29
|
+
sort_field=args.sort_field,
|
|
30
|
+
sort_descending=args.sort_descending,
|
|
31
|
+
category_filter=args.category,
|
|
32
|
+
language=args.language,
|
|
33
|
+
rebill_only=args.rebill_only,
|
|
34
|
+
min_gravity=args.min_gravity,
|
|
35
|
+
min_avg_dollars_per_sale=args.min_avg_sale,
|
|
36
|
+
max_results=args.max_results,
|
|
37
|
+
)
|
|
38
|
+
print(json.dumps(rows, indent=2))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
if __name__ == "__main__":
|
|
42
|
+
main()
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
from typing import Any
|
|
5
|
+
|
|
6
|
+
from apify_client import ApifyClient
|
|
7
|
+
|
|
8
|
+
ACTOR_ID = "abelfeed/clickbank-marketplace-fast-api"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ClickBankClient:
|
|
12
|
+
"""Thin Python wrapper around the Abelfeed ClickBank Marketplace Fast API Actor."""
|
|
13
|
+
|
|
14
|
+
def __init__(self, api_token: str | None = None) -> None:
|
|
15
|
+
token = api_token or os.getenv("APIFY_TOKEN")
|
|
16
|
+
if not token:
|
|
17
|
+
raise ValueError(
|
|
18
|
+
"Missing APIFY_TOKEN. Create a free Apify account ($5/mo free credits) "
|
|
19
|
+
"at https://apify.com/abelfeed/clickbank-marketplace-fast-api"
|
|
20
|
+
)
|
|
21
|
+
self._client = ApifyClient(token)
|
|
22
|
+
|
|
23
|
+
def fetch(
|
|
24
|
+
self,
|
|
25
|
+
include_keywords: str = "",
|
|
26
|
+
sort_field: str = "rank",
|
|
27
|
+
sort_descending: bool = False,
|
|
28
|
+
category_filter: str = "",
|
|
29
|
+
language: str = "",
|
|
30
|
+
rebill_only: bool = False,
|
|
31
|
+
min_gravity: float = 0,
|
|
32
|
+
min_avg_dollars_per_sale: float = 0,
|
|
33
|
+
max_results: int = 20,
|
|
34
|
+
) -> list[dict[str, Any]]:
|
|
35
|
+
run_input: dict[str, Any] = {
|
|
36
|
+
"includeKeywords": include_keywords,
|
|
37
|
+
"sortField": sort_field,
|
|
38
|
+
"sortDescending": sort_descending,
|
|
39
|
+
"categoryFilter": category_filter,
|
|
40
|
+
"language": language,
|
|
41
|
+
"rebillOnly": rebill_only,
|
|
42
|
+
"minGravity": min_gravity,
|
|
43
|
+
"minAvgDollarsPerSale": min_avg_dollars_per_sale,
|
|
44
|
+
"maxResults": max_results,
|
|
45
|
+
}
|
|
46
|
+
run = self._client.actor(ACTOR_ID).call(run_input=run_input)
|
|
47
|
+
return list(self._client.dataset(run["defaultDatasetId"]).iterate_items())
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: abelfeed-clickbank
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Lightweight Python client & CLI for ClickBank Marketplace offers (Gravity, Net EPC, Avg $/Sale, Rebill, Return Rate, Categories) via Apify.
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Homepage, https://apify.com/abelfeed/clickbank-marketplace-fast-api
|
|
7
|
+
Project-URL: Repository, https://github.com/abelfeed/clickbank-marketplace-api
|
|
8
|
+
Keywords: clickbank,affiliate-marketing,marketplace,gravity,epc,offers,apify,mcp
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Requires-Dist: apify-client>=1.8.0
|
|
13
|
+
Dynamic: license-file
|
|
14
|
+
|
|
15
|
+
# ClickBank Marketplace Fast API — Python Client, CLI & MCP
|
|
16
|
+
|
|
17
|
+
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.
|
|
18
|
+
|
|
19
|
+
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).
|
|
20
|
+
|
|
21
|
+
## Quickstart (Python & CLI)
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pip install abelfeed-clickbank
|
|
25
|
+
export APIFY_TOKEN="your_apify_token" # Free account: https://apify.com/abelfeed/clickbank-marketplace-fast-api
|
|
26
|
+
clickbank-fetch --sort-field gravity --sort-descending --max-results 50
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
```python
|
|
30
|
+
from abelfeed_clickbank import ClickBankClient
|
|
31
|
+
|
|
32
|
+
cb = ClickBankClient()
|
|
33
|
+
offers = cb.fetch(
|
|
34
|
+
sort_field="net_epc",
|
|
35
|
+
sort_descending=True,
|
|
36
|
+
rebill_only=True,
|
|
37
|
+
min_gravity=10,
|
|
38
|
+
max_results=50,
|
|
39
|
+
)
|
|
40
|
+
print(offers[0]["vendorId"], offers[0]["gravity"], offers[0]["netEPC"])
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Supported sort orders
|
|
44
|
+
|
|
45
|
+
`rank` · `gravity` · `bi_gravity` · `popularity` · `average_epc` · `initial_epc` · `future_epc` · `net_epc` · `conversion_rate`
|
|
46
|
+
|
|
47
|
+
## Use directly in Claude Desktop, Claude Code, Cursor or VS Code (MCP)
|
|
48
|
+
|
|
49
|
+
Connect Apify's official hosted MCP server with this Actor preloaded:
|
|
50
|
+
|
|
51
|
+
```json
|
|
52
|
+
{
|
|
53
|
+
"mcpServers": {
|
|
54
|
+
"abelfeed-clickbank": {
|
|
55
|
+
"url": "https://mcp.apify.com/?tools=abelfeed/clickbank-marketplace-fast-api"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
abelfeed_clickbank/__init__.py
|
|
5
|
+
abelfeed_clickbank/cli.py
|
|
6
|
+
abelfeed_clickbank/client.py
|
|
7
|
+
abelfeed_clickbank.egg-info/PKG-INFO
|
|
8
|
+
abelfeed_clickbank.egg-info/SOURCES.txt
|
|
9
|
+
abelfeed_clickbank.egg-info/dependency_links.txt
|
|
10
|
+
abelfeed_clickbank.egg-info/entry_points.txt
|
|
11
|
+
abelfeed_clickbank.egg-info/requires.txt
|
|
12
|
+
abelfeed_clickbank.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
apify-client>=1.8.0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
abelfeed_clickbank
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "abelfeed-clickbank"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Lightweight Python client & CLI for ClickBank Marketplace offers (Gravity, Net EPC, Avg $/Sale, Rebill, Return Rate, Categories) via Apify."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
dependencies = ["apify-client>=1.8.0"]
|
|
13
|
+
keywords = ["clickbank", "affiliate-marketing", "marketplace", "gravity", "epc", "offers", "apify", "mcp"]
|
|
14
|
+
|
|
15
|
+
[project.scripts]
|
|
16
|
+
clickbank-fetch = "abelfeed_clickbank.cli:main"
|
|
17
|
+
|
|
18
|
+
[project.urls]
|
|
19
|
+
Homepage = "https://apify.com/abelfeed/clickbank-marketplace-fast-api"
|
|
20
|
+
Repository = "https://github.com/abelfeed/clickbank-marketplace-api"
|