
This plugin lets non-developers use the APIFreaks API hub through a settings page and shortcodes — no code required.
Features:
All responses are cached in transients to keep API usage low. Cloudflare’s CF-Connecting-IP header is supported.
[apifreaks_ip field="country"]
[apifreaks_if country_code="US,CA" logic="OR"]...[/apifreaks_if]
[apifreaks_if_not country="Germany"]...[/apifreaks_if_not]
[apifreaks_timezone location="Tokyo, JP" field="date_time"]
[apifreaks_timezone_convert time="2026-01-01 09:00" tz_from="America/New_York" tz_to="Asia/Karachi"]
[apifreaks_astronomy location="Paris, FR" field="sunrise"]
[apifreaks_weather location="Berlin, DE" field="temperature"]
[apifreaks_weather_forecast location="Berlin, DE" date="2026-01-05" field="temperature_2m_max"]
[apifreaks_weather_historical location="Berlin, DE" date="2025-12-01" field="temperature_2m_max"]
[apifreaks_air_quality location="Delhi, IN" field="us_aqi"]
[apifreaks_weather_marine lat="43.3" long="5.4" field="wave_height"]
[apifreaks_weather_flood location="Lahore, PK" field="river_discharge"]
[apifreaks_user_agent field="name"]
[apifreaks_geocode query="Wembley Stadium, London" field="lat"]
[apifreaks_reverse_geocode lat="40.748" lon="-73.985" field="full_address"]
[apifreaks_zipcode code="10001" country="US" field="city"]
[apifreaks_zipcode_search mode="city" city="Lahore" country="PK"]
[apifreaks_geodb resource="countries" field="country_name"]
[apifreaks_currency_convert from="USD" to="EUR" amount="49.99" decimals="2"]
[apifreaks_currency_rate base="USD" symbols="EUR,GBP" field="EUR"]
[apifreaks_currency_fluctuation base="USD" symbols="EUR" start="2025-12-01" end="2025-12-31" code="EUR"]
[apifreaks_currency_name code="EUR"]
Every shortcode accepts default="..." for fallback text. The full field list is shown on the settings screen.
This plugin is an interface to the APIFreaks API, a third-party service, and requires an APIFreaks API key to work. Without contacting this service the plugin cannot determine visitor location, time, weather, or the other data it displays.
What it connects to:
When requests are made:
What data is sent:
X-apiKey request header on every call).[apifreaks_geocode], coordinates given to [apifreaks_reverse_geocode], a location given to [apifreaks_weather], or a User-Agent string.Responses are cached in WordPress transients for the lifetime you set on the settings page (default 24 hours) to minimise the number of requests.
Please review the APIFreaks Terms of Service and Privacy Policy before use:
When visitor-based features are used, this plugin transmits the visitor’s IP address to APIFreaks in order to return location, timezone, and weather data. IP addresses can be considered personal data under regulations such as the GDPR. If you operate in a region with such regulations, disclose this processing in your own site’s privacy policy and obtain consent where required. The plugin itself stores only cached API responses in transients and your settings in the options table; it does not create user profiles or share data with any party other than APIFreaks.