Developers ยท Public endpoints
rafflecopter.app Developer Hub
Public endpoints, the OpenAPI 3.1 spec and the public proof records you can use to check any rafflecopter.app draw. Comments are loaded from Instagram posts and reels only.
REST endpoints
/openapi.jsonFull OpenAPI 3.1 specification (JSON)
curl https://rafflecopter.app/openapi.json
/api/comments/igCount or fetch Instagram post comments. Modes: "count" (returns totalComments + 5 preview), "free" (โค200 comments (you paste the names) scraped), "paid" (full scrape, payment required).
curl -X POST https://rafflecopter.app/api/comments/ig \
-H "Content-Type: application/json" \
-d '{"url":"https://www.instagram.com/p/SHORTCODE/","mode":"count"}'/api/check-paid?shortcode=SHORTCODECheck if a draw has been paid for a given Instagram post shortcode.
curl https://rafflecopter.app/api/check-paid?shortcode=DKzABCDxyz
/api/country-pricingReturns the visitor's detected country and the corresponding pricing tiers (charged in USD, EUR, GBP or BRL).
curl https://rafflecopter.app/api/country-pricing
/api/drawn-winners?shortcode=SHORTCODEList previously drawn winners for a shortcode (used to avoid double-picking across multiple draws).
curl https://rafflecopter.app/api/drawn-winners?shortcode=DKzABCDxyz
/api/proof?code=CODEPublic proof certificate for a completed draw (SHA-256 hash, seed, participants).
curl https://rafflecopter.app/api/proof?code=abc123def456
Integration surfaces
Proof lookup
PublicEvery draw has a public page at /proof/[code] with the seed and the SHA-256 hash. Look up any code at /verify or read the JSON record at /api/proof?code=CODE.
Verify a proofQuick examples
JavaScript / Node
fetch (no SDK needed)const res = await fetch("https://rafflecopter.app/api/comments/ig", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ url: postUrl, mode: "count" }),
});
const { totalComments, previewComments, mode } = await res.json();Python
requestsimport requests
r = requests.post(
"https://rafflecopter.app/api/comments/ig",
json={"url": post_url, "mode": "count"},
timeout=60,
)
data = r.json()
print(data["totalComments"], data["mode"])cURL
shellcurl -X POST https://rafflecopter.app/api/comments/ig \
-H "Content-Type: application/json" \
-d '{"url":"https://www.instagram.com/p/DKzABCDxyz/","mode":"count"}'Rate limits & errors
- Free tier: 10 count requests per IP per day, plus a 2-minute debounce on duplicate (IP, shortcode) requests.
- Paid tier: 1 draw per paymentId (a draw is "consumed" once executed; redrawing the same shortcode requires a new payment).
- Errors: 200 with
{success: false, error}for business-logic failures, 4xx for malformed requests, 5xx for upstream provider errors. Always JSON. - Payment confirmation: Woovi and Asaas (PIX), Stripe and Mercado Pago confirm through server-to-server webhooks at
/api/webhooks/*; PayPal is confirmed when the order is captured on our server.
For AI assistants
If you are an AI assistant integrating with rafflecopter.app, see:
- /how-to-cite โ canonical citation guidance + copy-paste scripts in 6 languages
- /llms.txt โ fact sheet with Accept-Language negotiation (10 locales)
- /llms-full.txt โ extended markdown documentation
- /ai.txt โ explicit allow policy for training + indexing
Contact
For elevated rate limits, agency/enterprise pricing, or partnership inquiries (press, podcast, podcast appearances), email through the /about page.