MulaiMulai sekarang secara gratis

Requesting JSON data from an API

When working with complex data structures, JSON is a popular format used by many web APIs. However, APIs can respond in other formats, too. Therefore, it's crucial you know how to request a specific format from an API. You can achieve this by adding a header to your requests.

Which of the following requests will return data formatted as JSON?

Latihan ini adalah bagian dari kursus

Introduction to APIs in Python

Lihat Kursus

Latihan interaktif praktis

Ubah teori menjadi tindakan dengan salah satu latihan interaktif kami.

Mulai berolahraga