How to track searches using the REST API?

How to track searches using the REST API?