curl

How to append a variable to CURL command

I am trying to use curl qrenco.de/google.com with an alias so that the alias takes the input parameter google.com and appends it to curl qrenco.de/. i want it to look something like this:
$qrcode google.com
i have tried the following:
alia…

Get the value from the header

Is it possible to somehow get the value from the header and immediately load it into a variable?
Header:
HTTP/1.1 201 CREATED
Date: Mon, 12 Jul 2021 10:23:01 GMT
Server: Apache
Content-Length: 3218
X-Subject-Token: XXXXXXXXXXXXXXXXXXXXXXXX…