Updated SearchCode to use correct API response

:cactus: :cactus: :cactus: **Based on #412 and #417, review and merge those first** :cactus: :cactus: :cactus:

Based on issue raised in #411

Fixes #414