As others have said, API is unreliable. But to lower nitrates: water changes, refugium/algae scrubber, and/or carbon dosing. To reduce the production of nitrates: feed less, run a protein skimmer, and/or run something like purigen. Also, it is impossible for macroalgae and carbon dosing to work if you are phosphate limited. I was having very high nitrates in my current tank for months until I started dosing phosphates which had always been undetectable, since then my nitrates are in check (using a refugium and carbon dosing - also do weekly water changes), my nitrates are now 5-10ppm (and are going lower, so I will be lower the carbon dosing and running my refugium light for less hours).