# The LookingGlass API query for a single IP address does not return data, but returns data after adding a mask

**URL:** <https://forum.ripe.net/t/the-lookingglass-api-query-for-a-single-ip-address-does-not-return-data-but-returns-data-after-adding-a-mask/1796>\
**Category:** RIPEstat\
**Created:** [24 August 2026 09:24 UTC](https://forum.ripe.net/t/the-lookingglass-api-query-for-a-single-ip-address-does-not-return-data-but-returns-data-after-adding-a-mask/1796 "2026-08-24T09:24:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![moonteach](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.ripe.net/moonteach/32/822_2.png) [@moonteach](https://forum.ripe.net/u/moonteach)\
**Post date:** [24 August 2026 09:24 UTC](https://forum.ripe.net/t/the-lookingglass-api-query-for-a-single-ip-address-does-not-return-data-but-returns-data-after-adding-a-mask/1796/1 "2026-08-24T09:24:33Z")

</div>

1. A single IP address returns an empty result.

curl --location --request GET “[https://stat.ripe.net/data/looking-glass/data.json?resource=159.138.184.0](https://stat.ripe.net/data/looking-glass/data.json?resource=159.138.184.0)” | jq | more  
% Total % Received % Xferd Average Speed Time Time Time Current  
Dload Upload Total Spent Left Speed  
100 524 100 524 0 0 2846 0 --:–:-- --:–:-- --:–:-- 2863  
{  
“messages”: ,  
“see\_also”: ,  
“version”: “2.1”,  
“data\_call\_name”: “looking-glass”,  
“data\_call\_status”: “supported”,  
“cached”: false,  
“query\_id”: “20260824092119-98323d99-6180-4408-a98b-00f612c031bf”,  
“process\_time”: 107,  
“server\_id”: “app188”,  
“build\_version”: “v0.11.7-2026.08.19”,  
“pipeline”: “1387518”,  
“status”: “ok”,  
“status\_code”: 200,  
“time”: “2026-08-24T09:21:19.194480”,  
“data”: {  
“rrcs”: ,  
“query\_time”: “2026-08-24T09:21:19”,  
“latest\_time”: “2026-08-24T09:21:04”,  
“parameters”: {  
“resource”: “159.138.184.0”,  
“look\_back\_limit”: 86400,  
“cache”: null  
}  
}  
}

1. Adding a mask returns normal data.  
curl --location --request GET “[https://stat.ripe.net/data/looking-glass/data.json?resource=159.138.184.0/24](https://stat.ripe.net/data/looking-glass/data.json?resource=159.138.184.0/24)” | jq | more  
% Total % Received % Xferd Average Speed Time Time Time Current  
Dload Upload Total Spent Left Speed  
100 147k 100 147k 0 0 549k 0 --:–:-- --:–:-- --:–:-- 550k  
{  
“messages”: ,  
“see\_also”: ,  
“version”: “2.1”,  
“data\_call\_name”: “looking-glass”,  
“data\_call\_status”: “supported”,  
“cached”: false,  
“query\_id”: “20260824092126-b8d4a053-b2a7-4c07-a8eb-80ba130da49c”,  
“process\_time”: 100,  
“server\_id”: “app172”,  
“build\_version”: “v0.11.7-2026.08.19”,  
“pipeline”: “1387518”,  
“status”: “ok”,  
“status\_code”: 200,  
“time”: “2026-08-24T09:21:26.785250”,  
“data”: {  
“rrcs”: [  
{  
“rrc”: “RRC01”,  
“location”: “London, United Kingdom”,  
“scope”: “LINX / LONAP”,  
“peers”: [  
{  
“asn\_origin”: “136907”,  
“as\_path”: “15692 2914 3491 24413 136907”,  
“community”: “2914:420 2914:1203 2914:2201 2914:3200 3491:500 3491:517 3491:9001 3491:9080 3491:9081 3491:9087 3491:62210 3491:62220 15692:2000 15692:2100”,  
“largeCommunity”: “”,  
“extendedCommunity”: “”,  
“last\_updated”: “2026-08-24T08:34:54.100000”,  
“prefix”: “159.138.184.0/24”,  
“peer”: “5.57.80.113”,  
“origin”: “IGP”,  
“next\_hop”: “5.57.80.113”,  
“latest\_time”: “2026-08-24T09:21:23.850000”,  
“community\_info”: {  
“regular”: {  
“2914:420”: {  
“description”: “Peer routes”,  
“original”: “2914:420”  
},  
“2914:1203”: {  
“original”: “2914:1203”,  
“description”: “London, England”  
},  
“2914:2201”: {  
“original”: “2914:2201”,  
“description”: “uk (United Kingdom)”  
},  
“2914:3200”: {  
“original”: “2914:3200”,  
“description”: “Europe”  
},  
“3491:500”: {  
“original”: “3491:500”,  
“description”: “Africa customer”  
},  
“3491:517”: {  
“original”: “3491:517”,  
“description”: “JNB01 Johannesburg customer”  
},  
“3491:9001”: {  
“description”: “Customer”,  
“original”: “3491:9001”  
},

---

<div class="post-metadata">

**Author:** ![ties](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.ripe.net/ties/32/52_2.png) [@ties](https://forum.ripe.net/u/ties)\
**Post date:** [25 August 2026 07:42 UTC](https://forum.ripe.net/t/the-lookingglass-api-query-for-a-single-ip-address-does-not-return-data-but-returns-data-after-adding-a-mask/1796/2 "2026-08-25T07:42:18Z")

</div>

Hi,

This is confusing and appears to have been a transient error. We have (and historically have) had a feature that converts IP addresses to their routed prefix (using longest prefix matching).

This looks like `"messages":[["info","IP address (159.138.184.0) has been converted to its encompassing routed prefix (159.138.184.0/24)"]]` in the JSON response. This is not present in your sample.

I will ask a colleague to check how we handle a failure of a call to check for the longest prefix matching.

---

<div class="post-metadata">

**Author:** ![moonteach](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.ripe.net/moonteach/32/822_2.png) [@moonteach](https://forum.ripe.net/u/moonteach)\
**Post date:** [2 September 2026 01:44 UTC](https://forum.ripe.net/t/the-lookingglass-api-query-for-a-single-ip-address-does-not-return-data-but-returns-data-after-adding-a-mask/1796/3 "2026-09-02T01:44:41Z")

</div>

> [@ties](#):
>
> 159.138.184.0

Hi, ties

From what I observed, it seems to be a temporary issue. After a while, querying a single IP address returned normal data, but the problem still doesn’t seem to be resolved.

**curl --location --request GET “[https://stat.ripe.net/data/looking-glass/data.json?resource=14.137.164.1](https://stat.ripe.net/data/looking-glass/data.json?resource=14.137.164.1)” | jq | more**  
% Total % Received % Xferd Average Speed Time Time Time Current  
Dload Upload Total Spent Left Speed  
100 524 100 524 0 0 2648 0 --:–:-- --:–:-- --:–:-- 2659  
{  
“messages”: ,  
“see\_also”: ,  
“version”: “2.1”,  
“data\_call\_name”: “looking-glass”,  
“data\_call\_status”: “supported”,  
“cached”: false,  
“query\_id”: “20260902014325-e54c4041-52a2-43cf-b1eb-b4a06d572958”,  
“process\_time”: 119,  
“server\_id”: “app183”,  
“build\_version”: “v0.11.10-2026.08.31”,  
“pipeline”: “1403542”,  
“status”: “ok”,  
“status\_code”: 200,  
“time”: “2026-09-02T01:43:25.145158”,  
“data”: {  
“rrcs”: ,  
“query\_time”: “2026-09-02T01:43:25”,  
“latest\_time”: “2026-09-02T01:42:29”,  
“parameters”: {  
“resource”: “14.137.164.1”,  
“look\_back\_limit”: 86400,  
“cache”: null  
}  
}  
}

**curl --location --request GET “[https://stat.ripe.net/data/looking-glass/data.json?resource=14.137.164.0/24](https://stat.ripe.net/data/looking-glass/data.json?resource=14.137.164.0/24)” | jq | more**  
% Total % Received % Xferd Average Speed Time Time Time Current  
Dload Upload Total Spent Left Speed  
100 155k 100 155k 0 0 674k 0 --:–:-- --:–:-- --:–:-- 674k  
{  
“messages”: ,  
“see\_also”: ,  
“version”: “2.1”,  
“data\_call\_name”: “looking-glass”,  
“data\_call\_status”: “supported”,  
“cached”: false,  
“query\_id”: “20260902014352-327eaaf0-553e-4e4b-99bb-48e10bedfb70”,  
“process\_time”: 98,  
“server\_id”: “app192”,  
“build\_version”: “v0.11.10-2026.08.31”,  
“pipeline”: “1403542”,  
“status”: “ok”,  
“status\_code”: 200,  
“time”: “2026-09-02T01:43:52.478382”,  
“data”: {  
“rrcs”: [  
{  
“rrc”: “RRC01”,  
“location”: “London, United Kingdom”,  
“scope”: “LINX / LONAP”,  
“peers”: [  
{  
“asn\_origin”: “136907”,  
“as\_path”: “8218 6461 1299 136907 136907 136907 136907 136907”,  
“community”: “8218:103 8218:20000 8218:20110”,  
“largeCommunity”: “”,  
“extendedCommunity”: “”,  
“last\_updated”: “2026-09-02T01:23:22.910000”,  
“prefix”: “14.137.164.0/24”,  
“peer”: “5.57.80.210”,  
“origin”: “IGP”,  
“next\_hop”: “5.57.80.210”,  
“latest\_time”: “2026-09-02T01:43:48.100000”,  
“community\_info”: {}  
},  
{  
“asn\_origin”: “136907”,  
“as\_path”: “36924 1299 136907 136907 136907 136907 136907”,  
“community”: “1299:1000 1299:37000 1299:57000”,  
“largeCommunity”: “”,  
“extendedCommunity”: “36924:1”,  
“last\_updated”: “2026-09-02T01:24:06”,  
“prefix”: “14.137.164.0/24”,  
“peer”: “5.57.81.76”,  
“origin”: “IGP”,  
“next\_hop”: “5.57.81.76”,  
“latest\_time”: “2026-09-02T01:43:48.170000”,  
“community\_info”: {  
“regular”: {  
“1299:37000”: {  
“original”: “1299:37000”,  
“description”: “Asia+Pacific Customers”  
}  
},  
“large”: {},  
“extended”: {}  
}  
},  
{  
“asn\_origin”: “136907”,  
“as\_path”: “48070 61049 174 1299 136907 136907 136907 136907 136907”,  
“community”: “”,  
“largeCommunity”: “”,
