Best Sellers API
Download
1 / 16

Current Best-Seller List - PowerPoint PPT Presentation


  • 240 Views
  • Updated On :

Best Sellers API. Current Best-Seller List. Must specify list-name parameter Leaving off date parameter gives current week http://api.nytimes.com/svc/books/v2/lists/hardcover-fiction.xml?api-key={api-key}. http://api.nytimes.com/svc/books/v2/lists/hardcover-fiction.xml?api-key={api-key}.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Current Best-Seller List' - ivanbritt


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

Current best seller list l.jpg
Current Best-Seller List

  • Must specify list-name parameter

  • Leaving off date parameter gives current week

    http://api.nytimes.com/svc/books/v2/lists/hardcover-fiction.xml?api-key={api-key}


Http api nytimes com svc books v2 lists hardcover fiction xml api key api key l.jpg
http://api.nytimes.com/svc/books/v2/lists/hardcover-fiction.xml?api-key={api-key}http://api.nytimes.com/svc/books/v2/lists/hardcover-fiction.xml?api-key={api-key}


Best seller list names l.jpg
Best-Seller List Nameshttp://api.nytimes.com/svc/books/v2/lists/hardcover-fiction.xml?api-key={api-key}

  • To get all possible list-name options, see the names service:

    http://api.nytimes.com/svc/books/v2/lists/names.xml?api-key={api-key}


Http api nytimes com svc books v2 lists names xml api key api key l.jpg
http://api.nytimes.com/svc/books/v2/lists/names.xml?api-key={api-key}http://api.nytimes.com/svc/books/v2/lists/names.xml?api-key={api-key}


Previous best seller list l.jpg
Previous Best-Seller Listhttp://api.nytimes.com/svc/books/v2/lists/names.xml?api-key={api-key}

  • To get a previous list, specify a date parameter in the URL prior to the list-name.

  • The date parameter does not have to be exact, we will find the closest list to the date you specified (going forward in time).

    http://api.nytimes.com/svc/books/v2/lists/2008-10-06/hardcover-fiction.xml?api-key={api-key}


Http api nytimes com svc books v2 lists 2008 10 06 hardcover fiction xml api key api key l.jpg
http://api.nytimes.com/svc/books/v2/lists/2008-10-06/hardcover-fiction.xml?api-key={api-key}http://api.nytimes.com/svc/books/v2/lists/2008-10-06/hardcover-fiction.xml?api-key={api-key}


Sorting basic list l.jpg
Sorting Basic Listhttp://api.nytimes.com/svc/books/v2/lists/2008-10-06/hardcover-fiction.xml?api-key={api-key}

List service can be sorted on the following fields:

  • isbn 

  • list-name ( or just list )

  • published-date (or just date)

  • bestsellers-date 

  • weeks-on-list

  • rank 

  • rank-last-week

    http://api.nytimes.com/svc/books/v2/lists/2008-10-06/hardcover-fiction.xml?sort-by=weeks-on-list&sort-order=DESC&api-key={api-key}


Best seller list search l.jpg
Best-Seller List Searchhttp://api.nytimes.com/svc/books/v2/lists/2008-10-06/hardcover-fiction.xml?api-key={api-key}

More flexible option for retrieving list information

Search parameters are same as sort parameters:

  • isbn 

  • list-name ( or just list )

  • published-date (or just date)

  • bestsellers-date 

  • weeks-on-list

  • rank 

  • rank-last-week

    http://api.nytimes.com/svc/books/v2/lists.xml?date=2008-10-06&list=hardcover-fiction&api-key={api-key}

    http://api.nytimes.com/svc/books/v2/lists.xml?date=2008-10-06&list=hardcover-fiction&weeks-on-list=2&sort-by=rank-last-week&sort-order=DESC&api-key={api-key}


Best seller search l.jpg
Best Seller Searchhttp://api.nytimes.com/svc/books/v2/lists/2008-10-06/hardcover-fiction.xml?api-key={api-key}

Search for all lists for specific book, author and more

Search and sort options are the following:

  • isbn 

  • title

  • price 

  • publisher 

  • contributor 

  • author 

  • age-group

    http://api.nytimes.com/svc/books/v2/lists/best-sellers/history.xml?author=McCarthy&api-key={api-key}

    http://api.nytimes.com/svc/books/v2/lists/best-sellers/history.xml?author=McCarthy&title=Road&api-key={api-key}


Http api nytimes com svc books v2 lists best sellers history xml author mccarthy api key api key l.jpg
http://api.nytimes.com/svc/books/v2/lists/best-sellers/history.xml?author=McCarthy&api-key={api-key}http://api.nytimes.com/svc/books/v2/lists/best-sellers/history.xml?author=McCarthy&api-key={api-key}


Slide14 l.jpg
http://api.nytimes.com/svc/books/v2/lists/best-sellers/history.xml?author=McCarthy&title=Road&api-key={api-key}http://api.nytimes.com/svc/books/v2/lists/best-sellers/history.xml?author=McCarthy&title=Road&api-key={api-key}


Sorting best seller search l.jpg
Sorting Best Seller Searchhttp://api.nytimes.com/svc/books/v2/lists/best-sellers/history.xml?author=McCarthy&title=Road&api-key={api-key}

All search fields may also be used as sort parameters

  • isbn 

  • title

  • price 

  • publisher 

  • contributor 

  • author 

  • age-group

    http://api.nytimes.com/svc/books/v2/lists/best-sellers/history.xml?author=Grisham&sort-by=title&api-key={api-key}


Show us your apps l.jpg
Show Us Your Appshttp://api.nytimes.com/svc/books/v2/lists/best-sellers/history.xml?author=McCarthy&title=Road&api-key={api-key}

Check out the New York Times Developer Network forum and let us know what apps you are building.


ad