Day 29 Challenge Resources


A media agency wants to offer a personalized experience to its subscribers by creating a landing page that recommends the top three bestsellers from the New York Times bestseller list based on each subscriber’s main interest. The main interest is stored in a sendable data extension. To achieve this personalized experience, the marketer plans to use AMPscript and SSJS.


This challenge involves retrieving data from an API endpoint. Specifically, we will be using the Books API to access information about bestsellers from the New York Times bestseller list. To access the API key, you will need to create your own account here. Once you have obtained your API key, use the following URL to retrieve the data (remember to replace “your_API_key” with your actual key):

The following are great examples how you can leverage SSJS with AMPscript:


Download CSV
SubscriberKey Email FirstName LastName Interest
9083 James Bond advice-how-to-and-miscellaneous
5367 Tony Stark hardcover-fiction
2961 Ellen Ripley hardcover-nonfiction
8753 Indiana Jones combined-print-and-e-book-nonfiction
5619 Harry Potter hardcover-fiction

To list the top three books, you may need to parse the “Interest” variable from the sendable data extension to the CloudPage URL and use SSJS to make an API call. Additionally, you can include a link to each asset directly on the landing page.

Boost AMPscript Skills in Just 30 Days!

Whether you're just starting with AMPscript coding or looking to expand your skills, this challenge is for you!