Convert to the local currency of an IP address
ip_to_currencyResolve a visitor’s local currency from their IP address and convert an amount into it using current exchange rates, returning the target currency in the 'to' field.
Instructions
Resolves the local currency from an IP address's geolocation and converts an amount into it using the latest rate. Useful for localizing prices for a visitor. The target currency is returned in the 'to' field. Growth plan and above.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | IPv4 or IPv6 address to geolocate. Omit to use the caller's own IP address. | |
| from | Yes | Currency code to convert from, e.g. 'USD'. | |
| amount | No | Amount to convert. Must be greater than 0. Default is 1.0. |