This research aims to investigate the effects of seawater parameters like salinity, pH, and temperature on the external corrosion behaviour and microhardness of offshore oil and gas carbon steel pipes. The immersion tests were performed for 28 days following ASTM G-1 standards, simulating controlled artificial marine environments with varying pH levels, salinities, and temperatures. Besides, Field emission scanning electron microscopy (FESEM) analysis is performed to study the corrosion morphology. Additionally, a Vickers microhardness tester was used for microhardness analysis. The results revealed that an increase in salinity from 33.18 to 61.10 ppt can reduce the corrosion rate by 28%. In contrast, variations in seawater pH have a significant effect on corrosion rate, with a pH decrease from 8.50 to 7 causing a 42.54% increase in corrosion rate. However, the temperature of seawater was found to be the most prominent parameter, resulting in a 76.13% increase in corrosion rate and a 10.99% reduction in the microhardness of offshore pipelines. Moreover, the response surface methodology (RSM) modelling is used to determine the optimal seawater parameters for carbon steel pipes. Furthermore, the desirability factor for these parameters was 0.999, and the experimental validation displays a good agreement with predicted model values, with around 4.65% error for corrosion rate and 1.36% error for microhardness.