Studio Ghibli API: free में Ghibli movies data कैसे पाएँ

Key: No key needed · HTTPS: Yes · CORS: yes · Topic: Anime

Studio Ghibli API एक open-source service है जो Ghibli की famous movies, characters और locations की details देती है। यह data JSON format में मिलता है, इसलिए इसे किसी भी web app या project में आसानी से use किया जा सकता है। Ghibli fans के लिए यह API बहुत handy है क्योंकि इससे बिना किसी paid service के authentic data मिल जाता है।

Free में क्या मिलता है

  • यह API पूरी तरह free है और कोई API key या sign up की ज़रूरत नहीं होती।
  • आप movies, characters और locations के endpoints को directly access कर सकते हैं।
  • CORS support है, इसलिए इसे browser-based JavaScript apps में बिना किसी problem के use किया जा सकता है।
  • Free plan की limits official docs में देखें, लेकिन general use के लिए यह बहुत flexible है।

कैसे शुरू करें

  1. सबसे पहले official docs page https://ghibliapi.vercel.app खोलें।
  2. Docs में दिए गए endpoints (जैसे /movies या /characters) को note करें।
  3. अपने code में fetch() या axios से एक simple GET request भेजें।
  4. Response में मिले JSON data को parse करें और अपने UI में display करें।

Example

fetch('https://ghibliapi.vercel.app/movies')
  .then(response => response.json())
  .then(data => {
    console.log('Total Movies:', data.length);
    console.log('First Movie:', data[0].title);
  })
  .catch(error => console.error('Error:', error));

यह example Ghibli की सभी movies की list fetch करता है और console में total count और पहली movie का title print करता है।

किस project में काम आएगा

  • Ghibli movie database बनाएं जिसमें users movies को title या release year के हिसाब से filter कर सकें।
  • Anime fans के लिए एक character gallery बनाएं जहाँ characters की images और descriptions दिखें।
  • A travel blog या app बनाएं जो Ghibli movies की locations को real-world maps पर दिखाएं।
  • College project के लिए एक simple REST API client बनाएं जो इस API से data fetch करके display करे।

ध्यान रखने वाली बातें

  • चूंकि यह API public है, responses को cache करें ताकि हर बार network request न भेजना पड़े।
  • Error handling ज़रूर करें, क्योंकि कभी-कभी network issues या server downtime हो सकता है।
  • यह API CORS support करता है, इसलिए आप इसे directly browser से call कर सकते हैं बिना किसी proxy के।

अक्सर पूछे जाने वाले सवाल

क्या Studio Ghibli API free है?

हाँ, यह API पूरी तरह free है और कोई payment या subscription की ज़रूरत नहीं होती।

क्या इस API का use करने के लिए API key चाहिए?

नहीं, इस API के लिए कोई API key या authentication की ज़रूरत नहीं होती। आप directly endpoints को access कर सकते हैं।

क्या मैं इसे अपने college project में use कर सकता हूँ?

हाँ, आप इसे अपने college project या personal projects में freely use कर सकते हैं। बस official docs में license policy check कर लें।

इसी तरह की free APIs

Official docs · List: public-apis (MIT)