In this example,you can get your domain details in Route53 and instance details from asset.It will back a json. If your domain cname on elb or have alias,it will shows the backend server id or ip.
url: http://yourdomain/staging/domain/the-domain-you-want-to-search to get the domain details on Route53
url:http://yourdomain/staging/instance/instance-wanip-or-lanip to get instance details.But the asset code is not include in this example