Get Instant Access to our Exchange Rates API

Get access instantly - 1000 requests free p/m.


How To Use Our Objective C Exchange Rate API

We offer an easy to use, accurate and reliable exchange rate API for Objective C that's perfect for both personal and professional use.

Fetching currency data using our Objective C currency converter API is as easy as making GET requests. This means you can easily integrate our API into your Objective C project however you'd prefer.

For more details on the different types of request we support please see our Main Documentation.

Alternatively simply use the Objective C library code below to get started with our currency data as fast as you can copy & paste!

Simple Objective C Currency Conversion Example


// Setting URL
NSString *url = [NSString stringWithFormat: @"https://v3.exchangerate-api.com/bulk/YOUR-API-KEY/USD"];

// Fetching
NSData *data = [NSData dataWithContentsOfURL: [NSURL URLWithString:url]];
NSError *err;
NSMutableArray *json = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&err];

// Your JSON
NSLog(@"json: %@", json);
				

This will return the exchange rates from USD to all other currencies we support:

{
	"result": "success",
	"from": "USD",
	"rates": {
		"AUD": ((AUD in terms of USD)),
		"BGN": 1.8096,
		"BRL": 3.1143,
		"...": 1.3113,
		"...": 7.473, etc. etc.
	}
}

Please see our main documentation for further information on this query type & error response details.



We also offer automatic localization requests:



Automatic Currency Localization for Objective C

Our automatic localization uses IP addresses to determine which currency we should supply. How you get this IP address is up to you. If you know the locale of your user you can just use the query type above to get the appropriate rate for them.


// Setting URL
NSString *url = [NSString stringWithFormat: @"https://v3.exchangerate-api.com/local/YOUR-API-KEY/USD/IP-ADDRESS"];

// Fetching
NSData *data = [NSData dataWithContentsOfURL: [NSURL URLWithString:url]];
NSError *err;
NSMutableArray *json = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&err];

// Your JSON
NSLog(@"json: %@", json);
				

Please see our main documentation for further information on this query type & error response details.

Additionally, please email us if you'd like to submit a better code example, we'll credit you!