Moesif Apigee Integration

The Moesif integration for Apigee enables you to get powerful API analytics and monetization capabilities for your Apigee environment. It works by logging API traffic to Moesif API Analytics and Monetization platform.

With the Moesif plugin for Apigee, you can:

The integration is a javascript policy which installs within the Apigee console in a few clicks.

1. Add a Javascript policy

  • Within the Apigee console, go to your API Proxy and click add a policy.
  • Select “Javascript” within the drop down
  • Select a file and upload the file moesif-api-analytics.js.

2. Configure policy

Within the XML added, define the properties below to add your Moesif Application Id

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Javascript continueOnError="true" enabled="true" timeLimit="200" name="JS-MOESIF">
  <DisplayName>JS-MOESIF-API-ANALYTICS</DisplayName>
  <Properties>
    <Property name="applicationId">Your Moesif Application Id</Property>
    <Property name="logBody">true</Property>
    <Property name="debug">false</Property>
  </Properties>
  <ResourceURL>jsc://moesif-api-analytics.js</ResourceURL>
</Javascript>

Your Moesif Application Id can be found in the Moesif Portal. After signing up for a Moesif account, your Moesif Application Id will be displayed during the onboarding steps or by going to API keys section within Moesif settings.

3. Enable the Policy

Within Proxy Endoints, attach the Moesif policy to the APIs you want monitored by Moesif.

High Volume APIs

For high volume APIs, it’s strongly recommended to leverage Moesif’s secure proxy to buffer requests. This ensures optimal performance of your API gateway and infrastructure.

Limitations

This policy has been recently released and still in preview. Moesif dynamic sampling and governance rules are not yet supported but coming soon.