wiki/notebook/api.web.ccmixter.org
Gabriel Arazas b088086b06 Merge evergreen notes into the notebook
Now, it's all under the notebook umbrella. Seems to be appropriate as it
is just my notes after all.

I also updated some notes from there. I didn't keep track of what it is
this time. Something about more learning notes extracted from my
"Learning how to learn" course notes and then some. Lack of time and
hurriness just makes it difficult to track but it should be under
version control already.
2021-07-21 16:28:07 +08:00

2.6 KiB

CCMixter web API

Apparently, the website has an API that can be accessed with HTTP. It can also return the values in JSON.

curl -L "http://ccmixter.org/api/query?tags=chill,instrumental&sort=name&user=Mseq&format=json&limit=1" | jq '.' -r
[
  {
    "upload_id": 53960,
    "upload_name": "Rooster",
    "upload_extra": {
      "usertags": "dnb,instrumental,male_vocals,electronic,drums,bass,synthesizer,experimental,chill,jazz,downtempo,trip_hop",
      "ccud": "media,remix,bpm_085_090",
      "systags": "non_commercial,audio,mp3,44k,stereo,CBR",
      "featuring": "Dj Vadim",
      "relative_dir": "content/Mseq",
      "bpm": 85,
      "nsfw": false,
      "num_reviews": 1,
      "last_op": "replace"
    },
    "user_name": "Mseq",
    "upload_tags": ",media,remix,bpm_085_090,alternate,non_commercial,audio,mp3,44k,stereo,CBR,dnb,instrumental,male_vocals,electronic,drums,bass,synthesizer,experimental,chill,jazz,downtempo,trip_hop,",
    "upload_num_scores": 7,
    "file_page_url": "http://ccmixter.org/files/Mseq/53960",
    "user_real_name": "logos",
    "artist_page_url": "http://ccmixter.org/people/Mseq",
    "license_logo_url": "http://ccmixter.org/ccskins/shared/images/lics/small-by-nc-3.png",
    "license_url": "http://creativecommons.org/licenses/by-nc/3.0/",
    "license_name": "Attribution Noncommercial  (3.0)",
    "upload_date_format": "Thu, Jun 2, 2016 @ 12:59 PM",
    "files": [
      {
        "file_id": 85598,
        "file_upload": 53960,
        "file_name": "Mseq_-_Rooster.mp3",
        "file_nicname": "mp3",
        "file_format_info": {
          "media-type": "audio",
          "format-name": "audio-mp3-mp3",
          "default-ext": "mp3",
          "mime_type": "audio/mpeg",
          "sr": "44k",
          "ch": "stereo",
          "ps": "2:55",
          "br": "CBR"
        },
        "file_extra": {
          "sha1": "LEYBOKEY63NRX5VAGAHKB66WKJGANSE4",
          "ccud": "alternate",
          "type": "alternate"
        },
        "file_filesize": " (6.70MB)",
        "file_order": 0,
        "file_is_remote": 0,
        "file_num_download": 0,
        "download_url": "http://ccmixter.org/content/Mseq/Mseq_-_Rooster.mp3",
        "local_path": "/var/www/ccmixter/content/Mseq/Mseq_-_Rooster.mp3",
        "file_rawsize": 7020712
      }
    ],
    "upload_description_plain": "Thanks to Dj Vadim!",
    "upload_description_html": "Thanks to Dj Vadim!"
  }
]