# Mexico Insights
source: https://developer.mastercard.com/transaction-insights/documentation/index.md

## Overview {#overview}

The regulations set by the Central Bank of Mexico requiring payment system operators like Mastercard to expose transaction data volumes will have significant implications for the payments industry in Mexico. This move aims to promote transparency and enable other clearinghouse entities, such as issuers, acquirers, and the public in general, to access and analyze transaction data.

The Mexico Insights API integration provided by Mastercard offers a REST API that allows users to retrieve aggregated transaction data. This data represents the counts of transactions in various categories. The API response includes individual fields for each data point, enabling data analysis and Mexico Insights. This functionality will be valuable for stakeholders in the payments ecosystem to gain a deeper understanding of transaction trends and patterns.

## How It Works {#how-it-works}

The Mexico Insights API is a powerful tool that provides aggregated information based on the search criteria provided by the user. It allows you to query the database using inputs such as transaction type, country code, time period, and more. The API then processes these inputs and returns aggregated transaction data that matches the criteria, giving you valuable insights directly within your application.

The consumer (which can be an issuers, acquirers, clearinghouses, and authorized public entities) can request POS transactional activity on a monthly, yearly, or quarterly basis using Mexico Insights API. The following diagram shows a high-level flow between the Consumer, Mexico Insights API, and the Mastercard Data Warehouse.

![](https://static.developer.mastercard.com/content/transaction-insights/uploads/how_it_works.png)

**Workflow:**

1. Consumer requests with their specified parameters from the Mexico Insights API.
2. The Mexico Insights API forwards the request to the Mastercard Data Warehouse to search for the aggregated data.
3. Mastercard Data Warehouse fetches the required aggregated data.
4. The Mexico Insights API sends the aggregated data to the consumer.

### Good to Know {#good-to-know}

* We have created a [Reference Application](https://developer.mastercard.com/transaction-insights/documentation/reference-app/index.md) to get you started.
* Refer to the [Use Cases](https://developer.mastercard.com/transaction-insights/documentation/use-cases/index.md) for additional details on how the API works.
* Refer to the [Tutorials and Guides](https://developer.mastercard.com/transaction-insights/documentation/tutorials-and-guides/index.md) for additional guidance.

## Next Steps {#next-steps}

When you are ready to use the APIs, refer to the [API Basics](https://developer.mastercard.com/transaction-insights/documentation/api-basics/index.md) page for API authentication, encryption, and environment details.
