Difference between Two Code Scans for same branch

With regards to the API – check out this guide:

With regards to the New Code Period – you can go to Project Settings > New Code to look at your options for setting the new code period.