Land Value AI

The Ag-Analytics® Land Value AI provides timely and accurate estimation of any given parcel on any specific day. The current version of Land Value has two types of estimations: Auto Comps takes the comparables referring to properties with characteristics that are similar to the target parcel whose value is being estimated. AI models were trained on the real historical and nearreal-time climate, agriculture, and economic data. It provides a science-based and big-databased estimations on the parcel value.

Land Value AI Post


The Ag-Analytics® Land Value AI provides timely and accurate estimation of any given parcel on any specific day. The current version of Land Value has two types of estimations: Auto Comps takes the comparables referring to properties with characteristics that are similar to the target parcel whose value is being estimated. AI models were trained on the real historical and near-real-time climate, agriculture, and economic data. It provides a science-based and big-data-based estimations on the parcel value.





Click on Documentation to review the request and response parameters.
Click the Jupyter Notebook Static Sample to view a static rendition of this APIs Jupyter Notebook.
Click the Jupyter Notebook Github Repo to access the Jupyter Notebook .ipynb files and
instructions needed in order to run this APIs Jupyter Notebook.

Request Example

{
'aoi': "{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[-95.84165811538698,46.30405964827517],[-95.84174394607544,46.29697349504195],[-95.83659410476686,46.29691419281915],[-95.83655118942261,46.29814470078284],[-95.83831071853638,46.29817435123596],[-95.83837509155275,46.3029330408763],[-95.83831071853638,46.30303680831659],[-95.83801031112672,46.30296268873647],[-95.837699174881,46.30297010069899],[-95.83699107170106,46.30349634747375],[-95.83695888519289,46.30367423256352],[-95.8370339870453,46.30393364728336],[-95.83717346191408,46.3040003537269],[-95.8375597000122,46.30405223646016],[-95.8375597000122,46.30318504717584],[-95.84077835083009,46.30317022330798],[-95.84081053733827,46.30408188371422],[-95.84165811538698,46.30405964827517]]]}}" ,
'model' : "Auto",
'Sale_Date': "2020-04-15",

}

Request Parameters

   Parameter       Data Type       Required?       Default       Options   
   aoi       GeoJSON in string        Yes       -        -   
   model       String       No       Linear       ‘Linear’, ’Tree’,   ’RF’,    ’Auto’   
   Sale_Date       String       Yes       -       -   

Response Example

{
"Model": "Auto",
"Result": {
"For Sale": {
"Percentile_10": 1285.0,
"Percentile_90": 13255.0,
"avg_price": 4792.197782389308399065,
"max_price": 895000.0000,
"min_price": 26.0000,
"num_list": 811
},
"Parcel_Area": 51.74941101442054,
"Sold": {
"Percentile_10": 3549.0,
"Percentile_90": 11100.0,
"avg_price": 6879.141775894334,
"max_price": 69371.0,
"min_price": 792.0,
"num_list": 318
},
"Unit": "$",
"Sale_Date": "2020-04-15"
},
"status": "SUCCESS"
}

Response Parameter Table in Documentation



To Test API

API testing requires a user token which can either be purchased
through a plan or with the free trial version. Quota restrictions apply.



Call API

Request

Request URL

Request headers

  • (optional)
    string

Request body

{"aoi": "{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[-95.87676501448252,46.32607342778329],[-95.883447016556,46.326132083839006],[-95.88358858439655,46.328282762449355],[-95.88313556730681,46.32898660253846],[-95.88361689796466,46.3295144766618],[-95.88367352510087,46.33148907172884],[-95.88293737233006,46.33180187232716],[-95.88353195726032,46.33240791839554],[-95.88353195726032,46.33301395774819],[-95.87384871696737,46.333053056830664],[-95.87350895415011,46.33270116408218],[-95.8734240134458,46.331606372162845],[-95.87401859837605,46.33098076694094],[-95.87631199739278,46.33060931045464],[-95.87704815016359,46.33090256578505],[-95.87676501448252,46.33141087129972],[-95.87752948082142,46.332231970228804],[-95.87837888786467,46.332329719280196],[-95.8788035913863,46.332857561138816],[-95.87900178636305,46.33277936266643],[-95.87903009993114,46.32955357824604],[-95.87877527781816,46.32955357824604],[-95.87874696425008,46.32802859574696],[-95.87696320945928,46.32791128763985],[-95.87699152302737,46.32697281372604],[-95.87676501448252,46.32607342778329]],[[-95.8940646045965,46.3404227346288],[-95.89400797746026,46.33655231150594],[-95.89194108698841,46.33727559320676],[-95.8911766206495,46.3364545700018],[-95.89179951914785,46.33518391454985],[-95.89188445985219,46.33338539790301],[-95.88893984876896,46.33324855182371],[-95.88902478947328,46.33880031788281],[-95.89029890003815,46.338937150069626],[-95.89131818849005,46.33960175867772],[-95.89145975633058,46.3404227346288],[-95.8940646045965,46.3404227346288]]]}}",
 "model": "Auto",
 "Sale_Date": "2020-04-15"}

Code samples

@ECHO OFF

curl -v -X POST "https://ag-analytics.azure-api.net/land-value-ai/"
-H "Content-Type: application/json"

--data-ascii "{body}" 
using System;
using System.Net.Http.Headers;
using System.Text;
using System.Net.Http;
using System.Web;

namespace CSHttpClientSample
{
    static class Program
    {
        static void Main()
        {
            MakeRequest();
            Console.WriteLine("Hit ENTER to exit...");
            Console.ReadLine();
        }
        
        static async void MakeRequest()
        {
            var client = new HttpClient();
            var queryString = HttpUtility.ParseQueryString(string.Empty);

            // Request headers

            var uri = "https://ag-analytics.azure-api.net/land-value-ai/?" + queryString;

            HttpResponseMessage response;

            // Request body
            byte[] byteData = Encoding.UTF8.GetBytes("{body}");

            using (var content = new ByteArrayContent(byteData))
            {
               content.Headers.ContentType = new MediaTypeHeaderValue("< your content type, i.e. application/json >");
               response = await client.PostAsync(uri, content);
            }

        }
    }
}	
// // This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
import java.net.URI;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

public class JavaSample 
{
    public static void main(String[] args) 
    {
        HttpClient httpclient = HttpClients.createDefault();

        try
        {
            URIBuilder builder = new URIBuilder("https://ag-analytics.azure-api.net/land-value-ai/");


            URI uri = builder.build();
            HttpPost request = new HttpPost(uri);
            request.setHeader("Content-Type", "application/json");


            // Request body
            StringEntity reqEntity = new StringEntity("{body}");
            request.setEntity(reqEntity);

            HttpResponse response = httpclient.execute(request);
            HttpEntity entity = response.getEntity();

            if (entity != null) 
            {
                System.out.println(EntityUtils.toString(entity));
            }
        }
        catch (Exception e)
        {
            System.out.println(e.getMessage());
        }
    }
}

<!DOCTYPE html>
<html>
<head>
    <title>JSSample</title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
</head>
<body>

<script type="text/javascript">
    $(function() {
        var params = {
            // Request parameters
        };
      
        $.ajax({
            url: "https://ag-analytics.azure-api.net/land-value-ai/?" + $.param(params),
            beforeSend: function(xhrObj){
                // Request headers
                xhrObj.setRequestHeader("Content-Type","application/json");
            },
            type: "POST",
            // Request body
            data: "{body}",
        })
        .done(function(data) {
            alert("success");
        })
        .fail(function() {
            alert("error");
        });
    });
</script>
</body>
</html>
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    
    NSString* path = @"https://ag-analytics.azure-api.net/land-value-ai/";
    NSArray* array = @[
                         // Request parameters
                         @"entities=true",
                      ];
    
    NSString* string = [array componentsJoinedByString:@"&"];
    path = [path stringByAppendingFormat:@"?%@", string];

    NSLog(@"%@", path);

    NSMutableURLRequest* _request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:path]];
    [_request setHTTPMethod:@"POST"];
    // Request headers
    [_request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
    // Request body
    [_request setHTTPBody:[@"{body}" dataUsingEncoding:NSUTF8StringEncoding]];
    
    NSURLResponse *response = nil;
    NSError *error = nil;
    NSData* _connectionData = [NSURLConnection sendSynchronousRequest:_request returningResponse:&response error:&error];

    if (nil != error)
    {
        NSLog(@"Error: %@", error);
    }
    else
    {
        NSError* error = nil;
        NSMutableDictionary* json = nil;
        NSString* dataString = [[NSString alloc] initWithData:_connectionData encoding:NSUTF8StringEncoding];
        NSLog(@"%@", dataString);
        
        if (nil != _connectionData)
        {
            json = [NSJSONSerialization JSONObjectWithData:_connectionData options:NSJSONReadingMutableContainers error:&error];
        }
        
        if (error || !json)
        {
            NSLog(@"Could not parse loaded json with error:%@", error);
        }
        
        NSLog(@"%@", json);
        _connectionData = nil;
    }
    
    [pool drain];

    return 0;
}
<?php
// This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
require_once 'HTTP/Request2.php';

$request = new Http_Request2('https://ag-analytics.azure-api.net/land-value-ai/');
$url = $request->getUrl();

$headers = array(
    // Request headers
    'Content-Type' => 'application/json',
);

$request->setHeader($headers);

$parameters = array(
    // Request parameters
);

$url->setQueryVariables($parameters);

$request->setMethod(HTTP_Request2::METHOD_POST);

// Request body
$request->setBody("{body}");

try
{
    $response = $request->send();
    echo $response->getBody();
}
catch (HttpException $ex)
{
    echo $ex;
}

?>
########### Python 2.7 #############
import httplib, urllib, base64

headers = {
    # Request headers
    'Content-Type': 'application/json',
}

params = urllib.urlencode({
})

try:
    conn = httplib.HTTPSConnection('ag-analytics.azure-api.net')
    conn.request("POST", "/land-value-ai/?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################

########### Python 3.2 #############
import http.client, urllib.request, urllib.parse, urllib.error, base64

headers = {
    # Request headers
    'Content-Type': 'application/json',
}

params = urllib.parse.urlencode({
})

try:
    conn = http.client.HTTPSConnection('ag-analytics.azure-api.net')
    conn.request("POST", "/land-value-ai/?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################
require 'net/http'

uri = URI('https://ag-analytics.azure-api.net/land-value-ai/')


request = Net::HTTP::Post.new(uri.request_uri)
# Request headers
request['Content-Type'] = 'application/json'
# Request body
request.body = "{body}"

response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
    http.request(request)
end

puts response.body