Skip to main content

earlyforge-cli

EarlyForge is an AI-powered editorial intelligence platform that detects emerging trends across thousands of sources in 50 countries and turns them into original, sourced articles. This package gives you its trend data from code: see earlyforge.ai/developers.

Command-line client for the EarlyForge Trends API, with two tiers under the same /v1/api/trends/* prefix:

  • Pulse mirror (pulse top|region|category|trend) — free on every account, no plan required. The same daily snapshot already shown on earlyforge.ai/pulse.
  • Full trends feed (pulse full/pulse full-trend) — every plan, including free, and not "all trends unlocked." Every plan reveals a daily, random, category-diversified budget of trend names (bigger on paid plans) — exactly what your organization's dashboard Trends page shows unlocked today, no more, no less.

Not a CLI for articles, briefs, or alerts — the public API never exposes those on any plan. Full reference: docs.earlyforge.ai/guides/api/cli. Source: github.com/Earlyforge-official/earlyforge.

Install

Not published yet. Contact support@earlyforge.ai for early access.

Configure

export EARLYFORGE_API_KEY=ef_live_xxxxxxxxxxxxxxxx

Get a key from Settings → API Keys in the EarlyForge console. Or pass --api-key on each command instead of the env var.

Commands

earlyforge pulse top [--date YYYY-MM-DD]
earlyforge pulse region <REGION> [--date YYYY-MM-DD]
earlyforge pulse category <CATEGORY> [--date YYYY-MM-DD]
earlyforge pulse trend <TREND_ID>
earlyforge pulse full [--region US] [--category tech] [--page 1] [--limit 20]
earlyforge pulse full-trend <TREND_ID>

Every command pretty-prints the JSON response and accepts --api-key and --base-url (default https://api.earlyforge.ai, useful for pointing at a local gateway in development).

pulse full and pulse full-trend work on every plan, including free. They are not "all trends unlocked": every plan only reveals a daily, random, category-diversified budget of trend names (bigger on paid plans), same as the dashboard's Trends page. A trend outside that budget stays in the list with its name redacted ("name_locked": true) for pulse full, or returns HTTP 402 for pulse full-trend.

Examples

earlyforge pulse top
earlyforge pulse top --date 2026-11-01
earlyforge pulse region US
earlyforge pulse category politics
earlyforge pulse trend tr_a1b2c3
earlyforge pulse full --region US --limit 50
earlyforge pulse full-trend tr_a1b2c3

Errors

A non-2xx response prints Error: ... (<detail>) to stderr and exits with status 1 — the same 401 invalid-key / 404 unknown-trend / 502 upstream-unavailable cases documented in the OpenAPI spec, plus 402 (trend_locked on pulse full-trend for a trend outside today's budget).

Rate limits

No monthly call quota on this surface — only the shared 60 requests/60s burst limit applies, same as the anonymous Pulse page.

Tests

pip install -e . pytest
pytest

Metadata

Release files for earlyforge-cli 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for earlyforge-cli 0.1.2
File Size Uploaded Provenance Actions
earlyforge_cli-0.1.2.tar.gz 6.1 kB Without provenance Details for earlyforge_cli-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for earlyforge-cli 0.1.2
File Interpreter ABI Platform Actions
earlyforge_cli-0.1.2-py3-none-any.whl Python 3 none any Details for earlyforge_cli-0.1.2-py3-none-any.whl

Total release size: 12.3 kB

Release files / earlyforge_cli-0.1.2.tar.gz

Download URL earlyforge_cli-0.1.2.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6529e42891996b028f2449486d65c8f3db62acceaf4a052ecf5e22a658c5b83d
BLAKE2b-256 checksum
How to use checksums
7cd054bdfc3ce6f1e8437787586224e795c86c242a1730e24ce58c06ce3839a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / earlyforge_cli-0.1.2-py3-none-any.whl

Download URL earlyforge_cli-0.1.2-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4321186e69309fcc72b50074b73b7b7911f272cbeca54aa0bf928e3b180f40a
BLAKE2b-256 checksum
How to use checksums
4ce4ee0ad4685df613c9b0bc5efb035c6d27fdcf4c5f1e80335d80972e475de9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for earlyforge-cli 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page