Let us assume,
A asp.net API is created as given
Http://www.abc.com?userid=username & pass=password
In these condition we need to read these values as shown below.
string userid = Request.QueryString["userid"].ToString();
string pass = Request.QueryString["pass"].ToString();
Now you can use userid and pass for any task(ie. login verification)