Heat exposure is a growing public health concern, particularly in tropical regions like Brazil. However, the role of green spaces in mitigating heat-related health risks remains unclear. This study investigates the association between heat and circulatory and respiratory hospital admissions in Brazil (2008-2018) and assesses the potential mediating effect of different green space metrics. We conducted a three-stage analysis using a time-stratified quasi-Poisson regression model to estimate state-level heat-health associations. A meta-analysis was performed to obtain pooled national effects, followed by a meta-regression to assess the influence of green spaces. We considered four green metrics: NDVI, urban green area, natural forest, and total green area. Our results showed that extreme heat (99th percentile) significantly increased hospital admissions, with a 1 % increase in circulatory admissions for the overall population (RR: 1.01, 95 % CI: 1.00-1.03) and a 26% increase in respiratory admissions (RR: 1.26, 95 % CI: 1.22-1.30). Moderate heat (90th percentile) also increased respiratory admissions (RR: 1.13, 95 % CI: 1.11-1.15) but exhibited protective effects for specific subgroups in circulatory admissions. Regarding the mediating role of green areas, our findings suggest that while NDVI, urban green areas, and total green coverage mitigate heat-related health risks, their protective effects vary by age and sex. Under extreme heat conditions, a one standard deviation (SD) increase in urban green area was associated with a 0.6% (95%CI: 0.1 % - 1.1 %) reduction in circulatory admissions among individuals aged 65 and older. For heat-related respiratory admissions, under moderate heat conditions, a one SD increase in NDVI corresponded to a 3.4% (95 %CI: 2.1% - 4.7%) reduction in hospitalizations for the general population. Our findings suggest that while green areas can mitigate heat-related hospitalizations, their effectiveness depends on vegetation type, spatial distribution, and social vulnerability. These results emphasize the need for climate-adaptive urban planning and heat mitigation strategies tailored to local environmental and sociodemographic contexts.