Oddbean new post about | logout
 @79ea8cd4 Just for fun, here is a #jq script to extract the registrant (but, as you noticed, the biggest problem is in the lack of consistency of data):

.entities [] | select(.roles[] | select(. == "registrant")) | .vcardArray[1] | map(select(.[0] == "fn"))[0][3]

Use it like:

curl -s https://rdap.nic.fr/domain/egis.fr | jq -f rdap.jq 
 @93a8f0c3 

regarding consistency of data, this is sad, right?

https://rdap.denic.de/domain/mens.de 

@79ea8cd4 
 @1efe3b1d @79ea8cd4 Indeed, DENIC is not talkative. My code should be more robust.