SmarterDividends

Authentication & API Keys

Call core endpoints with zero setup, or authenticate with your SmarterDividends Pro or Business API key using Bearer token, X-API-Key header, or query string.

Three Ways to Pass Your API Key

Create and manage API keys from your Account page (/account#api). Keys begin with the sd_ prefix and are displayed only once at creation (we store a cryptographic hash, never the raw key).

Send your key via any of the three methods below. Prefer HTTP headers in production servers so keys do not appear in proxy URL logs; use ?key= only for Google Sheets =IMPORTDATA() or Excel Web queries.

curl -H "Authorization: Bearer sd_YOUR_KEY" \
  "https://smarterdividends.com/api/v1/cefs?discount_only=true&sort=zscore_1y"

Authentication Responses & Headers

HTTP StatusHeader / MeaningWhat To Do
200 OKX-RateLimit-Tier: developer · X-License: commercial · X-API-Access: fullBusiness API key verified; full depth and commercial license active.
200 OKX-RateLimit-Tier: pro · X-API-Access: previewPro key verified; 5,000/day core quota active; intelligence endpoints in preview mode.
401 UnauthorizedUnknown or revoked API keyVerify the key at /account#api, or omit the header to fall back to free limits.
403 ForbiddenPlan inactiveThe key's account no longer has an active Pro or Business API subscription.
429 Too Many RequestsRetry-After header (seconds)Per-minute or daily/monthly allowance reached. Respect Retry-After before retrying.