Back

Hotmart API Essential Guide

Aug 15, 20246 minute read

What type of API does Hotmart provide?

Based on the search results provided, there is no specific information about what type of API Hotmart uses (e.g. REST, GraphQL, SOAP). The search results mainly discuss Hotmart's APIs in general terms, without specifying the architectural style.

The key points from the available information are:

  1. Hotmart makes its services available in the form of API products.

  2. Hotmart has a dedicated website called Hotmart Developers where developers can check out Hotmart's APIs.

  3. Hotmart offers APIs for different purposes, including:

    • Subscriptions API: For viewing information about subscribers' purchases, cancellations, reactivations, billings, etc.
    • Members Area API: For discovering information on modules, pages, students, and students' progress.
    • Sales API: For accessing sales information and transaction details.
  4. The search results do not explicitly mention whether Hotmart uses REST, GraphQL, SOAP, or any other specific API architectural style.

Without more specific information about Hotmart's API architecture, it's not possible to definitively state what type of API they use. To get an accurate answer, you would need to consult Hotmart's official API documentation or contact their developer support directly.

Does the Hotmart API have webhooks?

Yes, the official Hotmart API does offer webhooks. Hotmart provides a webhook system that allows you to receive real-time notifications about various events related to your products and sales.

Key Points to Consider:

  1. Webhooks are available through the Hotmart API.
  2. They allow for real-time notifications of events.
  3. You need to set up an endpoint on your server to receive these notifications.
  4. Proper authentication and security measures should be implemented when using webhooks.

Events You Can Subscribe To:

Hotmart's webhook system allows you to subscribe to several types of events. Some of the main event types include:

  1. Purchase: Notifies when a new purchase is made.
  2. Refund: Alerts when a refund is processed.
  3. Chargeback: Informs about chargebacks on transactions.
  4. Subscription: Notifies about subscription-related events (creation, cancellation, etc.).
  5. Affiliate: Provides information about affiliate-related activities.
  6. Product: Alerts about changes or updates to your products.

Best Practices:

  1. Implement proper error handling and logging for your webhook endpoint.
  2. Use HTTPS for secure communication.
  3. Validate the incoming webhook data to ensure it's from Hotmart.
  4. Process webhook events asynchronously to avoid timeouts.
  5. Set up retry mechanisms in case of temporary failures.

To use Hotmart's webhooks, you'll need to configure them in your Hotmart account and set up an endpoint on your server to receive and process the notifications. Always refer to the official Hotmart API documentation for the most up-to-date information on available events and implementation details.

Rate Limits and other limitations

Based on the search results provided, there is no specific information about the API Rate Limits of the Hotmart API. The search results do not contain any details about Hotmart's API rate limiting policies or practices.

However, I can provide some general information about API rate limiting that may be relevant:

What is API Rate Limiting?

API rate limiting is a set of measures put in place to help ensure the stability and performance of an API system. It works by setting limits on how many requests can be made within a certain period of time — usually a few seconds or minutes — and what actions can be taken.

Importance of API Rate Limiting

API rate limiting helps to:

  • Ensure the performance and stability of an API system
  • Avoid downtime and slow responses
  • Prevent malicious attacks
  • Mitigate security risks and data loss
  • Protect valuable resources and data
  • Save costs by preventing unnecessary requests

Common API Rate Limiting Methods

Some popular methods for implementing API rate limiting include:

  1. Token Bucket
  2. Leaky Bucket
  3. Fixed Window Counter
  4. Sliding Window Counter
  5. IP Throttling

Best Practices for API Rate Limiting

Some best practices to consider when implementing API rate limiting include:

  1. Assessing the size and scope of API call frequency
  2. Using dynamic rate limits
  3. Monitoring API user activity
  4. Setting appropriate API timeouts
  5. Using caching
  6. Providing feedback on rate limit errors
  7. Having a backup plan in place

While this information is not specific to Hotmart's API, it provides a general understanding of API rate limiting concepts and practices. To get accurate information about Hotmart API's specific rate limits, you would need to consult Hotmart's official API documentation or contact their support team directly.

Latest API Version

The most recent version of the Hotmart API is not explicitly mentioned in the provided search results. However, I can provide you with some key information about Hotmart's APIs:

Hotmart Developers

Hotmart Developers is the website where you can access Hotmart's APIs. This platform is designed for Creators who have their own team of developers and want to create more personalized analyses with their own systems.

Available API Products

Hotmart offers several API products that provide access to different types of information:

  1. Subscriptions API: Allows you to view information about subscribers' purchases, subscription cancellations, reactivations, billings, and changes to billing dates.

  2. Members Area API: Provides information on modules, pages, students, and students' progress.

  3. Sales API: Enables access to sales information, including sales history, transaction amounts and statuses, and price breakdowns.

What is an API?

An API (Application Programming Interface) is a set of information about software that enables communication between platforms through a series of standards and protocols. It allows developers to access standards from an API to create other software or applications.

Key Points to Consider

  • Hotmart's APIs provide secure access to data, blocking third-party access and setting permissions.
  • To use Hotmart's APIs, you'll likely need to visit the Hotmart Developers website for documentation and access.
  • The APIs are designed to help Creators integrate Hotmart data with their own systems for more personalized analysis.

While the search results don't provide information on the most recent version of the Hotmart API, it's recommended to check the Hotmart Developers website (developers.hotmart.com) for the most up-to-date information on API versions and documentation.

How to get a Hotmart developer account and API Keys?

To get a developer account for Hotmart and create an API integration, you'll need to follow these steps:

1. Sign up for a Hotmart account

First, you need to have a regular Hotmart account. If you don't have one already, you can sign up on the Hotmart website.

2. Access the Hotmart Developers portal

Once you have a Hotmart account, you can access the Hotmart Developers portal at https://developers.hotmart.com/. This is where you'll find the documentation and resources for integrating with Hotmart's API.

3. Request API access

To use the Hotmart API, you'll need to request access. This typically involves:

  • Logging into your Hotmart account
  • Navigating to the API or Integrations section
  • Requesting API access or generating API credentials

4. Obtain API credentials

Once your request is approved, you should receive API credentials. These usually include:

  • An API key
  • A secret key or token
  • Possibly a client ID

These credentials are essential for authenticating your API requests.

5. Review the API documentation

Familiarize yourself with the Hotmart API documentation available on the developers portal. This will provide information on:

  • Available endpoints
  • Authentication methods
  • Request and response formats
  • Rate limits and best practices

What can you do with the Hotmart API?

Based on the search results, here are the key data models you can interact with using the Hotmart API:

Subscriptions

  • View information about subscribers' purchases
  • Get subscription cancellations
  • Access reactivation data
  • Retrieve billing information
  • See changes to billing dates

Members Area

  • Get information on modules
  • Access page data
  • Retrieve student information
  • View students' progress

Sales

  • Access sales history
  • View amount and status of transactions
  • See price breakdowns
  • Get commission information for sale participants

Products

  • Manage product information
  • Create new offers
  • Retrieve pricing information

Affiliations

  • Access affiliate hotlinks
  • Create automated promotions

Reports

  • Retrieve purchase details
  • Access affiliate sales data (if authorized by creator)

User

  • Get information about the user using the API

Key points:

  • The API allows developers to automate actions and sync Hotmart data with other systems
  • Authentication is required to access the API endpoints
  • Data can be accessed in real-time via webhooks or retrieved on-demand via API calls
  • Detailed documentation is available on the Hotmart Developers site

The Hotmart API provides comprehensive access to core business data, enabling developers to build custom integrations and automate workflows around products, sales, subscriptions, and user management.