GeoSpy API
Graylark's API enables blazing fast image geolocation using just pixel data. Harness the power of AI for low context data enrichment.
Global Coverage
GeoSpy has been trained on millions of images from around the world. It rapidly interprets outdoor images to provide pinpointed coordinates, environmental context, cultural markers, and architectural cues—offering transparent, explainable predictions through cutting-edge AI models.
Turn-Key Approach
We offer access to GeoSpy’s geospatial intelligence through a developer-friendly REST API. Integrate real-time location predictions, contextual reasoning, and image analysis directly into your own tools, dashboards, or applications.
Secure, token-based authentication
Fast response times with high-accuracy predictions
Support for multiple input formats (URLs, base64 images)
Rich JSON responses, including coordinates, contextual insights, and confidence scores
Code Snippets
Replace `YOUR_API_KEY_HERE` with your actual key.
1import requests
2import base64
3
4image_path = "YOUR_IMAGE_PATH_HERE"
5
6with open(image_path, "rb") as image_file:
7 encoded_string = base64.b64encode(image_file.read()).decode('utf-8')
8
9url = f"https://dev.geospy.ai/predict?image={encoded_string}&top_k=5"
10
11headers = {"Authorization": "Bearer YOUR_KEY_HERE"}
12
13response = requests.post(url, headers=headers)
14
15print(response.text)
1curl --request POST \
2
3 --url 'https://dev.geospy.ai/predict?image=Base64%20str&top_k=5' \
4
5 --header 'Authorization: Bearer YOUR_KEY_HERE
1const data = null;
2const xhr = new XMLHttpRequest();
3xhr.withCredentials = true;
4xhr.addEventListener('readystatechange', function () {
5 if (this.readyState === this.DONE) {
6 console.log(this.responseText);
7 }
8});
9xhr.open('POST', 'https://dev.geospy.ai/predict?image=Base64%20str&top_k=5');
10xhr.setRequestHeader('Authorization', 'Bearer YOUR_KEY_HERE');
11xhr.send(data);
1{
2 "status": 200,
3 "message": "Success",
4 "geo_predictions": [
5 {
6 "coordinates": [
7 40.75999069213867,
8 8 -73.9753646850586
9 ],
10 "score": 0.0211541298776865,
11 "similarity_score_1km": 0.95,
12 "address": "10 E 53rd St, New York, NY
13 10022, USA"
14 }
15 ]
16}
Equip yourself today.
API access is reserved for our Enterprise clients. Connect with our team to discuss tailored solutions, custom integrations, and strategic support.
