–Hidden comment

Use attributes in format region_from and region_to= to change the languages showing in language switcher.
Available regions are:
europe_from europe_to
asia_from asia_to
mideast_from mideast_to
america_from america_to

europe_from=0 europe_to=22 will put all languages (ordered in language switcher settings) from 1 to 21 to Europe region:
asia_from=22 asia_to=25 will put all languages from 23 to 24 (so only 2) into Asia region.


What is an API?

In layman’s terms, API, or Application Programming Interface, is the go-between two applications that allow them to communicate with each other. The Application indicates any software that performs a specific task and the Interface describes how the two applications interact and share information. In other words, an API enables developers to access data from another program without having to understand its underlying functionality, ensuring smooth communication between various applications.

API in Post Affiliate Pro

In Post Affiliate Pro, API uses a library written in PHP (for example PapApi.class.php or PapApiNamespace.class.php). All requests and responses the client uses to communicate with the server are encoded in JSON format. We only work with the PHP based back end, so while requests can be sent in any programming language, they have to follow our JSON format.

Everything that can be done through the user interface or merchant/affiliate panel can also be done through an API as well. That includes getting statistical data, setting configuration, transactions, campaigns, and banners, as well as retrieving, editing, and adding affiliates. You can also create your own reports in API, show statistics to your affiliates in your systems, create SSOs, or register and sign affiliates in from your website. The authorization process is the same as with the user interface: filling out a name and a password.

Our library uses two options/approaches on how to use API, a High Level API and a Low Level API. High Level API works directly in the script with an object (for example Pap_Api_Transaction or Pap_Api_Affiliate). By using these objects you can edit parts of the system; change commissions, add or edit affiliates, etc. But only a few objects can be used like this in our library. That’s why for other instances it is possible to use the Low Level API access, where requests are created similarly as in the user interface. By using the browser debug tools to check the class and function of a request, the merchant can then create the same request in the API.

Why it’s good to use API and its benefits

APIs are the best way to ensure information flows smoothly between systems by serving as a bridge between them. Furthermore, by acting as a translator between the applications, they solve the problem of too many programming languages that are incompatible with each other.

  • APIs can streamline business operations – by streamlining the company’s finances, opening up new channels of communication (so it’s available for all generations), etc.
  • APIs can ease integration – allowing multiple systems, platforms, and applications to communicate, share information, and perform various tasks.
  • APIs can automate tasks – APIs allow easy integration of applications that automate manual tasks and ensure a smooth transition between applications, minimizing the amount of human effort required.
  • APIs can help reach new markets – APIs allow effective implementation of third-party products/services, new applications, and digital products, thus opening a way to reach and target new markets that were previously out of reach.
  • APIs can help lower costs – APIs eliminate the need to start a new project from scratch and reduce the overall cost of producing new applications and products.
Integrate your workflow
Post Affiliate Pro supports a number of integrations to make your affiliate marketing workflow even easier.
Try today
Integrate your workflow

Frequently Asked Questions

  • Does Post Affiliate Pro support REST API?

    Post Affiliate Pro currently doesn´t support REST API. As mentioned in the article, we provide a PHP object library that helps facilitate requests and responses to Post Affiliate Pro API. For more information, you can visit the API Requirements page.

  • Can I use an API for tracking?

    API can also be used for tracking purposes. In Post Affiliate Pro, there are two ways to use an API for tracking: Pap_Api_ClickTracker and Pap_Api_SaleTracker. For more information about how to use them, you can visit our Tracking API page.

Our website uses cookies. By continuing we assume your permission to deploy cookies as detailed in our privacy and cookies policy.


Schedule a one-on-one call and discover how Post Affiliate Pro can benefit your business.

We’re available on multiple dates

Schedule a call