ホーム > 未分類 > iTunes StoreをJavascriptで検索する。

iTunes StoreをJavascriptで検索する。

iTunesStoreをjavascriptで検索し、JSON形式で結果を出力するサンプルを作ってみました。これはアフィリエイターなどのパートナー用に提供されているiTunesリンクメーカーというツールを参考にしたものです。

function searchItunes(keyword) {
	var lang = 9;
	var country = 'JP';
	var media = 'music';
	var entity = 'album';
	var limit = 20;
	var term = encodeURI(keyword);
	var output = 'json';
	var url = 'http://phobos.apple.com/WebObjects/MZSearch.woa/wa/itmsSearch';
	var params = 'lang=' + lang + '&country=' + country + '&media=' +
		media + '&entity=' + entity + '&limit=' + limit + '&term=' +
		term +'&output=' + output;
	window.open(url + '?' + params, "_blank");
}

PerlにはNet-iTMSというライブラリがあるようですが、Ruby版も作ってみようかな。

カテゴリー: 未分類 タグ: ,
  1. 2020 年 5 月 30 日 12:18 | #1

    This site was… how do I say it? Relevant!! Finally I have found something which helped me. Appreciate it!

  2. 2020 年 5 月 30 日 12:28 | #2

    Hello there! This article could not be written any better! Looking through this article reminds me of my previous roommate! He constantly kept preaching about this. I most certainly will send this article to him. Pretty sure he’ll have a good read. I appreciate you for sharing!

  3. 2020 年 5 月 30 日 12:32 | #3

    The next time I read a blog, Hopefully it doesn’t fail me as much as this particular one. I mean, Yes, it was my choice to read, nonetheless I genuinely thought you would have something useful to say. All I hear is a bunch of complaining about something that you can fix if you were not too busy searching for attention.

  4. 2020 年 5 月 30 日 12:38 | #4

    Greetings! Very useful advice within this article! It’s the little changes that make the most important changes. Thanks a lot for sharing!

  5. 2020 年 5 月 30 日 12:49 | #5

    This web site definitely has all of the information and facts I wanted concerning this subject and didn’t know who to ask.

  6. 2020 年 5 月 30 日 13:02 | #6
  7. 2020 年 5 月 30 日 13:11 | #7

    Pretty! This was an incredibly wonderful post. Thanks for providing these details.

  8. 2020 年 5 月 30 日 13:21 | #8

    Greetings, I do believe your web site could be having browser compatibility issues. Whenever I take a look at your blog in Safari, it looks fine but when opening in IE, it’s got some overlapping issues. I simply wanted to give you a quick heads up! Other than that, excellent blog!

  9. 2020 年 5 月 30 日 14:06 | #9

    Your style is so unique in comparison to other folks I’ve read stuff from. Many thanks for posting when you’ve got the opportunity, Guess I will just book mark this blog.

  10. 2020 年 5 月 30 日 14:21 | #10
  11. 2020 年 5 月 30 日 15:14 | #11

    This site was… how do I say it? Relevant!! Finally I’ve found something which helped me. Cheers!

  12. 2020 年 5 月 30 日 15:26 | #12

    Nice post. I learn something new and challenging on websites I stumbleupon everyday. It’s always helpful to read through content from other writers and use something from other websites.

  13. 2020 年 5 月 30 日 15:51 | #13

    This web site definitely has all the information and facts I wanted about this subject and didn’t know who to ask.

  14. 2020 年 5 月 30 日 16:37 | #14

    I blog often and I seriously thank you for your content. Your article has really peaked my interest. I will book mark your blog and keep checking for new details about once per week. I subscribed to your RSS feed too.

  15. 2020 年 5 月 30 日 16:42 | #15

    I was extremely pleased to discover this site. I want to to thank you for your time due to this fantastic read!! I definitely savored every little bit of it and i also have you saved as a favorite to check out new things on your blog.

  16. 2020 年 5 月 30 日 16:56 | #16

    After I originally commented I seem to have clicked the -Notify me when new comments are added- checkbox and from now on whenever a comment is added I recieve four emails with the exact same comment. Perhaps there is a means you can remove me from that service? Cheers!

  17. 2020 年 5 月 30 日 17:00 | #17

    After looking into a handful of the articles on your website, I seriously appreciate your way of blogging. I saved as a favorite it to my bookmark website list and will be checking back soon. Please visit my web site too and tell me your opinion.

  18. 2020 年 5 月 30 日 17:02 | #18

    Saved as a favorite, I like your web site!

  19. 2020 年 5 月 30 日 17:23 | #19

    Aw, this was an extremely nice post. Finding the time and actual effort to create a top notch article… but what can I say… I hesitate a whole lot and don’t manage to get anything done.

  20. 2020 年 5 月 30 日 18:17 | #20

    Can I simply say what a relief to discover a person that truly knows what they’re discussing on the internet. You actually know how to bring a problem to light and make it important. A lot more people need to check this out and understand this side of your story. I was surprised you’re not more popular because you certainly possess the gift.

  21. 2020 年 5 月 30 日 19:14 | #21
  22. 2020 年 5 月 30 日 19:46 | #22

    This website truly has all the information and facts I wanted about this subject and didn’t know who to ask.

  23. 2020 年 5 月 30 日 19:51 | #23

    After I initially left a comment I appear to have clicked on the -Notify me when new comments are added- checkbox and from now on every time a comment is added I receive four emails with the exact same comment. Is there an easy method you can remove me from that service? Thanks!

  24. 2020 年 5 月 30 日 19:53 | #24

    I need to to thank you for this excellent read!! I certainly loved every little bit of it. I have got you book-marked to look at new things you post…

コメントページ
1 86 87 88 3
  1. 2020 年 4 月 16 日 16:18 | #1
  2. 2020 年 4 月 26 日 15:14 | #2
  3. 2020 年 5 月 6 日 16:58 | #3