Public API v1
GET เท่านั้น ไม่ต้องใช้กุญแจ API ผลลัพธ์มี data และ meta รูปแบบข้อผิดพลาดคือ {"error":{"code":"...","message":"..."}}
Endpoints
GET /briefsDaily Briefs and their data windows
GET /brief-updatesUpdates received after the brief cutoff
GET /signalsDetected meaningful changes
GET /eventsVersioned signal events
GET /sourcesPublic source registry
GET /source-healthLatest source collection outcomes
GET /observationsPublic numeric observations
GET /damsHourly dam readings
GET /weatherBangkok-area weather station observations
GET /lotteryVerified GLO lottery draws
GET /socialFM91 posts selected for Bangkok relevance; not signals
GET /newsTagged news mentions; not signals
GET /holidaysPublic holidays
GET /tax-deadlinesTax filing deadlines
GET /calendarOfficial release calendar
GET /evidenceRaw evidence metadata only
Parameters
limit1–100 (ค่าเริ่มต้น 25)dateรูปแบบ YYYY-MM-DD เมื่อ endpoint รองรับidใช้กรอง event, metric, source หรือ station ตาม resource
Version & cache
เวอร์ชันอยู่ใน URL ที่ /v1 และ response อาจถูกเก็บ cache 60 วินาที การเปลี่ยนสัญญาที่เข้ากันไม่ได้จะออกเวอร์ชันใหม่
ตัวอย่าง
curl
curl 'https://thailands-daily-pulse.lovable.app/api/public/v1/briefs?limit=1'JavaScript
const r = await fetch('https://thailands-daily-pulse.lovable.app/api/public/v1/signals?date=2026-10-03');
const { data, meta } = await r.json();Python
import requests
data = requests.get('https://thailands-daily-pulse.lovable.app/api/public/v1/observations', params={'limit': 20}).json()