Hi Savvy Affiliates! I’ve written a few posts about the API – from building blocks, to product search, and even real-world examples. What about all the other ways you could use the API to automate tasks and free up time? Let’s talk some common and useful ways to take advantage of the API.
First – A Recap:
- The API is a way for tech-savvy affiliates to retrieve data from ShareASale.
- It’s data about your account (sales data, click reports) or your merchant partners (creative, coupons, products).
1. Do you want to see your new sales each day?
LEDGER API – Create a script that pulls your new sales each day along with any past sales’ edits or voids.
2. Do you want to email yourself a summary of your daily performance?
TODAY’S STATS – E-mail yourself a summary of your daily performance by querying the Today’s Stats API.
3. Do you want to change out links if one of your Merchants go offline?
MERCHANT STATUS – Find out in real time which of your merchant partners are online, low funds, offline. Change out links on your site depending on which of your merchants isn’t online to avoid sending traffic to “link not active” pages on ShareASale. Re-enable their traffic when they come back online.
4. Do you want to automatically retrieve new Merchant banners?
CREATIVES: Get new creatives (banners, text links) your merchants have uploaded in the last month or less using the Merchant Creatives API. This is a great way to automatically grab new seasonal or promotional banners to insert into your sidebars or content.
5. Do you want to get your Merchant’s current deals and coupons quicker?
COUPON/DEAL: Retrieve just your merchant’s current (non-expired) deals and coupons without having to use the RSS coupon feed or log in to your account.
6. Do you want to find new Merchants without logging into your account?
NEW MERCHANT SEARCH: Wow! You’re getting serious traffic on “Teddy Bears” themed posts this month, but only have one merchant who offers stuffed animal products. Use the New Merchant Search by Product (keyword) API to find new merchants you can join who offer fitting products to insert into those viral posts.
As always, you can find the documentation for all our API requests under Tools >> Affiliate API in your ShareASale interface.
Happy Coding!
Julie Lin says
September 25, 2015 at 10:11 amDo you have sample api codes in python for daily performance report for of all clients from an account? Thanks.