Yusuke Sugiyama


XML::Amazon - Perl extension for getting information from Amazon


        use XML::Amazon;
        my $amazon = XML::Amazon->new(token => AMAZON-ID, sak => Secret Access Key, locale => 'uk');
        my $item = $amazon->asin('0596101058');## ASIN access
        if ($amazon->is_success){
                print $item->title;
        my $items = $amazon->search(keywords => 'Perl');## Search by 'Perl'
        foreach my $item ($items->collection){
        my $title = $item->title;
        print $title . "¥n";


XML::Amazon provides a simple way to get information from Amazon. XML::Amazon can connect to US, JP, UK, FR, DE and CA.


XML::Amazon->new(token => AMAZON-ID, associate => ASSOCIATE-ID, sak => Secret Access Key, locale => UK)

Creates a new empty XML::Amazon object. You should specify your Amazon Web Service ID and Secret Access Key (which can be obteined thorough http://www.amazon.com/gp/aws/registration/registration-form.html). You can also specify your locale (defalut: US; you can choose us, uk, jp, fr, de, ca) and your Amazon associate ID (default: webservices-20, which is Amazon default).


Returns an XML::Amazon::Item object whose ASIN is as given.

$XML_Amazon->search(keywords => 'Perl', page => '2', type => 'Books')

Returns an XML::Amazon::Collection object. i<type> can be Blended, Books, Music, DVD, etc.


Returns 1 when successful, otherwise 0.

$XML_Amazon_Collection->total_results, $XML_Amazon_Collection->total_pages, $XML_Amazon_Collection->current_page

Returns as such.


Returns a list of XML::Amazon::Item objects.



Returns authors when the item is a book, and likewise.




Returns the URL of the cover image. size can be s, m, or l.




Yusuke Sugiyama, <ally@blinkingstar.net>


Copyright (C) 2009 by Yusuke Sugiyama

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 295:

Non-ASCII character seen before =encoding in '"¥n";'. Assuming UTF-8