Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the meaning of Amazon's URL?

Tags:

url

amazon

I want to fetch some information from Amazon, but the URL seems very complex. Is there anybody know what's the meaning of amazon's URL?

for example: the Ceiling Fans & Accessories page's url is:

http://www.amazon.com/s/ref=lp_2619525011_nr_n_6?rh=n%3A2619525011%2Cn%3A%212619526011%2Cn%3A495362&bbn=2619526011&ie=UTF8&qid=1387193124&rnid=2619526011
  1. What's the meaning of ref=lp_2619525011_nr_n_6
  2. What's the meaning of rh=n%3A2619525011%2Cn%3A%212619526011%2Cn%3A495362
  3. What's the meaning of bbn=2619526011
  4. What's the meaning of ie=UTF8
  5. What's the meaning of qid=1387193124
  6. What's the meaning of rnid=2619526011
like image 424
Yishu Fang Avatar asked Dec 16 '13 11:12

Yishu Fang


2 Answers

ie=UTF8 appears on man Amazon pages is the desired character encoding

qid=1387193124 is a unix timestamp that the URL was generated, in this case October 3rd, 2015 at 12:40:07 GMT

ref= also appears on many pages throughout the site and has something to do with the referring page. Almost like a more explicit way of passing the HTTP Referer.

bbn= and rnid= have something to do with the Amazon's very confusing "Browse Nodes". Unfortunately the 2619526011 in this example does not match up with the Browse Tree Guide available on https://www.amazon.com/gp/help/customer/display.html?nodeId=200186090 which shows Ceiling Fans with a Browse Node ID of 495224

rh= is unclear to me, but probably some session state to pass between pages.

like image 166
Brandon Avatar answered Oct 27 '22 19:10

Brandon


https://www.amazon.com/s?rh=
k:-assdhjkadhjkhscue,
n:3375251,
p_n_condition-type:6503254011,
p_72:2661618011,
p_85:2470955011
&page=6
&bbn=2619526011
&ie=UTF8
&qid=1387193124
&rnid=2619526011

rh denotes the factors of query.
k = keyword,
n = category (Sports & Outdoors in this case)
p_n_condition-type = new/used
p_72 = 4 or more stars
p_85 = prime eligible
page = pagination offset(page nos).
qid = the timestamp when the query result was generated.
bbn = browse node numbers.Amazon uses a hierarchy of nodes with a number to the hierarchy to represent collections of items. Each number given is a browse node number.
rnid = random id  for browsing the node.
ie=utf8 = UTF-8 page encoding format.
like image 24
harsh tibrewal Avatar answered Oct 27 '22 18:10

harsh tibrewal