#!/bin/bash number_plate="1" curl --silent 'https://account.ezyreg.sa.gov.au/r/veh/an/checkRegistration' -H 'Content-Type: application/json' -H 'Referer: https://account.ezyreg.sa.gov.au/account/check-registration.htm' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36' --data-raw '{"plateNumber":"'$number_plate'","registrationType":"VEHICLE"}' --compressed | jq -r .checkRegistrationDetails[].expiryDate