API

Introduction

We're not quite there yet, but we're working on a proper API so you can build systems around our links directly into your own CMS or application — searching for suitable ads, generating links automatically, pulling statistics, and listing which affiliate programs are available to you.

In the meantime, there's one thing you can already do server-side: fetch the rendered HTML for an ad directly, the same way the html type works in the browser.

For instance, in PHP you can write the following to store or output that HTML.

file_get_contents('https://betweenaffiliates.com/t:html/c:fiverr/w:600/h:200/');