PRO: API Zippopotamus, Shortcode-Parameter httpstatuscodemustbe200

The API gives Citynames and Coorindates to a Zipcode. The JCI-PRO-Plugin can use that for a “Zipcode to City-Search”.

This done this way:

Examples: Houston, US, TX | Munich, DE, Germany

1 .JCI-Shortcode:

httpstatuscodemustbe200=no tells the plugin to accept also non-ok-API-answers

[jsoncontentimporterpro nameoftemplate="zip" httpstatuscodemustbe200=no]

2. JCI template:

  • url:{% if %}{{}}{% else %}US{% endif %}/{% if %}{{}}{% else %}80636{% endif %}
  • urlparam4twig: zip#co
  • twig-template:
{% if %}{% set coun = %}{% else %}{% set coun = "DE" %}{% endif %}
<form action=/pro-api-zippopotamus-shortcode-parameter-httpstatuscodemustbe200/>
<select name="co" id=jciinput>
<option value="DE" {% if coun =="DE" %}selected{% endif %}>Germany</option>
<option value="US" {% if coun =="US" %}selected{% endif %}>United States</option>
<input type=text name=zip placeholder="Insert Zipcode" value="{% if %}{{}}{% else %}80636{% endif %}">
<input type=submit id=jciinput value="Search Zipcode for City">
{% if places %}
<ol>{% for p in places %}<li>
<a href="{{p.latitude}},{{p.longitude}}" target="_blank">{{ attribute(p, 'place name') }} ({{ attribute(p, 'state abbreviation') }})</a>
</li>{% endfor %}</ol>
{% else %}
{% if %}
no City to this Zipcode {{}} found
{% endif %}
{% endif %}
#jciinput {
    border-radius: 5px;
    width: 320px;
    background: #eee;
 color: black;
Examples: <a href="/pro-api-zippopotamus-shortcode-parameter-httpstatuscodemustbe200/?co=US&zip=77004">Houston, US, TX</a> | 
<a href="/pro-api-zippopotamus-shortcode-parameter-httpstatuscodemustbe200/?co=DE&zip=80636">Munich, DE, Germany</a>