Plice have finally caught up with alleged gunman Murray Toleafoa.

Newstalk ZB said he was apprehended at a Countdown supermarket in Auckland shortly after midday.

The 30-year-old was being hunted after he allegedly shot at a police officer on Friday in the Auckland CBD.

Detective Inspector Scott Beard said the arrest was effected without incident and Toleafoa was now in custody.

"I'm relieved that we have found the man who we allege shot at one of our officers early on Friday morning and we're now speaking with him. He was not armed at the time of his arrest.

"I'd like to thank the public for its support and my staff for their dedication and hard work over the past four and a-half days.

The officer who was shot at has also expressed his gratitude to his colleagues for all the work that has gone into finding Murray Toleafoa since 1am Friday, June 8."

Two associates who were with Toleafoa at the time are also assisting police.

- Anna Leask/NZ Herald