UNPKG

unof-quizlet-api

Version:

An API that scrapes Quizlet Study Sets and returns Study Set terms and definitions. Great for high scale educational applications!

54 lines (43 loc) 1.31 kB
# Quizlet API An API that scrapes Quizlet Study Sets and returns Study Set terms and definitions. Great for high scale educational applications! # Add the API to your project! ``` const quizlet = require('unof-quizlet-api'); ``` ``` import quizlet from 'unof-quizlet-api' ``` # Code Sample ``` async function getQuizlet() { const { data } = await quizlet('https://quizlet.com/20384381/apush-chapter-35-flash-cards/'); console.log(data); } getQuizlet() ``` ``` const quizlet = require('unof-quizlet-api'); quizlet('https://quizlet.com/20384381/apush-chapter-35-flash-cards/') .then(data => console.log(data)); ``` API Output ``` { title: 'Biology Honors Terms Flashcards | Quizlet', author: 'HelloSP', cards: [ { term: 'Photosynthesis', definition: 'Conversion of light energy from the sun into chemical energy.' }, { term: 'cellular respiration', definition: 'Process that releases energy by breaking down glucose and other food molecules in the presence of oxygen' } ] } ``` # Why you can use this? Educational applications sometimes need information from Quizlet but can not do so easily, so this API can help convert the Quizlets into easier, JSON format. ## License ISC