プログラムで URL で曲を検索します。これは iTunes API から入手できるリンクのコードです。
NSString *method=[NSString stringWithFormat:@"http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/wsSearch?term=shakira's+waka+waka&entity=musicVideo"];
NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
[request setURL:[NSURL URLWithString:method]];
[request setHTTPMethod:@"GET"];
[request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
artist=[[NSMutableArray alloc]init];
url=[[NSMutableArray alloc]init];
album=[[NSMutableArray alloc]init];
NSURLConnection *theConnection = [[NSURLConnection alloc] initWithRequest:request delegate:self];