[{"data":1,"prerenderedAt":637},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fapi\u002Fquickstart":3,"docs-nav":487},{"id":4,"title":5,"body":6,"description":478,"extension":479,"meta":480,"navigation":481,"order":482,"path":483,"seo":484,"stem":485,"__hash__":486},"docs\u002Fdocs\u002F4.api\u002F2.quickstart.md","API quickstart",{"type":7,"value":8,"toc":472},"minimark",[9,28,33,68,151,157,161,168,214,217,394,406,410,434,448,452,468],[10,11,12,13,18,19,23,24,27],"p",{},"You need an API key — see ",[14,15,17],"a",{"href":16},"\u002Fdocs\u002Fapi\u002Fauthentication","API authentication",".\nReplace ",[20,21,22],"code",{},"YOUR_API_KEY"," and the order ID ",[20,25,26],{},"105002"," below with your own.",[29,30,32],"h2",{"id":31},"_1-check-your-account","1. Check your account",[34,35,40],"pre",{"className":36,"code":37,"language":38,"meta":39,"style":39},"language-bash shiki shiki-themes github-light github-dark","curl https:\u002F\u002Fapi.trafficox.com\u002Fapi\u002Fv1\u002Fme \\\n  -H \"Api-Key: YOUR_API_KEY\"\n","bash","",[20,41,42,59],{"__ignoreMap":39},[43,44,47,51,55],"span",{"class":45,"line":46},"line",1,[43,48,50],{"class":49},"sScJk","curl",[43,52,54],{"class":53},"sZZnC"," https:\u002F\u002Fapi.trafficox.com\u002Fapi\u002Fv1\u002Fme",[43,56,58],{"class":57},"sj4cs"," \\\n",[43,60,62,65],{"class":45,"line":61},2,[43,63,64],{"class":57},"  -H",[43,66,67],{"class":53}," \"Api-Key: YOUR_API_KEY\"\n",[34,69,73],{"className":70,"code":71,"language":72,"meta":39,"style":39},"language-json shiki shiki-themes github-light github-dark","{\n  \"email\": \"you@example.com\",\n  \"username\": \"yourname\",\n  \"balance\": 1234.56,\n  \"default_state\": \"trusted\",\n  \"landing_code\": \"ABCDEFGHI\"\n}\n","json",[20,74,75,81,95,108,121,134,145],{"__ignoreMap":39},[43,76,77],{"class":45,"line":46},[43,78,80],{"class":79},"sVt8B","{\n",[43,82,83,86,89,92],{"class":45,"line":61},[43,84,85],{"class":57},"  \"email\"",[43,87,88],{"class":79},": ",[43,90,91],{"class":53},"\"you@example.com\"",[43,93,94],{"class":79},",\n",[43,96,98,101,103,106],{"class":45,"line":97},3,[43,99,100],{"class":57},"  \"username\"",[43,102,88],{"class":79},[43,104,105],{"class":53},"\"yourname\"",[43,107,94],{"class":79},[43,109,111,114,116,119],{"class":45,"line":110},4,[43,112,113],{"class":57},"  \"balance\"",[43,115,88],{"class":79},[43,117,118],{"class":57},"1234.56",[43,120,94],{"class":79},[43,122,124,127,129,132],{"class":45,"line":123},5,[43,125,126],{"class":57},"  \"default_state\"",[43,128,88],{"class":79},[43,130,131],{"class":53},"\"trusted\"",[43,133,94],{"class":79},[43,135,137,140,142],{"class":45,"line":136},6,[43,138,139],{"class":57},"  \"landing_code\"",[43,141,88],{"class":79},[43,143,144],{"class":53},"\"ABCDEFGHI\"\n",[43,146,148],{"class":45,"line":147},7,[43,149,150],{"class":79},"}\n",[10,152,153,156],{},[20,154,155],{},"balance"," is your total balance in USD.",[29,158,160],{"id":159},"_2-get-yesterdays-stats-by-country","2. Get yesterday's stats by country",[10,162,163,164,167],{},"Statistics are requested with ",[20,165,166],{},"POST"," and a JSON body:",[34,169,171],{"className":36,"code":170,"language":38,"meta":39,"style":39},"curl -X POST https:\u002F\u002Fapi.trafficox.com\u002Fapi\u002Fv1\u002Fpopunder\u002Fbuy_orders\u002F105002\u002Fstats\u002Fcountries \\\n  -H \"Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"date_start\":\"2026-10-25\",\"date_end\":\"2026-10-25\"}'\n",[20,172,173,188,197,206],{"__ignoreMap":39},[43,174,175,177,180,183,186],{"class":45,"line":46},[43,176,50],{"class":49},[43,178,179],{"class":57}," -X",[43,181,182],{"class":53}," POST",[43,184,185],{"class":53}," https:\u002F\u002Fapi.trafficox.com\u002Fapi\u002Fv1\u002Fpopunder\u002Fbuy_orders\u002F105002\u002Fstats\u002Fcountries",[43,187,58],{"class":57},[43,189,190,192,195],{"class":45,"line":61},[43,191,64],{"class":57},[43,193,194],{"class":53}," \"Api-Key: YOUR_API_KEY\"",[43,196,58],{"class":57},[43,198,199,201,204],{"class":45,"line":97},[43,200,64],{"class":57},[43,202,203],{"class":53}," \"Content-Type: application\u002Fjson\"",[43,205,58],{"class":57},[43,207,208,211],{"class":45,"line":110},[43,209,210],{"class":57},"  -d",[43,212,213],{"class":53}," '{\"date_start\":\"2026-10-25\",\"date_end\":\"2026-10-25\"}'\n",[10,215,216],{},"The response is keyed by country code:",[34,218,220],{"className":70,"code":219,"language":72,"meta":39,"style":39},"{\n  \"US\": {\n    \"hits\": 63633,\n    \"unique\": 28083,\n    \"desktop\": 40000,\n    \"mobile\": 23633,\n    \"spent\": 82.57,\n    \"cpm\": 1.298,\n    \"winrate\": 12.5,\n    \"conversions\": 150,\n    \"cost_per_conversion\": 0.55,\n    \"conversion_rate\": 0.236,\n    \"conversion_revenue\": 120.5,\n    \"profit\": 37.93\n  }\n}\n",[20,221,222,226,234,246,258,270,282,294,307,320,333,346,359,372,383,389],{"__ignoreMap":39},[43,223,224],{"class":45,"line":46},[43,225,80],{"class":79},[43,227,228,231],{"class":45,"line":61},[43,229,230],{"class":57},"  \"US\"",[43,232,233],{"class":79},": {\n",[43,235,236,239,241,244],{"class":45,"line":97},[43,237,238],{"class":57},"    \"hits\"",[43,240,88],{"class":79},[43,242,243],{"class":57},"63633",[43,245,94],{"class":79},[43,247,248,251,253,256],{"class":45,"line":110},[43,249,250],{"class":57},"    \"unique\"",[43,252,88],{"class":79},[43,254,255],{"class":57},"28083",[43,257,94],{"class":79},[43,259,260,263,265,268],{"class":45,"line":123},[43,261,262],{"class":57},"    \"desktop\"",[43,264,88],{"class":79},[43,266,267],{"class":57},"40000",[43,269,94],{"class":79},[43,271,272,275,277,280],{"class":45,"line":136},[43,273,274],{"class":57},"    \"mobile\"",[43,276,88],{"class":79},[43,278,279],{"class":57},"23633",[43,281,94],{"class":79},[43,283,284,287,289,292],{"class":45,"line":147},[43,285,286],{"class":57},"    \"spent\"",[43,288,88],{"class":79},[43,290,291],{"class":57},"82.57",[43,293,94],{"class":79},[43,295,297,300,302,305],{"class":45,"line":296},8,[43,298,299],{"class":57},"    \"cpm\"",[43,301,88],{"class":79},[43,303,304],{"class":57},"1.298",[43,306,94],{"class":79},[43,308,310,313,315,318],{"class":45,"line":309},9,[43,311,312],{"class":57},"    \"winrate\"",[43,314,88],{"class":79},[43,316,317],{"class":57},"12.5",[43,319,94],{"class":79},[43,321,323,326,328,331],{"class":45,"line":322},10,[43,324,325],{"class":57},"    \"conversions\"",[43,327,88],{"class":79},[43,329,330],{"class":57},"150",[43,332,94],{"class":79},[43,334,336,339,341,344],{"class":45,"line":335},11,[43,337,338],{"class":57},"    \"cost_per_conversion\"",[43,340,88],{"class":79},[43,342,343],{"class":57},"0.55",[43,345,94],{"class":79},[43,347,349,352,354,357],{"class":45,"line":348},12,[43,350,351],{"class":57},"    \"conversion_rate\"",[43,353,88],{"class":79},[43,355,356],{"class":57},"0.236",[43,358,94],{"class":79},[43,360,362,365,367,370],{"class":45,"line":361},13,[43,363,364],{"class":57},"    \"conversion_revenue\"",[43,366,88],{"class":79},[43,368,369],{"class":57},"120.5",[43,371,94],{"class":79},[43,373,375,378,380],{"class":45,"line":374},14,[43,376,377],{"class":57},"    \"profit\"",[43,379,88],{"class":79},[43,381,382],{"class":57},"37.93\n",[43,384,386],{"class":45,"line":385},15,[43,387,388],{"class":79},"  }\n",[43,390,392],{"class":45,"line":391},16,[43,393,150],{"class":79},[10,395,396,397,400,401,405],{},"To narrow the stats, add filters to the body — for example\n",[20,398,399],{},"\"countries\":[\"US\",\"DE\"]",". See ",[14,402,404],{"href":403},"\u002Fdocs\u002Fapi\u002Fstatistics","Statistics requests",".",[29,407,409],{"id":408},"_3-pause-a-buy-order","3. Pause a buy order",[34,411,413],{"className":36,"code":412,"language":38,"meta":39,"style":39},"curl -X POST https:\u002F\u002Fapi.trafficox.com\u002Fapi\u002Fv1\u002Fpopunder\u002Fbuy_orders\u002F105002\u002Fpause \\\n  -H \"Api-Key: YOUR_API_KEY\"\n",[20,414,415,428],{"__ignoreMap":39},[43,416,417,419,421,423,426],{"class":45,"line":46},[43,418,50],{"class":49},[43,420,179],{"class":57},[43,422,182],{"class":53},[43,424,425],{"class":53}," https:\u002F\u002Fapi.trafficox.com\u002Fapi\u002Fv1\u002Fpopunder\u002Fbuy_orders\u002F105002\u002Fpause",[43,427,58],{"class":57},[43,429,430,432],{"class":45,"line":61},[43,431,64],{"class":57},[43,433,67],{"class":53},[10,435,436,437,440,441,444,445,405],{},"The response is the full buy order with ",[20,438,439],{},"\"state\": \"paused\"",". To start it again,\ncall ",[20,442,443],{},"\u002Fplay"," the same way — it works only on a paused order; otherwise you get\n",[20,446,447],{},"422 {\"error\":\"Cannot activate the Buy Order\"}",[29,449,451],{"id":450},"next","Next",[453,454,455,463],"ul",{},[456,457,458,462],"li",{},[14,459,461],{"href":460},"\u002Fdocs\u002Fapi\u002Freference","API reference"," — every endpoint",[456,464,465,467],{},[14,466,404],{"href":403}," — filters, breakdowns and fields",[469,470,471],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}",{"title":39,"searchDepth":97,"depth":97,"links":473},[474,475,476,477],{"id":31,"depth":61,"text":32},{"id":159,"depth":61,"text":160},{"id":408,"depth":61,"text":409},{"id":450,"depth":61,"text":451},"Three requests to get going — check your account, pull yesterday's stats by country, and pause an order.","md",{},true,null,"\u002Fdocs\u002Fapi\u002Fquickstart",{"title":5,"description":478},"docs\u002F4.api\u002F2.quickstart","rTZ_E3pbj82n8Ag2ANTqFly5Ssv0QaCqp5Eyr_b9AnE",[488],{"title":489,"path":490,"stem":491,"children":492},"Docs","\u002Fdocs","docs",[493,497,523,578,617,632],{"title":494,"path":490,"stem":495,"description":496},"TrafficOX Documentation","docs\u002Findex","How to buy and sell traffic on TrafficOX — from your first top-up to tracking conversions.",{"title":498,"path":499,"stem":500,"children":501,"page":522},"Getting Started","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started",[502,507,512,517],{"title":503,"path":504,"stem":505,"description":506},"Create your account","\u002Fdocs\u002Fgetting-started\u002Faccount","docs\u002F1.getting-started\u002F1.account","Sign up, confirm your email, complete your profile and secure your account.",{"title":508,"path":509,"stem":510,"description":511},"Top up your balance","\u002Fdocs\u002Fgetting-started\u002Ftop-up","docs\u002F1.getting-started\u002F2.top-up","Payment methods, minimum amounts, VAT, and what your first top-up unlocks.",{"title":513,"path":514,"stem":515,"description":516},"How your balance works","\u002Fdocs\u002Fgetting-started\u002Fbalance","docs\u002F1.getting-started\u002F3.balance","Buyer, seller and reserved balance — what each one holds, what you can spend and what you can withdraw.",{"title":518,"path":519,"stem":520,"description":521},"Referral program","\u002Fdocs\u002Fgetting-started\u002Freferrals","docs\u002F1.getting-started\u002F4.referrals","Invite advertisers and publishers with your link and earn 5% from them.",false,{"title":524,"path":525,"stem":526,"children":527,"page":522},"Advertisers","\u002Fdocs\u002Fadvertisers","docs\u002F2.advertisers",[528,533,538,543,548,553,558,563,568,573],{"title":529,"path":530,"stem":531,"description":532},"How buy orders work","\u002Fdocs\u002Fadvertisers\u002Fbuy-orders","docs\u002F2.advertisers\u002F01.buy-orders","What a buy order is, the ad formats you can buy, and what each order status means.",{"title":534,"path":535,"stem":536,"description":537},"Create a buy order","\u002Fdocs\u002Fadvertisers\u002Fcreate-buy-order","docs\u002F2.advertisers\u002F02.create-buy-order","Walk through the five steps of the order wizard — general settings, ads, targeting, pricing and limits.",{"title":539,"path":540,"stem":541,"description":542},"Targeting reference","\u002Fdocs\u002Fadvertisers\u002Ftargeting","docs\u002F2.advertisers\u002F03.targeting","Every targeting option in a buy order — what it does, its default, and how to narrow or block traffic.",{"title":544,"path":545,"stem":546,"description":547},"Landing pages and creatives","\u002Fdocs\u002Fadvertisers\u002Flanding-pages","docs\u002F2.advertisers\u002F04.landing-pages","Save landing page URLs and banner images in the Media Library, get them approved, and reuse them across orders.",{"title":549,"path":550,"stem":551,"description":552},"Track conversions","\u002Fdocs\u002Fadvertisers\u002Ftrack-conversions","docs\u002F2.advertisers\u002F05.track-conversions","Send conversions back to TrafficOX with a server-to-server postback or a pixel, and see cost per conversion and ROI in your stats.",{"title":554,"path":555,"stem":556,"description":557},"URL macros","\u002Fdocs\u002Fadvertisers\u002Furl-macros","docs\u002F2.advertisers\u002F06.url-macros","Placeholders you can put in your landing page URL — TrafficOX fills them in on every click.",{"title":559,"path":560,"stem":561,"description":562},"Domain filters","\u002Fdocs\u002Fadvertisers\u002Fdomain-filters","docs\u002F2.advertisers\u002F07.domain-filters","Keep lists of sites to buy from or to avoid, and attach them to your buy orders.",{"title":564,"path":565,"stem":566,"description":567},"Automation rules","\u002Fdocs\u002Fadvertisers\u002Fautomation-rules","docs\u002F2.advertisers\u002F08.automation-rules","Let TrafficOX raise or lower bids and black- or whitelist sources for you, based on your statistics.",{"title":569,"path":570,"stem":571,"description":572},"Read your statistics","\u002Fdocs\u002Fadvertisers\u002Fstatistics","docs\u002F2.advertisers\u002F09.statistics","Where to find your numbers — the dashboard, order statistics and total stats — and what each metric means.",{"title":574,"path":575,"stem":576,"description":577},"Buy through an RTB feed","\u002Fdocs\u002Fadvertisers\u002Frtb-feeds","docs\u002F2.advertisers\u002F10.rtb-feeds","Connect your DSP endpoint so TrafficOX sends you bid requests and you answer with bids.",{"title":579,"path":580,"stem":581,"children":582,"page":522},"Publishers","\u002Fdocs\u002Fpublishers","docs\u002F3.publishers",[583,588,593,598,603,608,612],{"title":584,"path":585,"stem":586,"description":587},"How selling works","\u002Fdocs\u002Fpublishers\u002Fhow-selling-works","docs\u002F3.publishers\u002F1.how-selling-works","Sell orders, the formats you can sell, and how your sites are approved before traffic is bought.",{"title":589,"path":590,"stem":591,"description":592},"Add and verify your domains","\u002Fdocs\u002Fpublishers\u002Fdomains","docs\u002F3.publishers\u002F2.domains","Add your sites, prove you own them, and get them approved so their traffic is bought.",{"title":594,"path":595,"stem":596,"description":597},"Create a sell order","\u002Fdocs\u002Fpublishers\u002Fcreate-sell-order","docs\u002F3.publishers\u002F3.create-sell-order","Set up a placement — name, price floor, fallback URL and the settings for popunder or sticky banners.",{"title":599,"path":600,"stem":601,"description":602},"Install the code","\u002Fdocs\u002Fpublishers\u002Finstall-code","docs\u002F3.publishers\u002F4.install-code","Put your sell order's script on your site, pass a sub ID, and add the lite script to the rest of your pages.",{"title":604,"path":605,"stem":606,"description":607},"Better Ads status","\u002Fdocs\u002Fpublishers\u002Fbetter-ads","docs\u002F3.publishers\u002F5.better-ads","Check whether ad-quality lists and Chrome's filters affect your domains, and what to do if they do.",{"title":569,"path":609,"stem":610,"description":611},"\u002Fdocs\u002Fpublishers\u002Fstatistics","docs\u002F3.publishers\u002F6.statistics","Your earnings, sold and returned traffic on the dashboard, per sell order and in total.",{"title":613,"path":614,"stem":615,"description":616},"Withdraw your earnings","\u002Fdocs\u002Fpublishers\u002Fwithdrawals","docs\u002F3.publishers\u002F7.withdrawals","Request a payout of your seller balance by Capitalist, Paxum or wire transfer.",{"title":618,"path":619,"stem":620,"children":621,"page":522},"Api","\u002Fdocs\u002Fapi","docs\u002F4.api",[622,625,626,629],{"title":17,"path":16,"stem":623,"description":624},"docs\u002F4.api\u002F1.authentication","Create an API key, authenticate your requests, and understand the API's conventions and errors.",{"title":5,"path":483,"stem":485,"description":478},{"title":461,"path":460,"stem":627,"description":628},"docs\u002F4.api\u002F3.reference","Every endpoint of the TrafficOX API, grouped by what it manages.",{"title":404,"path":403,"stem":630,"description":631},"docs\u002F4.api\u002F4.statistics","Breakdowns, filters, sub-breakdowns and the fields returned by every statistics endpoint.",{"title":633,"path":634,"stem":635,"description":636},"Glossary","\u002Fdocs\u002Fglossary","docs\u002F5.glossary","The terms used across TrafficOX and these docs, in plain words.",1793025805822]