Looking to add a search form on WP site to display custom results

Hope the title makes sense, can’t seem to find out of the box solution. Here’s an example:

Visitor visits a specific page which contains search from to enter a certain code and displays results for that code. In the backed I specify the code and custom data to display in results. Alternatively visitor goes to direct link with search phrase in url (eg. domain.com/validatecode&12345678) and results are displayed immediately.

Thank you :grinning: