1import{_ as w}from"./B2lVYkti.js";import{_ as v}from"./ToTL1EWu.js";import{_ as P}from"./_IvL0NyR.js";import{k as S,l as A,i as I,b as i,j as r,h as e,w as d,o,n as B,g as t,F as u,m as b,p as C,t as l,c}from"./DhgvjlId.js";import{_ as L}from"./CLz-y4TA.js";import{_ as T}from"./BAIfLO6q.js";import{_ as D}from"./DWNdSij1.js";import{_ as N}from"./ByKOcJJt.js";const F={class:"min-h-screen"},H={class:"grid sm:grid-cols-2 gap-4 sm:gap-8 mt-8 sm:mt-12"},O={class:"glass-card border-red-500/10"},E={class:"flex items-center gap-2 mb-4"},M={class:"glass-card border-emerald-500/10"},R={class:"flex items-center gap-2 mb-4"},j={class:"grid grid-cols-2 gap-0 border border-zinc-200 dark:border-white/10 mt-8 sm:mt-12"},G={class:"flex items-center gap-3 mb-3"},Q={class:"font-semibold text-sm sm:text-base text-zinc-900 dark:text-white"},U={class:"text-xs sm:text-sm text-zinc-600 dark:text-zinc-400"},V={class:"overflow-x-auto table-scroll-container mt-8 sm:mt-12"},W={class:"w-full"},Y={class:"text-sm"},J={class:"py-4 px-4 text-zinc-900 dark:text-white"},K={class:"py-4 px-4 text-center"},q={key:2,class:"text-zinc-500"},$={class:"py-4 px-4 text-center"},X={key:2,class:"text-zinc-500"},Z={class:"py-4 px-4 text-center"},ee={key:2,class:"text-zinc-500"},pe=S({__name:"builders",setup(te){A({title:"Prediction Market API | Build Apps Fast - Probalytics",description:"Ship prediction market apps fast with our unified REST API. All platforms, same schema. No blockchain complexity or data normalization.",ogTitle:"Prediction Market API - Probalytics",ogDescription:"Build on unified prediction market data. One API, all platforms, same schema. No data normalization headaches.",ogUrl:"https://probalytics.io/for/builders",ogImage:"https://probalytics.io/og-image.png",twitterTitle:"Prediction Market API - Probalytics",twitterDescription:"Ship prediction market apps fast. Unified REST API, SQL access, no blockchain complexity."}),I({link:[{rel:"canonical",href:"https://probalytics.io/for/builders"}],script:[{type:"application/ld+json",innerHTML:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://probalytics.io"},{"@type":"ListItem",position:2,name:"For Builders",item:"https://probalytics.io/for/builders"}]})}]});const f=[{title:"Price Comparison Widget",description:"Show the same event across all platforms with live prices",icon:"ph:arrows-left-right",color:"blue"},{title:"Aggregated Odds Dashboard",description:"Build a unified view of prediction market odds",icon:"ph:chart-bar",color:"emerald"},{title:"Cross-Platform Alert Bot",description:"Discord/Telegram alerts when spreads exceed thresholds",icon:"ph:bell-ringing",color:"amber"},{title:"Prediction Consensus Tracker",description:"Track how consensus evolves across platforms",icon:"ph:trend-up",color:"amber"}],h=[{feature:"Single API endpoint",probalytics:!0,aggregators:!0,direct:!1},{feature:"Unified response schema",probalytics:!0,aggregators:!1,direct:!1},{feature:"Cross-platform event linking",probalytics:!0,aggregators:!1,direct:!1},{feature:"No normalization code needed",probalytics:!0,aggregators:!1,direct:!1},{feature:"Direct SQL access (ClickHouse)",probalytics:!0,aggregators:!1,direct:!1},{feature:"Simple REST API",probalytics:!0,aggregators:!0,direct:!1}];return(se,s)=>{const g=w,k=v,p=P,n=B,m=L,_=T,y=D,z=N;return o(),i("div",F,[r(g),e("main",null,[r(k,{title:"Build on","title-highlight":"unified prediction market data",description:"One API, all platforms, same schema. No data normalization headaches. Ship your prediction market app this weekend.",badge:{icon:"ph:code",text:"For Developers & Indie Hackers",color:"amber"},"show-back-link":"","show-cta":"","show-orbs":"","orb-colors":["bg-amber-500/20","bg-orange-500/20"]}),r(m,null,{default:d(()=>[r(p,{label:"The Difference","label-color":"amber",title:"Why unified data matters for builders",centered:""}),e("div",H,[e("div",O,[e("div",E,[r(n,{name:"ph:warning",class:"w-5 h-5 text-red-500"}),s[0]||(s[0]=e("span",{class:"font-semibold text-zinc-900 dark:text-white"},"Other aggregator APIs",-1))]),s[1]||(s[1]=e("p",{class:"text-sm text-zinc-600 dark:text-zinc-400 mb-4"}," One API, but you still need to handle different response formats per platform. ",-1)),s[2]||(s[2]=e("pre",{class:"p-4 bg-zinc-100 dark:bg-black/20 text-xs overflow-x-auto"},[e("code",{class:"text-zinc-600 dark:text-zinc-400"},[e("span",{class:"text-zinc-500"},"// Different schema for each platform"),t(` 2polymarketData.outcomes[0].price 3kalshiData.yes_price 4 5`),e("span",{class:"text-zinc-500"},"// You still write mapping code"),t(`
6`),e("span",{class:"text-purple-600 dark:text-purple-400"},"function"),t(),e("span",{class:"text-blue-600 dark:text-blue-400"},"normalizePrice"),t(`(data, platform) { 7 `),e("span",{class:"text-purple-600 dark:text-purple-400"},"switch"),t(`(platform) { ... } 8}`)])],-1))]),e("div",M,[e("div",R,[r(n,{name:"ph:check-circle",class:"w-5 h-5 text-emerald-500"}),s[3]||(s[3]=e("span",{class:"font-semibold text-zinc-900 dark:text-white"},"Probalytics",-1))]),s[4]||(s[4]=e("p",{class:"text-sm text-zinc-600 dark:text-zinc-400 mb-4"}," One API, one schema. Same response format regardless of source platform. ",-1)),s[5]||(s[5]=e("pre",{class:"p-4 bg-zinc-100 dark:bg-black/20 text-xs overflow-x-auto"},[e("code",{class:"text-zinc-600 dark:text-zinc-400"},[e("span",{class:"text-zinc-500"},"// Same columns, same types, every platform"),t(` 9market.platform `),e("span",{class:"text-zinc-500"},"// 'POLYMARKET' | 'KALSHI'"),t(` 10market.platform_id `),e("span",{class:"text-zinc-500"},"// native venue id"),t(` 11market.outcomes[0] `),e("span",{class:"text-zinc-500"},"// { id, platform_id, name, index }"),t(` 12 13`),e("span",{class:"text-zinc-500"},"// No normalization code needed!")])],-1))])])]),_:1}),r(m,{"bg-alt":""},{default:d(()=>[r(p,{label:"Get Started","label-color":"emerald",title:"From zero to data in 3 steps",centered:""}),s[7]||(s[7]=e("div",{class:"grid sm:grid-cols-3 gap-4 sm:gap-6 mt-8 sm:mt-12 mb-8 sm:mb-12"},[e("div",{class:"glass-card text-center"},[e("div",{class:"w-12 h-12 rounded-full bg-brand-500/10 flex items-center justify-center mx-auto mb-4"},[e("span",{class:"text-lg font-bold text-brand-500"},"1")]),e("h3",{class:"font-semibold text-zinc-900 dark:text-white mb-2"},"Get your API key"),e("code",{class:"text-xs text-zinc-500 bg-zinc-100 dark:bg-white/5 px-3 py-1 rounded-full"}," Sign up at app.probalytics.io ")]),e("div",{class:"glass-card text-center"},[e("div",{class:"w-12 h-12 rounded-full bg-brand-500/10 flex items-center justify-center mx-auto mb-4"},[e("span",{class:"text-lg font-bold text-brand-500"},"2")]),e("h3",{class:"font-semibold text-zinc-900 dark:text-white mb-2"},"Make a request"),e("code",{class:"text-xs text-zinc-500 bg-zinc-100 dark:bg-white/5 px-3 py-1 rounded-full"}," fetch('/api/v1/markets') ")]),e("div",{class:"glass-card text-center"},[e("div",{class:"w-12 h-12 rounded-full bg-brand-500/10 flex items-center justify-center mx-auto mb-4"},[e("span",{class:"text-lg font-bold text-brand-500"},"3")]),e("h3",{class:"font-semibold text-zinc-900 dark:text-white mb-2"},"Query your data"),e("code",{class:"text-xs text-zinc-500 bg-zinc-100 dark:bg-white/5 px-3 py-1 rounded-full"}," REST, SQL, or file downloads ")])],-1)),r(_,{"show-glow":"","glow-color":"amber","no-padding":""},{default:d(()=>[...s[6]||(s[6]=[e("div",{class:"px-5 py-3 border-b border-zinc-200/50 dark:border-white/5 flex items-center justify-between"},[e("div",{class:"flex gap-1.5"},[e("div",{class:"w-3 h-3 rounded-full bg-red-500/80"}),e("div",{class:"w-3 h-3 rounded-full bg-amber-500/80"}),e("div",{class:"w-3 h-3 rounded-full bg-emerald-500/80"})]),e("span",{class:"text-xs text-zinc-500"},"JavaScript")],-1),e("pre",{class:"p-5 overflow-x-auto text-xs leading-relaxed font-mono"},[e("code",{class:"text-zinc-800 dark:text-zinc-200"},[e("span",{class:"text-zinc-500"},"// Get unified view of ANY event across ALL platforms"),t(` 14`),e("span",{class:"text-purple-600 dark:text-purple-400"},"const"),t(" response = "),e("span",{class:"text-purple-600 dark:text-purple-400"},"await"),t(),e("span",{class:"text-blue-600 dark:text-blue-400"},"fetch"),t("("),e("span",{class:"text-emerald-600 dark:text-emerald-400"},"'https://api.probalytics.io/api/v1/markets'"),t(`, { 15 headers: { `),e("span",{class:"text-emerald-600 dark:text-emerald-400"},"'Authorization'"),t(": "),e("span",{class:"text-emerald-600 dark:text-emerald-400"},"'Bearer api_xxx:sk_xxx'"),t(` } 16}) 17`),e("span",{class:"text-purple-600 dark:text-purple-400"},"const"),t(" event = "),e("span",{class:"text-purple-600 dark:text-purple-400"}
17,"await"),t(" response."),e("span",{class:"text-blue-600 dark:text-blue-400"},"json"),t(`() 18 19`),e("span",{class:"text-zinc-500"},"// Same schema regardless of source!"),t(` 20console.`),e("span",{class:"text-blue-600 dark:text-blue-400"},"log"),t(`(event.platforms) 21`),e("span",{class:"text-zinc-500"},"// { polymarket: { price: 0.52, volume: 1200000 },"),t(` 22`),e("span",{class:"text-zinc-500"},"// kalshi: { price: 0.48, volume: 800000 } }"),t(` 23 24`),e("span",{class:"text-zinc-500"},"// No parsing, no mapping, no normalization code")])],-1)])]),_:1})]),_:1}),r(m,null,{default:d(()=>[r(p,{label:"Inspiration",title:"What you can build",description:"Cross-platform features that weren't possible before",centered:""}),e("div",j,[(o(),i(u,null,b(f,(a,x)=>e("div",{key:a.title,class:C(["p-4 sm:p-6",[x<2?"border-b border-zinc-200 dark:border-white/10":"",x%2===0?"border-r border-zinc-200 dark:border-white/10":""]])},[e("div",G,[r(n,{name:a.icon,class:"w-5 h-5 text-amber-500"},null,8,["name"]),e("h3",Q,l(a.title),1)]),e("p",U,l(a.description),1)],2)),64))])]),_:1}),r(m,{"bg-alt":""},{default:d(()=>[r(p,{label:"Comparison",title:"Probalytics vs the alternatives",centered:""}),e("div",V,[e("table",W,[s[8]||(s[8]=e("thead",null,[e("tr",{class:"border-b border-zinc-300 dark:border-white/10"},[e("th",{class:"text-left py-4 px-4 text-sm font-semibold text-zinc-900 dark:text-white"},"Feature"),e("th",{class:"text-center py-4 px-4 text-sm font-semibold text-emerald-600 dark:text-emerald-400"},"Probalytics"),e("th",{class:"text-center py-4 px-4 text-sm font-semibold text-zinc-500"},"Other Aggregators"),e("th",{class:"text-center py-4 px-4 text-sm font-semibold text-zinc-500"},"Direct APIs")])],-1)),e("tbody",Y,[(o(),i(u,null,b(h,a=>e("tr",{key:a.feature,class:"border-b border-zinc-200 dark:border-white/5"},[e("td",J,l(a.feature),1),e("td",K,[a.probalytics===!0?(o(),c(n,{key:0,name:"ph:check-circle-fill",class:"w-5 h-5 text-emerald-500 mx-auto"})):a.probalytics===!1?(o(),c(n,{key:1,name:"ph:x-circle",class:"w-5 h-5 text-red-400 mx-auto"})):(o(),i("span",q,l(a.probalytics),1))]),e("td",$,[a.aggregators===!0?(o(),c(n,{key:0,name:"ph:check-circle-fill",class:"w-5 h-5 text-emerald-500 mx-auto"})):a.aggregators===!1?(o(),c(n,{key:1,name:"ph:x-circle",class:"w-5 h-5 text-red-400 mx-auto"})):(o(),i("span",X,l(a.aggregators),1))]),e("td",Z,[a.direct===!0?(o(),c(n,{key:0,name:"ph:check-circle-fill",class:"w-5 h-5 text-emerald-500 mx-auto"})):a.direct===!1?(o(),c(n,{key:1,name:"ph:x-circle",class:"w-5 h-5 text-red-400 mx-auto"})):(o(),i("span",ee,l(a.direct),1))])])),64))])])])]),_:1}),r(y,{badge:{icon:"ph:rocket-launch",text:"Start Building"},title:"Ready to ship your prediction market app?",description:"Start building with unified prediction market data today.","cta-text":"Sign up now"})]),r(z)])}}});
24export{pe as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.