{"id":13714314,"url":"https://github.com/barkloaf/MetaGrabAPI","last_synced_at":"2025-05-07T01:33:22.194Z","repository":{"id":57543166,"uuid":"286617280","full_name":"barkloaf/MetaGrabAPI","owner":"barkloaf","description":"An API that grabs Spotify's metadata for any track you'd like!","archived":false,"fork":false,"pushed_at":"2022-10-27T02:21:13.000Z","size":37,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-03T23:30:18.682Z","etag":null,"topics":["api","go","golang","metadata","music","spotify","spotify-api","spotify-web-api","web-api"],"latest_commit_sha":null,"homepage":"https://metagrab.barkloaf.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/barkloaf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-11T01:37:23.000Z","updated_at":"2024-02-19T12:23:25.000Z","dependencies_parsed_at":"2022-08-27T19:10:51.097Z","dependency_job_id":null,"html_url":"https://github.com/barkloaf/MetaGrabAPI","commit_stats":null,"previous_names":["austinti/spotgrabapi","austinti/metagrabapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkloaf%2FMetaGrabAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkloaf%2FMetaGrabAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkloaf%2FMetaGrabAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barkloaf%2FMetaGrabAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barkloaf","download_url":"https://codeload.github.com/barkloaf/MetaGrabAPI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224551221,"owners_count":17330103,"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","go","golang","metadata","music","spotify","spotify-api","spotify-web-api","web-api"],"created_at":"2024-08-02T23:01:56.839Z","updated_at":"2024-11-14T01:30:59.427Z","avatar_url":"https://github.com/barkloaf.png","language":"Go","funding_links":[],"categories":["Repositories"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://metagrab.barkloaf.com\"\u003e\n    \u003cimg src=\"https://metagrab.barkloaf.com/logo.png\" width=\"300\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# \u003cp align=\"center\"\u003eMetaGrabAPI\u003c/p\u003e\n\u003cp align=\"center\"\u003eAn API that grabs Spotify's metadata for any track you'd like!\u003c/p\u003e\n\n## Table of Contents\n  - [Introduction](#introduction)\n  - [Configuration](#configuration)\n  - [Endpoints](#endpoints)\n    - [track - `http://bindAddress/track?id={id}`](#track---httpbindaddresstrackidid)\n      - [Track Example](#track-example)\n    - [search - `http://bindAddress/search?{query}`](#search---httpbindaddresssearchquery)\n      - [Search Example](#search-example)\n  - [Omissions](#omissions)\n  - [License Notice](#license-notice)\n\n## Introduction\nThis is the API used by my other project, [MetaGrab](https://github.com/barkloaf/MetaGrab). It's written in Go and grabs Spotify's metadata about any track on its platform. Metadata is data about other data. Track metadata can include artists, what album the track appeared on, and the qualitative feel of the track.\n\n## Configuration\n[config.example.json](https://github.com/barkloaf/MetaGrabAPI/blob/master/config.example.json) is an example for the config that then becomes `config.json`. The config becomes a struct as such:\n```go\ntype Configuration struct {\n\t//ID and Secret are obtained at https://developer.spotify.com/dashboard/\n\tID     string // ID\n\tSecret string // SECRET\n\n\t//SearchLimit is an integer that sets the maximum number of search results (type misc.Search) given by the search.GetSearch function\n\tSearchLimit int // SEARCH_LIMIT\n\n\t//RateBucket is the size of the bucket filled at the rate defined by RateLimit, for use for the ratelimit middleware functionality\n\tRateLimit  time.Duration // RATE_LIMIT\n\tRateBucket int           // RATE_BUCKET\n\n\t//BindAddress is the address in which the API is hosted\n\tBindAddress string // BIND_ADDRESS\n\n\t//AccessControl is a domain that all API access is restricted to in the Access-Control-Allow-Origin header\n\tAccessControl string // ACCESS_CONTROL\n}\n```\n## Endpoints\n### track - `http://bindAddress/track?id={id}`\nThe track enpoint provides a JSON of the track associated with the track ID parameter. The track ID is a base-62 identifier assigned to every track by Spotify and can be found at the end of a Spotify URI. The track struct is the combination of information retrieved by multiple Spotify endpoints, all of which are defined as such:\n```go\n//Info is catalog information for a single track\ntype Info struct {\n\t//Album on which the track appears. This is considered a \"simplified album object\", and is mostly used to feed the track.GetAlbum function, which returns a misc.Album\n\tAlbum struct {\n\t\t//The Spotify ID for the album\n\t\tID string `json:\"id\"`\n\n\t\t//The cover art for the album in various sizes, widest first\n\t\tImages []struct {\n\t\t\t//The source URL of the image\n\t\t\tURL string `json:\"url\"`\n\t\t} `json:\"images\"`\n\n\t\t//The name of the album. In case of an album takedown, the value may be an empty string\n\t\tName string `json:\"name\"`\n\t} `json:\"album\"`\n\n\t//Artists who performed the track. This in considered a \"simplified artist object\"\n\tArtists []struct {\n\t\t//The name of the artist\n\t\tName string `json:\"name\"`\n\n\t\t//The Spotify URI for the artist\n\t\tURI string `json:\"uri\"`\n\t} `json:\"artists\"`\n\n\t//A list of the countries in which the track can be played, identified by their ISO 3166-1 alpha-2 code.\n\tAvailableMarkets []string `json:\"available_markets\"`\n\n\t//Whether or not the track has explicit lyrics (true = yes it does; false = no it does not OR unknown)\n\tExplicit bool `json:\"explicit\"`\n\n\t//The Spotify ID for the track\n\tID string `json:\"id\"`\n\n\t//The name of the track\n\tName string `json:\"name\"`\n\n\t//The popularity of the track. The value will be between 0 and 100, with 100 being the most popular\n\t//The popularity of a track is a value between 0 and 100, with 100 being the most popular. The popularity is calculated by algorithm and is based, in the most part, on the total number of plays the track has had and how recent those plays are\n\t//Generally speaking, songs that are being played a lot now will have a higher popularity than songs that were played a lot in the past. Duplicate tracks (e.g. the same track from a single and an album) are rated independently. Artist and album popularity is derived mathematically from track popularity. Note that the popularity value may lag actual popularity by a few days: the value is not updated in real time\n\tPopularity int `json:\"popularity\"`\n\n\t//The number of the track. If an album has several discs, the track number is the number on the specified disc\n\tNumber int `json:\"track_number\"`\n\n\t//The Spotify URI for the track\n\tURI string `json:\"uri\"`\n}\n\n//Album is catalog information for a single album\ntype Album struct {\n\t//The type of the album: one of \"Album\", \"Single\", or \"Compilation\".\n\tType string `json:\"album_type\"`\n\n\t//The Spotify ID for the album\n\tID string `json:\"id\"`\n\n\t//The cover art for the album in various sizes, widest first\n\tImages []struct {\n\t\t//The source URL of the image\n\t\tURL string `json:\"url\"`\n\t} `json:\"images\"`\n\n\t//The music label for the album\n\tLabel string `json:\"label\"`\n\n\t//The name of the album. In case of an album takedown, the value may be an empty string\n\tName string `json:\"name\"`\n\n\t//The date the album was first released, formatted depending on the 3 possible values held by DatePrec\n\t//\"year\": yyyy (e.g. \"1981\")\n\t//\"month\": MMM-yyyy (e.g. \"Dec-1981\")\n\t//\"day\": dd-MMM-yyyy (e.g. \"15-Dec-1981\")\n\tDate     string `json:\"release_date\"`\n\tDatePrec string `json:\"release_date_precision\"`\n\n\t//The Spotify URI for the album\n\tURI string `json:\"uri\"`\n}\n\n//Features contains audio feature information\ntype Features struct {\n\t//The duration of the track in milliseconds\n\tDuration int `json:\"duration_ms\"`\n\n\t//The estimated overall key of the track. Integers map to pitches using standard Pitch Class notation. (e.g. 0 = C, 1 = C♯/D♭, 2 = D, etc.). If no key was detected, the value is -1\n\tKey int `json:\"key\"`\n\n\t//Mode indicates the modality (major or minor) of a track, the type of scale from which its melodic content is derived. Major is represented by 1 and minor is 0\n\tMode int `json:\"mode\"`\n\n\t//An estimated overall time signature of a track. The time signature (meter) is a notational convention to specify how many beats are in each bar (or measure). The time signature ranges from 3 to 7 indicating time signatures of “3/4”, to “7/4”. Spotify only returns a single integer, which may or may not be very useful\n\tTimeSig int `json:\"time_signature\"`\n\n\t//A confidence measure from 0.0 to 1.0 of whether the track is acoustic. 1.0 represents high confidence the track is acoustic\n\tAcousticness float64 `json:\"acousticness\"`\n\n\t//Danceability describes how suitable a track is for dancing based on a combination of musical elements including tempo, rhythm stability, beat strength, and overall regularity. A value of 0.0 is least danceable and 1.0 is most danceable\n\tDanceability float64 `json:\"danceability\"`\n\n\t//Energy is a measure from 0.0 to 1.0 and represents a perceptual measure of intensity and activity. Typically, energetic tracks feel fast, loud, and noisy. Perceptual features contributing to this attribute include dynamic range, perceived loudness, timbre, onset rate, and general entropy\n\tEnergy float64 `json:\"energy\"`\n\n\t//Predicts whether a track contains no vocals. “Ooh” and “aah” sounds are treated as instrumental in this context. Rap or spoken word tracks are clearly “vocal”. The closer the instrumentalness value is to 1.0, the greater likelihood the track contains no vocal content. Values above 0.5 are intended to represent instrumental tracks, but confidence is higher as the value approaches 1.0\n\tInstrumentalness float64 `json:\"instrumentalness\"`\n\n\t//Detects the presence of an audience in the recording. Higher liveness values represent an increased probability that the track was performed live. A value above 0.8 provides strong likelihood that the track is live\n\tLiveness float64 `json:\"liveness\"`\n\n\t//The overall loudness of a track in decibels (dB). Loudness values are averaged across the entire track and are useful for comparing relative loudness of tracks. Loudness is the quality of a sound that is the primary psychological correlate of physical strength (amplitude). Values typical range between -60 and 0 db\n\tLoudness float64 `json:\"loudness\"`\n\n\t//Speechiness detects the presence of spoken words in a track. The more exclusively speech-like the recording (e.g. talk show, audio book, poetry), the closer to 1.0 the attribute value. Values above 0.66 describe tracks that are probably made entirely of spoken words. Values between 0.33 and 0.66 describe tracks that may contain both music and speech, either in sections or layered, including such cases as rap music. Values below 0.33 most likely represent music and other non-speech-like tracks\n\tSpeechiness float64 `json:\"speechiness\"`\n\n\t//A measure from 0.0 to 1.0 describing the musical positiveness conveyed by a track. Tracks with high valence sound more positive (e.g. happy, cheerful, euphoric), while tracks with low valence sound more negative (e.g. sad, depressed, angry)\n\tValence float64 `json:\"valence\"`\n\n\t//The overall estimated tempo of a track in beats per minute (BPM). In musical terminology, tempo is the speed or pace of a given piece and derives directly from the average beat duration\n\tTempo float64 `json:\"tempo\"`\n}\n\n//Analysis is detailed low-level audio analysis for a single track, describing the track's structure and musical content\ntype Analysis struct {\n\t//Sections are defined by large variations in rhythm or timbre\n\tSections []struct {\n\n\t\t//The starting point (in seconds) of the time interval\n\t\tStart float64 `json:\"start\"`\n\n\t\t//The duration (in seconds) of the time interval\n\t\tDuration float64 `json:\"duration\"`\n\n\t\t//The confidence, from 0.0 to 1.0, of the reliability of the interval\n\t\tConf float64 `json:\"confidence\"`\n\n\t\t//The overall loudness of the section in decibels (dB)\n\t\tLoudness float64 `json:\"loudness\"`\n\n\t\t//The overall estimated tempo of the section in beats per minute (BPM)\n\t\t//The confidence, from 0.0 to 1.0, is the reliability of the tempo. Some tracks contain tempo changes or sounds which don’t contain tempo (like pure speech) which would correspond to a low value in this field\n\t\tTempo     float64 `json:\"tempo\"`\n\t\tTempoConf float64 `json:\"tempo_confidence\"`\n\n\t\t//The estimated overall key of the section. The values in this field ranging from 0 to 11 mapping to pitches using standard Pitch Class notation (e.g. 0 = C, 1 = C♯/D♭, 2 = D, etc.). If no key was detected, the value is -1\n\t\t//The confidence, from 0.0 to 1.0, is the reliability of the key. Songs with many key changes may correspond to low values in this field\n\t\tKey     int     `json:\"key\"`\n\t\tKeyConf float64 `json:\"key_confidence\"`\n\n\t\t//Indicates the modality (major or minor) of a track, the type of scale from which its melodic content is derived. This field will contain a 0 for “minor”, a 1 for “major”, or a -1 for no result\n\t\t//The confidence, from 0.0 to 1.0, is the reliability of the mode\n\t\tMode     int     `json:\"mode\"`\n\t\tModeConf float64 `json:\"mode_confidence\"`\n\n\t\t//An estimated overall time signature of a track. The time signature (meter) is a notational convention to specify how many beats are in each bar (or measure). The time signature ranges from 3 to 7 indicating time signatures of “3/4”, to “7/4”. Spotify only returns a single integer, which may or may not be very useful\n\t\t//The confidence, from 0.0 to 1.0, is the reliability of the time signature. Sections with time signature changes may correspond to low values in this field\n\t\tTimeSig     int     `json:\"time_signature\"`\n\t\tTimeSigConf float64 `json:\"time_signature_confidence\"`\n\t} `json:\"sections\"`\n}\n\n//Track struct is a struct that contains all of the above structs and is served at the track endpoint\ntype Track struct {\n\tInfo     Info\n\tAlbum    Album\n\tFeatures Features\n\tAnalysis Analysis\n}\n```\n#### Track Example\nHere is an example JSON served by this endpoint with the ID `0g5J7GjfRxsunVrrcDLejQ`:\n```json\n{\n    \"Info\": {\n        \"album\": {\n            \"id\":\"2TIcThPVCssqowwlTKYEpv\",\n            \"images\": [\n                {\n                    \"url\":\"https://i.scdn.co/image/ab67616d0000b273c6b83566875ae494bc4997ab\"\n                },\n                {\n                    \"url\":\"https://i.scdn.co/image/ab67616d00001e02c6b83566875ae494bc4997ab\"\n                },\n                {\n                    \"url\":\"https://i.scdn.co/image/ab67616d00004851c6b83566875ae494bc4997ab\"\n                }\n            ],\n            \"name\":\"Mama Told Me\"\n        },\n        \"artists\": [\n            {\n                \"name\":\"Alexus\",\n                \"uri\":\"spotify:artist:73aRlPLCZSv6wlTUUK0aFP\"\n            }\n        ],\n        \"available_markets\": [\n            \"AD\",\"AE\",\"AL\",\"AR\",\"AT\",\"AU\",\"BA\",\"BE\",\"BG\",\"BH\",\"BO\",\"BR\",\"BY\",\"CA\",\"CH\",\"CL\",\"CO\",\"CR\",\"CY\",\"CZ\",\"DE\",\"DK\",\"DO\",\"DZ\",\"EC\",\"EE\",\"EG\",\"ES\",\"FI\",\"FR\",\"GB\",\"GR\",\"GT\",\"HK\",\"HN\",\"HR\",\"HU\",\"ID\",\"IE\",\"IL\",\"IN\",\"IS\",\"IT\",\"JO\",\"JP\",\"KW\",\"KZ\",\"LB\",\"LI\",\"LT\",\"LU\",\"LV\",\"MA\",\"MC\",\"MD\",\"ME\",\"MK\",\"MT\",\"MX\",\"MY\",\"NI\",\"NL\",\"NO\",\"NZ\",\"OM\",\"PA\",\"PE\",\"PH\",\"PL\",\"PS\",\"PT\",\"PY\",\"QA\",\"RO\",\"RS\",\"RU\",\"SA\",\"SE\",\"SG\",\"SI\",\"SK\",\"SV\",\"TH\",\"TN\",\"TR\",\"TW\",\"UA\",\"US\",\"UY\",\"VN\",\"XK\",\"ZA\"\n        ],\n        \"explicit\":false,\n        \"id\":\"0g5J7GjfRxsunVrrcDLejQ\",\n        \"name\":\"Mama Told Me - Original Mix\",\n        \"popularity\":19,\n        \"track_number\":2,\n        \"uri\":\"spotify:track:0g5J7GjfRxsunVrrcDLejQ\"\n        },\n\n    \"Album\": {\n        \"album_type\":\"Single\",\n        \"id\":\"2TIcThPVCssqowwlTKYEpv\",\n        \"images\": [\n            {\n                \"url\":\"https://i.scdn.co/image/ab67616d0000b273c6b83566875ae494bc4997ab\"\n            },\n            {\n                \"url\":\"https://i.scdn.co/image/ab67616d00001e02c6b83566875ae494bc4997ab\"\n            },\n            {\n                \"url\":\"https://i.scdn.co/image/ab67616d00004851c6b83566875ae494bc4997ab\"\n            }\n        ],\n        \"label\":\"Interphase Digital\",\n        \"name\":\"Mama Told Me\",\n        \"release_date\":\"2-Nov-2012\",\n        \"release_date_precision\":\"day\",\n        \"uri\":\"spotify:album:2TIcThPVCssqowwlTKYEpv\"\n    },\n    \n    \"Features\": {\n        \"duration_ms\":352125,\n        \"key\":3,\n        \"mode\":1,\n        \"time_signature\":4,\n        \"acousticness\":0.00918,\n        \"danceability\":0.474,\n        \"energy\":0.764,\n        \"instrumentalness\":0.263,\n        \"liveness\":0.373,\n        \"loudness\":-7.2,\n        \"speechiness\":0.0533,\n        \"valence\":0.532,\n        \"tempo\":178.931\n    },\n    \n    \"Analysis\": {\n        \"sections\": [\n            {\n                \"start\":0,\n                \"duration\":6.48168,\n                \"confidence\":1,\n                \"loudness\":-24.361,\n                \"tempo\":179.689,\n                \"tempo_confidence\":0.387,\n                \"key\":10,\n                \"key_confidence\":0.301,\n                \"mode\":1,\n                \"mode_confidence\":0.472,\n                \"time_signature\":4,\n                \"time_signature_confidence\":1\n            },\n            {\n                \"start\":6.48168,\n                \"duration\":16.43191,\n                \"confidence\":0.771,\n                \"loudness\":-17.123,\n                \"tempo\":178.942,\n                \"tempo_confidence\":0.638,\n                \"key\":0,\n                \"key_confidence\":0.648,\n                \"mode\":0,\n                \"mode_confidence\":0.635,\n                \"time_signature\":4,\n                \"time_signature_confidence\":1\n            },\n            {\n                \"start\":22.91359,\n                \"duration\":16.75694,\n                \"confidence\":1,\n                \"loudness\":-7.268,\n                \"tempo\":179.042,\n                \"tempo_confidence\":0.614,\n                \"key\":10,\n                \"key_confidence\":0.532,\n                \"mode\":0,\n                \"mode_confidence\":0.499,\n                \"time_signature\":4,\n                \"time_signature_confidence\":1\n            },\n            {\n                \"start\":39.67054,\n                \"duration\":25.48386,\n                \"confidence\":0.422,\n                \"loudness\":-6.589,\n                \"tempo\":178.692,\n                \"tempo_confidence\":0.42,\n                \"key\":3,\n                \"key_confidence\":0.383,\n                \"mode\":1,\n                \"mode_confidence\":0.677,\n                \"time_signature\":4,\n                \"time_signature_confidence\":1\n            },\n            {\n                \"start\":65.1544,\n                \"duration\":12.49106,\n                \"confidence\":1,\n                \"loudness\":-19.461,\n                \"tempo\":179.19,\n                \"tempo_confidence\":0.272,\n                \"key\":5,\n                \"key_confidence\":0.398,\n                \"mode\":0,\n                \"mode_confidence\":0.386,\n                \"time_signature\":4,\n                \"time_signature_confidence\":1\n            },\n            {\n                \"start\":77.64545,\n                \"duration\":31.24873,\n                \"confidence\":1,\n                \"loudness\":-7.087,\n                \"tempo\":177.343,\n                \"tempo_confidence\":0.312,\n                \"key\":3,\n                \"key_confidence\":0.823,\n                \"mode\":1,\n                \"mode_confidence\":0.763,\n                \"time_signature\":4,\n                \"time_signature_confidence\":0.163\n            },\n            {\n                \"start\":108.89418,\n                \"duration\":67.03196,\n                \"confidence\":0.795,\n                \"loudness\":-5.841,\n                \"tempo\":178.883,\n                \"tempo_confidence\":0.405,\n                \"key\":5,\n                \"key_confidence\":0.686,\n                \"mode\":0,\n                \"mode_confidence\":0.642,\n                \"time_signature\":4,\n                \"time_signature_confidence\":1\n            },\n            {\n                \"start\":175.92615,\n                \"duration\":38.89741,\n                \"confidence\":0.515,\n                \"loudness\":-5.077,\n                \"tempo\":178.892,\n                \"tempo_confidence\":0.395,\n                \"key\":3,\n                \"key_confidence\":0.544,\n                \"mode\":1,\n                \"mode_confidence\":0.489,\n                \"time_signature\":4,\n                \"time_signature_confidence\":1\n            },\n            {\n                \"start\":214.82355,\n                \"duration\":18.12729,\n                \"confidence\":1,\n                \"loudness\":-15,\n                \"tempo\":179.619,\n                \"tempo_confidence\":0.399,\n                \"key\":3,\n                \"key_confidence\":0.271,\n                \"mode\":1,\n                \"mode_confidence\":0.557,\n                \"time_signature\":4,\n                \"time_signature_confidence\":1\n            },\n            {\n                \"start\":232.95084,\n                \"duration\":18.385,\n                \"confidence\":0.848,\n                \"loudness\":-8.892,\n                \"tempo\":179.292,\n                \"tempo_confidence\":0.342,\n                \"key\":3,\n                \"key_confidence\":0.456,\n                \"mode\":1,\n                \"mode_confidence\":0.536,\n                \"time_signature\":4,\n                \"time_signature_confidence\":0.553\n            },\n            {\n                \"start\":251.33585,\n                \"duration\":74.75952,\n                \"confidence\":0.858,\n                \"loudness\":-6.648,\n                \"tempo\":179.001,\n                \"tempo_confidence\":0.491,\n                \"key\":5,\n                \"key_confidence\":0.65,\n                \"mode\":0,\n                \"mode_confidence\":0.607,\n                \"time_signature\":4,\n                \"time_signature_confidence\":1\n            },\n            {\n                \"start\":326.09537,\n                \"duration\":13.76423,\n                \"confidence\":0.569,\n                \"loudness\":-7.039,\n                \"tempo\":179.032,\n                \"tempo_confidence\":0.653,\n                \"key\":3,\n                \"key_confidence\":0.343,\n                \"mode\":1,\n                \"mode_confidence\":0.582,\n                \"time_signature\":4,\n                \"time_signature_confidence\":1\n            },\n            {\n                \"start\":339.8596,\n                \"duration\":12.26539,\n                \"confidence\":0.318,\n                \"loudness\":-8.866,\n                \"tempo\":180.903,\n                \"tempo_confidence\":0.236,\n                \"key\":3,\n                \"key_confidence\":0.401,\n                \"mode\":1,\n                \"mode_confidence\":0.647,\n                \"time_signature\":4,\n                \"time_signature_confidence\":0.857\n            }\n        ]\n    }\n}\n```\n\n### search - `http://bindAddress/search?{query}`\nThe search enpoint provides a JSON of a Spotify search result from the query in the URL. The query matches to tracks by the track name **and** the artist name. The maximum number of tracks returned by this endpoint can be set by modifying the searchLimit in the config. The search result is defined as such:\n```go\n//Search is information about tracks that match a keyword string by the track name or artist. This is returned by the search.GetSearch function, and the maximum number of internal track structs is provided by the limit parameter in said function\ntype Search struct {\n\t//Each track returned by the search\n\tTracks struct {\n\t\t//An Info struct for each track, as defined above\n\t\tItems []Info `json:\"items\"`\n\t} `json:\"tracks\"`\n}\n```\n#### Search Example\nHere is an example JSON served by this endpoint with the query `bark` and a maximum of 3 results:\n```json\n{\n    \"tracks\": {\n        \"items\": [\n            {\n                \"album\": {\n                    \"id\":\"537qKeG5gbEvKJpQ4Qmszn\",\n                    \"images\": [\n                        {\n                            \"url\":\"https://i.scdn.co/image/ab67616d0000b273813b607b3b7e094c306af4fd\"\n                        },\n                        {\n                            \"url\":\"https://i.scdn.co/image/ab67616d00001e02813b607b3b7e094c306af4fd\"\n                        },\n                        {\n                            \"url\":\"https://i.scdn.co/image/ab67616d00004851813b607b3b7e094c306af4fd\"\n                        }\n                    ],\n                    \"name\":\"Bark At The Moon (Expanded Edition)\"\n                },\n                \"artists\": [\n                    {\n                        \"name\":\"Ozzy Osbourne\",\"uri\":\"spotify:artist:6ZLTlhejhndI4Rh53vYhrY\"\n                    }\n                ],\n                \"available_markets\": [\n                    \"AD\",\"AE\",\"AL\",\"AR\",\"AT\",\"AU\",\"BA\",\"BE\",\"BG\",\"BH\",\"BO\",\"BR\",\"BY\",\"CA\",\"CH\",\"CL\",\"CO\",\"CR\",\"CY\",\"CZ\",\"DE\",\"DK\",\"DO\",\"DZ\",\"EC\",\"EE\",\"EG\",\"ES\",\"FI\",\"FR\",\"GB\",\"GR\",\"GT\",\"HK\",\"HN\",\"HR\",\"HU\",\"ID\",\"IE\",\"IL\",\"IN\",\"IS\",\"IT\",\"JO\",\"JP\",\"KW\",\"KZ\",\"LB\",\"LI\",\"LT\",\"LU\",\"LV\",\"MA\",\"MC\",\"MD\",\"ME\",\"MK\",\"MT\",\"MX\",\"MY\",\"NI\",\"NL\",\"NO\",\"NZ\",\"OM\",\"PA\",\"PE\",\"PH\",\"PL\",\"PS\",\"PT\",\"PY\",\"QA\",\"RO\",\"RS\",\"RU\",\"SA\",\"SE\",\"SG\",\"SI\",\"SK\",\"SV\",\"TH\",\"TN\",\"TR\",\"TW\",\"UA\",\"US\",\"UY\",\"VN\",\"XK\",\"ZA\"\n                ],\n                \"explicit\":false,\n                \"id\":\"2E7W1X4maFFcjHrVrFA7Vs\",\n                \"name\":\"Bark at the Moon\",\n                \"popularity\":66,\n                \"track_number\":1,\n                \"uri\":\"spotify:track:2E7W1X4maFFcjHrVrFA7Vs\"\n            },\n            {\n                \"album\": {\n                    \"id\":\"0pgmZ0HKZYEIr71WHdaMN7\",\n                    \"images\": [\n                        {\n                            \"url\":\"https://i.scdn.co/image/ab67616d0000b273a0d2b590266ae8b25e5ddc4f\"\n                        },\n                        {\n                            \"url\":\"https://i.scdn.co/image/ab67616d00001e02a0d2b590266ae8b25e5ddc4f\"\n                        },\n                        {\n                            \"url\":\"https://i.scdn.co/image/ab67616d00004851a0d2b590266ae8b25e5ddc4f\"\n                        }\n                    ],\n                    \"name\":\"Barking\"\n                }, \n                \"artists\": [\n                    {\n                        \"name\":\"Ramz\",\n                        \"uri\":\"spotify:artist:6ywXRaHY7m2DJ0dd7CsLAB\"\n                    }\n                ],\n                \"available_markets\": [\n                    \"AD\",\"AE\",\"AL\",\"AR\",\"AT\",\"AU\",\"BA\",\"BE\",\"BG\",\"BH\",\"BO\",\"BR\",\"BY\",\"CA\",\"CH\",\"CL\",\"CO\",\"CR\",\"CY\",\"CZ\",\"DE\",\"DK\",\"DO\",\"DZ\",\"EC\",\"EE\",\"EG\",\"ES\",\"FI\",\"FR\",\"GB\",\"GR\",\"GT\",\"HK\",\"HN\",\"HR\",\"HU\",\"ID\",\"IE\",\"IL\",\"IN\",\"IS\",\"IT\",\"JO\",\"JP\",\"KW\",\"KZ\",\"LB\",\"LI\",\"LT\",\"LU\",\"LV\",\"MA\",\"MC\",\"MD\",\"ME\",\"MK\",\"MT\",\"MX\",\"MY\",\"NI\",\"NL\",\"NO\",\"NZ\",\"OM\",\"PA\",\"PE\",\"PH\",\"PL\",\"PS\",\"PT\",\"PY\",\"QA\",\"RO\",\"RS\",\"RU\",\"SA\",\"SE\",\"SG\",\"SI\",\"SK\",\"SV\",\"TH\",\"TN\",\"TR\",\"TW\",\"UA\",\"US\",\"UY\",\"VN\",\"XK\",\"ZA\"\n                ],\n                \"explicit\":false,\n                \"id\":\"2U5cq89GCnsR1yixKkC8d5\",\n                \"name\":\"Barking\",\n                \"popularity\":70,\n                \"track_number\":1,\n                    \"uri\":\"spotify:track:2U5cq89GCnsR1yixKkC8d5\"\n            },\n            {\n                \"album\": {\n                    \"id\":\"0bJIHF1Or1YBLFBMwv53K2\",\n                    \"images\": [\n                        {\n                            \"url\":\"https://i.scdn.co/image/ab67616d0000b273cfc4b1939aba562fc97159c5\"\n                        },\n                        {\n                            \"url\":\"https://i.scdn.co/image/ab67616d00001e02cfc4b1939aba562fc97159c5\"\n                        },\n                        {\n                            \"url\":\"https://i.scdn.co/image/ab67616d00004851cfc4b1939aba562fc97159c5\"\n                        }\n                    ],\n                    \"name\":\"Hotel Diablo\"\n                },\n                \"artists\": [\n                    {\n                        \"name\":\"Machine Gun Kelly\",\n                        \"uri\":\"spotify:artist:6TIYQ3jFPwQSRmorSezPxX\"\n                    },\n                    {\n                        \"name\":\"YUNGBLUD\",\n\t\t\t            \"uri\":\"spotify:artist:6Ad91Jof8Niiw0lGLLi3NW\"\n                    },\n                    {\n                        \"name\":\"Travis Barker\",\n\t\t\t            \"uri\":\"spotify:artist:4exLIFE8sISLr28sqG1qNX\"\n                    }\n                ],\n                \"available_markets\": [\n                    \"AD\",\"AE\",\"AL\",\"AR\",\"AT\",\"AU\",\"BA\",\"BE\",\"BG\",\"BH\",\"BO\",\"BR\",\"CA\",\"CH\",\"CL\",\"CO\",\"CR\",\"CY\",\"CZ\",\"DE\",\"DK\",\"DO\",\"DZ\",\"EC\",\"EE\",\"EG\",\"ES\",\"FI\",\"FR\",\"GB\",\"GR\",\"GT\",\"HK\",\"HN\",\"HR\",\"HU\",\"ID\",\"IE\",\"IL\",\"IN\",\"IS\",\"IT\",\"JO\",\"JP\",\"KW\",\"KZ\",\"LB\",\"LI\",\"LT\",\"LU\",\"LV\",\"MA\",\"MC\",\"MD\",\"ME\",\"MK\",\"MT\",\"MX\",\"MY\",\"NI\",\"NL\",\"NO\",\"NZ\",\"OM\",\"PA\",\"PE\",\"PH\",\"PL\",\"PS\",\"PT\",\"PY\",\"QA\",\"RO\",\"RS\",\"RU\",\"SA\",\"SE\",\"SG\",\"SI\",\"SK\",\"SV\",\"TH\",\"TN\",\"TR\",\"TW\",\"UA\",\"US\",\"UY\",\"VN\",\"XK\",\"ZA\"\n                ],\n                \"explicit\":true,\n                \"id\":\"2gTdDMpNxIRFSiu7HutMCg\",\n                \"name\":\"I Think I'm OKAY (with YUNGBLUD \\u0026 Travis Barker)\",\n                \"popularity\":80,\n                \"track_number\":14,\n                \"uri\":\"spotify:track:2gTdDMpNxIRFSiu7HutMCg\"\n            }\n        ]\n    }\n}\n```\n\n## Omissions\nThere are a number of things shipped by the Spotify API that is not covered with this API. This may be because they're not very useful, or they're confusing to most users and therefore not needed for most contexts this API is designed for. Here is a list of them with explanations if needed:\n* Info -\n  * Artists -\n    * `external_urls`\n    * `href`\n    * `type` - Literally just the string \"artist\"\n  * `disc_number`\n  * `external_ids`\n  * `external_urls`\n  * `href`\n  * Track Relinking (comprising of `is_playable`, `linked_from`, and `restrictions`)\n  * `preview_url` - Can be derived easily\n* Album -\n  * `album_type`\n  * `available_markets` - Included in the Info struct\n  * `copyrights`\n  * `external_ids`\n  * `external_urls`\n  * `genres` - Spotify documents that genre is shipped with albums and artists. This, however, is a lie. Genre is only shipped with artists. For obvious reasons (genre diversity), this is ridiculous. It isn't worth the hassle to grab all the potentially misleading genres from all (multiple!) artists from each track, so it is not covered.\n  * `href`\n  * `tracks`\n* Features -\n  * `analysis_url`\n  * `type`\n* Analysis -\n  * `bars`\n  * `beats`\n  * `segments`\n  * `tatums`\n\n## License Notice\nMake sure any and all use of this software complies with the [license](https://github.com/barkloaf/MetaGrabAPI/blob/master/LICENSE), the GNU Affero General Public License v3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarkloaf%2FMetaGrabAPI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarkloaf%2FMetaGrabAPI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarkloaf%2FMetaGrabAPI/lists"}