How to search by slug and old slug in single API

How to search by slug and old slug in single API