For access api uses 8888 or aapanel port? because if uses that port it show
{"error":"Erro cURL: Failed to connect to IP port 8888: Connection refused"}
and if use aapanel port it show
{"error":"Resposta bruta: HTTP\/1.1 302 Moved Temporarily\r\nServer: nginx\r\nDate: Wed, 21 May 2025 19:45:32 GMT\r\nContent-Type: text\/html\r\nContent-Length: 138\r\nConnection: close\r\nLocation: https:\/\/ip\/data?action=getData\r\nAlt-Svc: h3=\":23182\"; ma=86400,h3-29=\":23182\"; ma=86400\r\nX-Quic: h3\r\nStrict-Transport-Security: max-age=31536000; includeSubdomains; preload\r\nStrict-Transport-Security: max-age=31536000\r\nX-Frame-Options: SAMEORIGIN\r\n\r\n\r\n