1

In URL https://books.google.com/books?id=rAy-NliGEPMC&lpg=PA126&pg=PA126#v=onepage&q&f=false, what do the following query strings mean:

  • "lpg=PA126"
  • "pg=PA126#v=onepage"
  • "q"
  • "f=false"?

If I want to specify the URL to a particular page in a book, shall I modify the value of "lpg" or the one of "pg"?

1

EDIT

About the lpg= parameter on a Google Books URL

Although not officially documented, the lpg= parameter refers to the landing page to the Google Book.

How this works in our example:

When you first land (through a link) to page 126 the link is

https://books.google.gr/books?id=rAy-NliGEPMC&pg=PA126#v=onepage&q&f=false

When one wants to share the link by clicking the "chain" button while on the same page, the copied link changes to:

https://books.google.com/books?id=rAy-NliGEPMC&lpg=PA126&pg=PA126#v=onepage&q&f=false

copied Google Books page URL same as landing page

If one moves to eg. page 137 the new copied link becomes

https://books.google.gr/books?id=rAy-NliGEPMC&lpg=PA126&pg=PA137#v=onepage&q&f=false

copied Google Books page URL other than landing page


Original answer

In the given example

https://books.google.com/books?id=rAy-NliGEPMC&lpg=PA126&pg=PA126#v=onepage&q&f=false

The URL could also be written as
https://books.google.com/books?id=rAy-NliGEPMC&pg=PA126#v=onepage&f=false

The URL syntax is:

  • The book ID
    https://books.google.com/books?id=rAy-NliGEPMC

  • The page number
    pg=PA126

  • Whether viewed as a centerfold or a single page
    v=onepage OR v=twopage

https://books.google.com/books?id=rAy-NliGEPMC&pg=PA126#v=twopage&f=false

  • Whether to show or not the left hand side-bar
    f=false OR f=true

https://books.google.com/books?id=rAy-NliGEPMC&pg=PA126#v=onepage&f=true

| improve this answer | |
  • Thanks. What is "lpg=PA126"? – Tim Aug 19 at 19:19
  • It is the page as well. Probably acting as referral. Not quite sure. The link still works after omitting it. Also. Please remember that as per site guidelines when an answer addresses your question, accept it and even upvote it so others can benefit as well. – marikamitsos Aug 19 at 20:46
  • My confusion is mainly between lpg and pg. lpg seems not working for pointing to a page. – Tim Aug 19 at 20:48
  • "lpg seems not working for pointing to a page". Correct. As mentioned before. "The link still works after omitting it." – marikamitsos Aug 19 at 20:50
  • Please check the updated answer. – marikamitsos Aug 21 at 12:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.