ApiTraffic helps engineering teams save development time so they can ship features faster.
Once you’ve installed the ApiTraffic plugin into your Strapi app, each request/response will be sent to the ApiTraffic, processed, and will then appear within the desired bucket.
From within your ApiTraffic account you will see real-time requests to your API, API analytics, the load size of the response, etc. Additionally, multi-step workflows can be created that will trigger based on the request data. This enables developers to integrate with over 240 applications without adding any additional code or logic to their Strapi application.
Visit our knowledgebase for the complete documentation.
Data can be redacted either before it leaves your server or once it arrives to ApiTraffic for processing. Data redaction settings do not require any code changes as all configuration is done within your ApiTraffic account and pushed down to each connected server.
Learn more about redacting data.
Exclusions can be configured in cases where certain endpoints should not be logged. Like data redactions (above), no integration specific changes are required to exclude request that match a certain criteria.
Learn more about excluding requests.
Add ApiTraffic to your Strapi application quickly by following these steps:
An active ApiTraffic account is required to connect Strapi to ApiTraffic. Please create a free trial if you do not already have an account.
IMPORTANT: Node 18+ required.
npm i @apitraffic/strapi --save
The middleware must be added to the config/middlewares.js
file.
module.exports = [
//...
'plugin::apitraffic.apitraffic',
]
Once installed, 2 environment variables must be added which tell the plugin where to send the data. These variables can either be added to the .env
file or set in the same way other environment variables are being set.
Environment Variable | Required | Type | Details |
---|---|---|---|
API_TRAFFIC_TOKEN | Yes | String | Ingest token provided from your ApiTraffic account. |
API_TRAFFIC_BUCKET | Yes | String | The bucket the data should be sent to when ingested. |
To get started: Star & watch this repository to stay updated on the latest changes.
Follow us on our Blog and on X.
Chat with the ApiTraffic team and other memebers on Discord and follow our tutorials and other videos on YouTube.
Here are some ways you can help improve ApiTraffic:
- Give ApiTraffic a try and share your feedback to help make ApiTraffic even better for you. Feel free to reach out to us on Discord!
- Join our Discord to connect with other members, share your experiences, and learn from one another.
- Submit a pull request to any of our open source repositories. Be sure to review the contribution guide in the repository for detailed instructions on how to get started. We’re excited to see your contributions!