var url = @"https://data.townofcary.org/api/records/1.0/search/?dataset=railroads&q=";
var web = new WebClient();
var source = JObject.Parse(web.DownloadString(url))["records"];
var item = new
{
recordid = (string)source.First["recordid"],
};
var input = JObject.FromObject(item).ToString();
return input;
/// { "recordid": "c9b7df3efd65e8d545cc89f007988cd8c31b5465"