GPT and liver cancer: The incidence of all grade ALT and AST elevation was 13.3% and 14.2% in primary liver cancers (95% CI 11.1-16.0 and 9.93-20.36) vs. 4.92% and 5.38% in other solid tumors (95% CI 4.21-5.76 and 4.52-5.76 in other solid tumors; <i>p</i> <0.001/<i>p</i><0.001).<h4>Conclusion</h4>Our study indicates that anti-PD-1 is associated with a higher risk of all- and high-grade hepatotoxicity compared to anti-PD-L1, and primary liver cancers are associated with a higher risk of all- and high-grade hepatotoxicity compared to other solid tumors.