<# call "http://ip-api.com/json/<#[system.remote_addr]#>" to response; print bucket response; #>
response: Array ( [status] => success [country] => United States [countryCode] => US [region] => VA [regionName] => Virginia [city] => Ashburn [zip] => 20149 [lat] => 39.0438 [lon] => -77.4874 [timezone] => America/New_York [isp] => Amazon Technologies Inc. [org] => AWS EC2 (us-east-1) [as] => AS14618 Amazon.com, Inc. [query] => 18.104.22.168 )
|<#[response.query as html]#> ⇒||22.214.171.124|
|<#[response.status as html]#> ⇒||success|
|<#[response.timezone as html]#> ⇒||America/New_York|
The Hashtag Markup Language provides methods to Call external APIs, and process any response.
The response text is saved to the named Hashtag Variable. If the response is JSON encoded, it will be decoded into Hashtag Buckets.
Optional parameters can be sent with the call. The values in the named Hashtag Bucket will be sent with the request as HTTP POST variables.