A web application that converts your Spotify data into JSON format. Export your music preferences, playlists, listening history, and more with ease.
- 🎵 Liked Songs - Export all your liked songs to JSON
- 📋 Playlists - View and export all your playlists
- 🎧 Recently Played - Track your recently played tracks
- ⭐ Top Items - Get your top tracks and artists
- 👤 User Profile - Export your Spotify profile data
- 🎨 Follow Artists - View and export your followed artists
- 🌙 Dark Mode - Light and dark theme support
- 🔐 Secure Auth - OAuth 2.0 authentication with Spotify
- Framework: Next.js
- Language: JavaScript/JSX
- Styling: Tailwind CSS (with PostCSS)
- Authentication: Spotify OAuth 2.0
- API Integration: Spotify Web API
- Clone the repository:
git clone <repository-url>
cd jsonify- Install dependencies:
npm install- Set up environment variables:
Create a
.env.localfile with your Spotify API credentials:
SPOTIFY_CLIENT_ID=your_client_id
SPOTIFY_CLIENT_SECRET=your_client_secret
SPOTIFY_REDIRECT_URI=http://localhost:3000/auth/callback
- Run the development server:
npm run devOpen http://localhost:3000 in your browser.
- Login - Click the login button to authenticate with your Spotify account
- Navigate - Use the menu to browse different data categories
- Export - Click export buttons to download data as JSON
GET /auth/login- Initiate Spotify loginGET /auth/callback- Handle OAuth callbackGET /auth/refresh- Refresh access token
GET /api/user/profile- Get user profileGET /api/user/top-items- Get top tracks and artistsGET /api/user/recently-played- Get recently played tracksGET /api/user/followed-artists- Get followed artistsGET /api/user/playlists/owned- Get user's own playlists
GET /api/liked-songs- Get liked songsGET /api/playlists- Get all playlists
src/
├── app/ # Next.js pages and API routes
│ ├── api/ # API endpoints
│ ├── auth/ # Authentication pages
│ ├── user/ # User data pages
│ ├── liked-songs/ # Liked songs page
│ ├── playlists/ # Playlists page
│ └── playlist/[id]/ # Individual playlist page
├── ui/ # React components
├── utils/
│ └── server/ # Server utilities and Spotify API helpers
└── theme/ # Theme configuration
- User authentication
- Liked songs export
- Playlists display
- User profile
- Top items tracking
- Recently played
- Followed artists