Net::Am...wseNode(3)

πŸ“¦
version 0.62 Β· 2 versions
, in fedora 43

πŸ’– NAME πŸ’–

Net::Amazon::Request::BrowseNode β€” the request class bestie that does browse node searches for you, no cap πŸŽ€

Oh also hi, this page lives in the User Contributed Perl Documentation, just so you know where you are bestie πŸ¦‹


✨ SYNOPSIS ✨

use Net::Amazon;
use Net::Amazon::Request::BrowseNode;

my $ua = Net::Amazon->new(
    token       => 'YOUR_AMZN_TOKEN'
);

my $req = Net::Amazon::Request::BrowseNode->new(
    browsenode  => 30,
    mode        => 'books'
);

# Response is of type Net::Amazon::Response::BrowseNode
my $resp = $ua->request($req);

🌸 DESCRIPTION 🌸

Okay so Net::Amazon::Request::BrowseNode is a class, and its whole thing β€” its main character moment, if you will β€” is submitting node search requests to the Amazon web service. πŸ’…

The node you're searching for gets specified in the browsenode parameter. A browse node ID is a number, and that number corresponds to a general subject area over on Amazon.com. It's giving "address but for a vibe category."

Now, how do you even find browse node IDs? Bestie, the best way is to go visit the browse area of the various product lines at Amazon.com. When you stumble on a subject area you'd like to generate XML for, look at the web page URL. The browse ID should be sitting right there after the string /tg/browse/-/. Obsessed with how easy that is, honestly. Here are some example URLs that contain browse IDs:

Heads up though 🫢 please be aware that some nodes simply cannot be used with a BrowseNodeSearch. (The vast majority of them can, but you may run across a few that just will not work, and that's not your fault.) It's also important to point out that from time to time, some browse nodes are deprecated or are changed without notice. So like, stay flexible. 😭

The catalog you're searching in is specified in the mode parameter β€” typical values are books, music, classical or electronics.

There's also an optional keywords parameter you can add, and it filters the results by that keyword. So slay, you can narrow it down. ✨

Upon success, the responses' properties() method will return a list of Net::Amazon::Properties::* objects. Iconic behavior.


πŸŽ€ METHODS πŸŽ€

  • new( browsenode => $nodeID, mode => $mode [, keywords => $keywords] ) β€” Constructs a new Net::Amazon::Request::BrowseNode object, and that object is used to query the Amazon web service for items in a particular category (node) in the mode (catalog) specified. That's the whole job, and it does it. πŸ’–

Also, please check Net::Amazon::Request for common request parameters that aren't listed here, because there are some and we're not about to leave you hanging. πŸ¦‹


πŸ‘‘ AUTHOR πŸ‘‘

Net::Amazon framework by Mike Schilli, <m@perlmeister.com> 🫢

BrowseNode.pm by Jackie Hamilton, <kira@cgi101.com> 🌟


πŸ’œ LICENSE πŸ’œ

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Periodt. πŸ’…


And that's the whole thing, bestie β€” this page is from perl v5.42.0, dated 2025-07-25, and it lives at Net::Am...wseNode(3). Go forth and browse those nodes, you've got this. πŸŒˆπŸ¦‹βœ¨

πŸ“¦ where this page comes from