Skip to content

Weekly sentiment report

A CSV of the last seven daily sentiment readings (positive, negative, and neutral counts) for each coin on your list.

Inform Crypto 1 tool 15 tokens / run Python · Node.js

What this recipe solves

Tracking sentiment week-over-week across multiple coins requires manual exports and spreadsheet work. This script automates the pull and formats the output for sharing.

Copy, run, ship

Drop this script into your project and run it locally or on a cron. Set GUAVY_KEY in your environment, swap the symbols, and go.

Python
# weekly_sentiment.py
import os, requests, csv, sys

API  = "https://guavy.com/api/v1"
H    = {"Authorization": f"Bearer {os.environ['GUAVY_KEY']}"}
SYMBOLS = ["BTC", "ETH", "SOL", "AVAX", "LINK"]

writer = csv.writer(sys.stdout)
writer.writerow(["symbol", "date", "positive", "negative", "neutral"])

for s in SYMBOLS:
    data = requests.get(
        f"{API}/sentiment/get-sentiment-history/{s}",
        headers=H,
        params={"limit": 7}
    ).json()
    for d in data["sentiment"]:
        writer.writerow([s, d["date"], d["positive"], d["negative"], d["neutral"]])

1 tool, one script

This script calls 1 endpoint from the Guavy REST API. Every data point maps back to the endpoint it came from.

What the script prints

Output from a real run of this script.

weekly-sentiment-report.out REST
symbol,date,positive,negative,neutral
BTC,2026-07-04,1,2,0
BTC,2026-07-03,714,450,2
BTC,2026-07-02,737,536,1
BTC,2026-07-01,630,890,0
BTC,2026-06-30,514,633,1
BTC,2026-06-29,526,788,1
BTC,2026-06-28,342,491,3
ETH,2026-07-03,423,136,5
ETH,2026-07-02,508,168,3
…

Run this recipe on the free plan

Grab a free API key, set it as an env var, and run the script. Free sandbox forever.