PP
yy
SS
hh
ee
ll
ll
INITIALIZING SYSTEM

API Reference

Comprehensive documentation for the APIs integrated with PyShell

Authentication Note

Some APIs require authentication. Make sure to obtain the necessary API keys before using them. Environment variables should be used to store sensitive keys securely.

Jio Saavn API
Music
Search for songs using the Jio Saavn API

Endpoint

https://saavn.dev/api/search/songs?query=<song_name>
OpenWeatherMap API
Weather
Get current weather data for any location

Endpoint

http://api.openweathermap.org/data/2.5/weather?q=<city>&appid=<api_key>&units=metric

Authentication Required

This API requires an API key. You can get a free API key by signing up at OpenWeatherMap.

Integration Guide

To integrate these APIs with PyShell, follow these steps:

  1. Install Required Dependencies:
    pip install requests python-dotenv
  2. Set Up Environment Variables:

    Create a .env file in your project's root directory with your API keys:

    OPENWEATHER_API_KEY=your_api_key_here
  3. Import the API Functions:

    Import the API functions in your PyShell application and use them as needed. See the code examples above for details.

  4. Add Error Handling:

    Always include proper error handling to manage network issues, API rate limits, or invalid responses.