Simon Quinn, a former detective constable with Surrey Police, was paid at least 7,000 pounds for information over a 10-year period.
The 43-year-old supplied details from murder inquiries and investigations involving celebrities to Sun newspaper, before resigning from the force in 2011.
Quinn was arrested as part of Scotland Yard's 'Operation Elveden' probe into corrupt payments to public officials in 2013.
He pleaded guilty in October last year to misconduct in public office between November 1, 2000 and January 30, 2011.
Detective Chief Superintendent Gordon Briggs, the officer in charge of the investigation, said Quinn was the ninth police officer and the 27th public official to be convicted of selling confidential information to journalists.
More From This Section
Deputy Chief Constable Nick Ephgrave, from Surrey Police, said any police officer who sold information to journalists was guilty of an "appalling abuse" of trust.
The force "fully supported" Operation Elveden and had officers working with the Metropolitan Police on the case, he added.
Quinn was sentenced at the Old Bailey court in London.