{"id":22497147,"url":"https://github.com/chaudharypraveen98/spotifyapi","last_synced_at":"2025-03-27T21:26:00.696Z","repository":{"id":119074334,"uuid":"271668575","full_name":"chaudharypraveen98/SpotifyApi","owner":"chaudharypraveen98","description":"It is a class based client Api. It makes multiple get request with the spotify to search songs, album, artist and the tracks..","archived":false,"fork":false,"pushed_at":"2023-05-22T21:39:26.000Z","size":100,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T23:45:35.162Z","etag":null,"topics":["api","programming","python","scripting","spotify-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chaudharypraveen98.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-11T23:50:16.000Z","updated_at":"2024-08-01T19:10:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"3bda2cff-a191-43d0-8ad8-1ffb9e40b9cc","html_url":"https://github.com/chaudharypraveen98/SpotifyApi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaudharypraveen98%2FSpotifyApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaudharypraveen98%2FSpotifyApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaudharypraveen98%2FSpotifyApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaudharypraveen98%2FSpotifyApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chaudharypraveen98","download_url":"https://codeload.github.com/chaudharypraveen98/SpotifyApi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245925876,"owners_count":20694974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","programming","python","scripting","spotify-api"],"created_at":"2024-12-06T20:16:55.026Z","updated_at":"2025-03-27T21:26:00.669Z","avatar_url":"https://github.com/chaudharypraveen98.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SpotifyApi\nIt is a class based api. It makes multiple get request with the spotify.\n\n\u003cbr\u003e\n\u003cimg src=\"spotify.JPG\" alt=\"preview\"\u003e\n\u003cbr\u003e\n\n#### How to setup the Api :-\n1. First install requirements.txt by :-\n`python3 install -r requirements.txt`\n2. Enter the `client id` and `secret key` that you have get from the spotify developer account in the \"spotify_api.py\".\n3. Make a object of the class to use methods.\n\u003cbr\u003eExample:-\n\u003cbr\u003e`spotify = SpotifyApi()`\n4. Then you have to perform authentication for getting the access token. A _access token_ is used to make get request. One need to understand that access token has a expiry time i.e **_3600 seconds_** for version 1 now. But your class automatically manages that work for you. It will regenerate the token if expires. So you don't need to worry about it at all. Running authentication is one time process. For authentication simply run :-\n\u003cbr\u003e`spotify.perform_auth()`\n\u003c!-- --\u003e\n#### How to use the Api:\n1. Now you can start using the methods or get requests as shown below :-\n\u003cbr\u003e`spotify.search(query, operator=None, operator_query=None, search_type=\"type\")`\n\u003cbr\u003ewhere :-\n\u003cbr\u003e**query** = It can be anything depending on the type of search. For search type like artist, it can be Neha Kakkar, Honey Singh, Raaftar etc.\n\u003cbr\u003e**_search_type_** = spotify provides different type of searches like by artists, albums or tracks.\n\u003cbr\u003e_**operator**_ = spotify provides two type of operator i.e \"**OR**\" and \"**NOT**\". NOT operator means exclude it. OR operator means anyone of both.\n\u003cbr\u003e**_operator_query_** = means anything you want to exclude or to make an option.\nexample :-\n\u003cbr\u003e`songs=spotify.search(\"Tony\", operator=\"not\" , operator_query=\"Kakkar\", search_type=\"artist\")`\n\u003cbr\u003e The above code will search for tony but it will neglect the results which contains the Kakkar in their title.\n2. You can even search for the track in the similar way for track. Example :-\n\u003cbr\u003e`spotify.search(Time, search_type=\"track\")`\n\n**Note : -**\n\u003cbr\u003eYou can use this Spotify Api Client without any issue. Feel free to suggest changes.\n\n**Last Test : -**\n\u003cbr\u003e12 January 2021","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaudharypraveen98%2Fspotifyapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchaudharypraveen98%2Fspotifyapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaudharypraveen98%2Fspotifyapi/lists"}