Overview
Per-ticker research pipeline that returns a Shariah-compliance verdict plus narrative context. Web layer via Scavio, fundamentals via Polygon, Shariah filter at LLM step.
Trigger
On-demand or daily watchlist
Schedule
On-demand or daily watchlist
Workflow Steps
Take ticker input
Single ticker or watchlist.
Scavio web search
Recent earnings, news, analyst takes.
Scavio Reddit search
r/halalinvesting, r/wallstreetbets sentiment.
Scavio YouTube search
Earnings call recaps, analyst videos.
Polygon fundamentals fetch
Free tier delayed but acceptable.
LLM Shariah-compliance verdict
Apply riba / gharar / haram filters.
Compose research brief
Markdown brief with verdict + narrative + fundamentals.
Python Implementation
import os, requests
API_KEY = os.environ['SCAVIO_API_KEY']
H = {'x-api-key': API_KEY}
def research(ticker):
return {
'web': requests.post('https://api.scavio.dev/api/v1/search', headers=H, json={'query': f'{ticker} 2026 financials'}).json(),
'reddit': requests.post('https://api.scavio.dev/api/v1/reddit/search', headers=H, json={'query': ticker}).json(),
'youtube': requests.post('https://api.scavio.dev/api/v1/youtube/search', headers=H, json={'query': f'{ticker} earnings call'}).json(),
}JavaScript Implementation
const H = { 'x-api-key': process.env.SCAVIO_API_KEY, 'Content-Type': 'application/json' };
async function research(ticker) {
const [w, r, y] = await Promise.all([
fetch('https://api.scavio.dev/api/v1/search', { method: 'POST', headers: H, body: JSON.stringify({ query: `${ticker} 2026 financials` }) }).then(r => r.json()),
fetch('https://api.scavio.dev/api/v1/reddit/search', { method: 'POST', headers: H, body: JSON.stringify({ query: ticker }) }).then(r => r.json()),
fetch('https://api.scavio.dev/api/v1/youtube/search', { method: 'POST', headers: H, body: JSON.stringify({ query: `${ticker} earnings` }) }).then(r => r.json())
]);
return { w, r, y };
}Platforms Used
Web search with knowledge graph, PAA, and AI overviews
Community, posts & threaded comments from any subreddit
YouTube
Video search with transcripts and metadata