The dealer, originally from London, was searched after officers witnessed what they believed to be a drug deal.
Police officers also saw Kevy Kabula, 20, hide a package in his trousers when they approached him in central Peterborough.
The force carried out a search on Kabula, where they found a wrap of cocaine in his trouser pocket, along with £412 in cash and three mobile phones.
Kabula was arrested in North Street by plain-clothed officers on December 4, 2023.
The dealer was searched again in custody, where police officers found a plastic bag hidden in Kabula's pants.
Inside the plastic bag was 127 wraps of cocaine and 60 wraps of heroin worth £1,870.
The mobile phones that police found on Kabula in North Street were taken for analysis.
The phones showed that the drug dealer travelled regularly between London and Peterborough. There were also messages showing that he ran a drugs line between the two cities.
Cambridgeshire Police have released footage of the drug dealer's arrest in North Street, Peterborough. He can be heard telling officers "Nothing in there bro" as he is searched:
Kabula, of Darndale Close, Walthamstow, Greater London, appeared at Cambridge Crown Court on January 18 to be jailed.
He was sentenced to four years in prison after previously admitting to possession with intent to supply crack cocaine and heroin, and being concerned in the supply of crack cocaine and heroin.
Detective Constable Rhiann Ward, who investigated said: "This was a great spot and proactive work by our Neighbourhood Support Team who intercepted a drug deal in an area of the city we know to have issues with drug dealing.
"We have a vital role in preventing drugs from reaching our streets and ensuring those responsible are brought to justice and the public can play a vital part in this work too.
"Please continue to report your concerns and suspicions to us."
Comments: Our rules
We want our comments to be a lively and valuable part of our community - a place where readers can debate and engage with the most important local issues. The ability to comment on our stories is a privilege, not a right, however, and that privilege may be withdrawn if it is abused or misused.
Please report any comments that break our rules.
Read the rules here