Buying Options
Kindle Price: | $39.00 |
Your Memberships & Subscriptions

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required. Learn more
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Django for APIs: Build web APIs with Python and Django (Welcome to Django Book 2) Kindle Edition
Price | New from | Used from |
- Kindle
$39.00 Read with Our Free App - Paperback
$39.00 - $51.02
Completely updated for Django 4.0 & Django REST Framework 3.13
Django for APIs is a project-based guide to building modern web APIs with Django & Django REST Framework. It is suitable for beginners who have never built an API before as well as professional programmers looking for a fast-paced introduction to Django fundamentals and best practices.
Over the course of 200+ pages you'll learn how to set up a new project properly, how web APIs work under the hood, and advanced testing and deployment techniques. Three separate projects are built from scratch with progressively more advanced features including a Library API, Todo API, and Blog API. User authentication, permissions, documentation, viewsets, and routers are all covered thoroughly.
Django for APIs is a best-practices guide to building powerful Python-based web APIs with a minimal amount of code.
Reviews
"If you’re looking for a guide into the world of Django, then the three-step of Django for Beginners, Django for APIs, and Django for Professionals is ideal: get up and running, get into APIs, which are a cornerstone of modern app development, and then add the bits you need to your fledging app into production, from databases and static files, to user accounts and security. It’s a long road. Will’s books are an awesome companion."—CARLTON GIBSON, Django Fellow and Django REST Framework core contributor
"When readers interested in web development ask me what to read next after Python Crash Course, I refer them to Will's books: Django for Beginners, Django for APIs, and Django for Professionals. I highly recommend you check out his work."—ERIC MATTHES, author of Python Crash Course
"Will's books are a fantastic resource for web development with Django and Python. I highly recommended them.”—JEFF TRIPLETT, Python Software Foundation Director, DEFNA President, and REVSYS Partner
- LanguageEnglish
- Publication dateAugust 10, 2020
- File size20202 KB
-
Next 2 for you in this series
$78.00 -
All 3 for you in this series
$117.00
Customers who read this book also read
Product details
- ASIN : B08FMVYVFR
- Publisher : WelcomeToCode (August 10, 2020)
- Publication date : August 10, 2020
- Language : English
- File size : 20202 KB
- Simultaneous device usage : Unlimited
- Text-to-Speech : Enabled
- Screen Reader : Supported
- Enhanced typesetting : Enabled
- X-Ray : Not Enabled
- Word Wise : Not Enabled
- Sticky notes : On Kindle Scribe
- Print length : 221 pages
- Best Sellers Rank: #158,703 in Kindle Store (See Top 100 in Kindle Store)
- #16 in Web Services & APIs
- #35 in Web Programming
- #50 in Web Services
- Customer Reviews:
About the author

William S. Vincent is a Board Member of the Django Software Foundation and has presented multiple talks at DjangoCon US. The author of three books on Django, he co-hosts the weekly Django Chat podcast, co-writes the weekly Django News newsletter, and runs LearnDjango.com.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on Amazon
Reviewed in the United States on June 22, 2020
-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
Summary:
* Better beginner resource than official docs and other books
* Up-to-date (mine was printed on the same day that I ordered the book)
* Quick read (went through it in just a few days)
The Full Review:
When I first started to play around w/ python I remember setting up an API by following DRF's quickstart. It worked. I set an API up but I couldn't do anything w/ it. I didn't understand what was going on or what had happened behind the scenes to get this app up and running. Going through the rest of the official documentation, I realized that it's meant for people who are comfortable w/ Python and are VERY comfortable w/ Django. But if you haven't had a chance to build several production projects where you've installed and successfully configured 3rd party apps, the official tutorial can be hard to follow.
I've since had the opp to play around w/ Django a bit. I've built a few real-life apps w/ it. About a month ago I reached a pt where I needed to implement an API for one such project. I revisited the official tutorial but while I understood a lot more this time, I still felt somewhat lost.
I decided to follow an e-book that I got a few months back as part of an e-book bundle purchase I made. Everything was going great until chapter 2 when the code presented didn't work. I found that the number one complain for that book was errors in code. No good.
Searching for a DRF-specific book, I this book. I have Vincent's "Django for Beginners" book and I've found it to be the best resource for DJango by far. Knowing that I liked his way of teaching and his way of writing, I went for this book instantly. Didn't even bother to read the reviews.
The first thing to note about this book is that it is up-to-date. How new and fresh is the information in the book? The bottom part of the very last page has the print date. Mine was printed the very same day I purchased it. EVERY piece of software referenced matched the actual latest version of said software/add-on. This alone, is reason enough to purchase this book over any other.
William takes time to explain how REST works. He provides details for how requests and tokens and codes are sent back and forth from client to server. Every piece of code works and the explanation of said code is very easy to understand.
This is a quick read. Should be doable in a weekend if you've got nothing else going on. You'll be up and running a real API in no time. Better yet, you will be at a point where you can jump over to the official DRF docs. My next steps will definitely be to get a better handle on the 3rd party software used in the book (swagger, rest_auth, allauth, etc). Again, this book sets you up so that you can use all of these packages' official docs as reference... as they were intended to be used.
Buy this book if you are new to APIs, have been developing Django apps for less than a yr, or if you've set up DRF-based APIs using the official docs but still not quite sure how/why things work.
Here is what pisses me off about this book:
- Although he does cover a lot of API essential features, he dives very superficially on endpoints and basically doesn't show any Django fundamentals for how the infinite myriad of obscure inheritances occur.
- At the beginning of the book, instead of giving the reader a quickstart guide on Django, he simply dispatches us to his other book on pure Django, an overt way of self-marketing. Very annoying. I was lucky that I did have some raw Django basics already.
- In the realpython website there are some very nice tutorials with a lot of improvements and better practices, why do we have to stick to the most basic implementations in the book? Wasn't this supposed to be THE book for Django APIs?
- Where is the API design patterns and best practices chapter? Seriously, having to look for that on Google and Youtube felt absolutely underwhelming.
In the end, I'm gonna have to be at the mercy of websites like StackOverflow and the most dry and lifeless documentation that is Django REST Framework's. I'll probably end up also buying some other book like Practical Django 2 or Channels 2: Building Projects and Applications with Real-Time Capabilities, by Federico Marani; or Django RESTful Web Services: The easiest way to build Python RESTful APIs and web services with Django, by Gaston C. Hillar; which will make my budget (and experience) for my API project kind of very disappointing.
by Federico Marani on Amazon. It is a much more serious treatment of the subject, it addresses several critical details that you would need for any beyond-toy web apps. Also you eventually end up with a serious serious application. The most unfair part of Vincent's book and the other is, they are really very expensive for what they are offering. Practical Django 2 is doing everything and more for only $30, including API development, websockets(!) etc, while Vincent charges 2x$39=$78 for two really toy books. If you are into API, that already means you'll need more and this book is probably not for you. But again, if you are a clueless beginner, that might be your book.
Top reviews from other countries


However I was slightly disappointed at how brief it was, and as another reviewer mentioned, by the lack of more complicated discussion.
I think I read the book in a little over an hour, and while what it did cover was very well explained, realistically it doesn't touch on much more than what you might expect to find in a series of blog posts. And, to be frank, I don't think I learned anything new from reading the book.
For those who are new to Django, or new to the concept of APIs, this is probably a very good resource. But for those looking for something that covers DRF in a little more detail, this book probably isn't the one for you.

This book, however, is good, and I mean really good! I am just through the first chapter and the text is clearly explained. The code is just working and it has ALL the steps, in and outside the coding.
It made me buy his other book as well.
I can fully recommend this book


There is not enough front end examples. Like react and how it will store the authentications.
It doesn’t give an example of a more complicated model.
It doesn’t show a more complicated permissions.
It doesn't cover JWT, even though it mentions it is the post popular authentication for the REST api.