wiki/api.web.ccmixter.html
2022-07-29 15:41:17 +00:00

73 lines
10 KiB
HTML

<!DOCTYPE html><html><head><meta name="viewport" content="width=device-width"/><meta charSet="utf-8"/><title>CCMixter web API</title><script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script><script id="MathJax-script" async="" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script><script type="text/x-mathjax-config">
MathJax = {
tex: {
inlineMath: [ [&#x27;$&#x27;,&#x27;$&#x27;], [&#x27;\(&#x27;,&#x27;\)&#x27;] ],
displayMath: [ [&#x27;$$&#x27;,&#x27;$$&#x27;], [&#x27;[&#x27;,&#x27;]&#x27;] ]
},
options = {
processHtmlClass = &quot;math&quot;
}
}
</script><meta name="next-head-count" content="6"/><link rel="preload" href="/wiki/_next/static/css/52fc2ba29703df73922c.css" as="style"/><link rel="stylesheet" href="/wiki/_next/static/css/52fc2ba29703df73922c.css" data-n-g=""/><noscript data-n-css=""></noscript><link rel="preload" href="/wiki/_next/static/chunks/main-ae4733327bd95c4ac325.js" as="script"/><link rel="preload" href="/wiki/_next/static/chunks/webpack-50bee04d1dc61f8adf5b.js" as="script"/><link rel="preload" href="/wiki/_next/static/chunks/framework.9d524150d48315f49e80.js" as="script"/><link rel="preload" href="/wiki/_next/static/chunks/commons.0e1c3f9aa780c2dfe9f0.js" as="script"/><link rel="preload" href="/wiki/_next/static/chunks/pages/_app-8e3d0c58a60ec788aa69.js" as="script"/><link rel="preload" href="/wiki/_next/static/chunks/940643274e605e7596ecea1f2ff8d83317a3fb76.4841a16762f602a59f00.js" as="script"/><link rel="preload" href="/wiki/_next/static/chunks/pages/%5B%5B...slug%5D%5D-1aa198f87ede1cd0e1dc.js" as="script"/></head><body><div id="__next"><main><h1>CCMixter web API</h1><section class="post-metadata"><span>Date: <!-- -->2021-05-09 17:23:51 +08:00</span><span>Date modified: <!-- -->2021-05-09 17:24:13 +08:00</span></section><nav class="toc"><ol class="toc-level toc-level-1"></ol></nav><p>Apparently, the website has an <a href="http://ccmixter.org/query-api">API</a> that can be accessed with HTTP.
It can also return the values in JSON.
</p><pre class="src-block"><code class="language-sh">curl -L &quot;http://ccmixter.org/api/query?tags=chill,instrumental&amp;sort=name&amp;user=Mseq&amp;format=json&amp;limit=1&quot; | jq &#x27;.&#x27; -r
</code></pre><div class="exampe">[
{
&quot;upload_id&quot;: 53960,
&quot;upload_name&quot;: &quot;Rooster&quot;,
&quot;upload_extra&quot;: {
&quot;usertags&quot;: &quot;dnb,instrumental,male_vocals,electronic,drums,bass,synthesizer,experimental,chill,jazz,downtempo,trip_hop&quot;,
&quot;ccud&quot;: &quot;media,remix,bpm_085_090&quot;,
&quot;systags&quot;: &quot;non_commercial,audio,mp3,44k,stereo,CBR&quot;,
&quot;featuring&quot;: &quot;Dj Vadim&quot;,
&quot;relative_dir&quot;: &quot;content/Mseq&quot;,
&quot;bpm&quot;: 85,
&quot;nsfw&quot;: false,
&quot;num_reviews&quot;: 1,
&quot;last_op&quot;: &quot;replace&quot;
},
&quot;user_name&quot;: &quot;Mseq&quot;,
&quot;upload_tags&quot;: &quot;,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,&quot;,
&quot;upload_num_scores&quot;: 7,
&quot;file_page_url&quot;: &quot;http://ccmixter.org/files/Mseq/53960&quot;,
&quot;user_real_name&quot;: &quot;logos&quot;,
&quot;artist_page_url&quot;: &quot;http://ccmixter.org/people/Mseq&quot;,
&quot;license_logo_url&quot;: &quot;http://ccmixter.org/ccskins/shared/images/lics/small-by-nc-3.png&quot;,
&quot;license_url&quot;: &quot;http://creativecommons.org/licenses/by-nc/3.0/&quot;,
&quot;license_name&quot;: &quot;Attribution Noncommercial (3.0)&quot;,
&quot;upload_date_format&quot;: &quot;Thu, Jun 2, 2016 @ 12:59 PM&quot;,
&quot;files&quot;: [
{
&quot;file_id&quot;: 85598,
&quot;file_upload&quot;: 53960,
&quot;file_name&quot;: &quot;Mseq_-_Rooster.mp3&quot;,
&quot;file_nicname&quot;: &quot;mp3&quot;,
&quot;file_format_info&quot;: {
&quot;media-type&quot;: &quot;audio&quot;,
&quot;format-name&quot;: &quot;audio-mp3-mp3&quot;,
&quot;default-ext&quot;: &quot;mp3&quot;,
&quot;mime_type&quot;: &quot;audio/mpeg&quot;,
&quot;sr&quot;: &quot;44k&quot;,
&quot;ch&quot;: &quot;stereo&quot;,
&quot;ps&quot;: &quot;2:55&quot;,
&quot;br&quot;: &quot;CBR&quot;
},
&quot;file_extra&quot;: {
&quot;sha1&quot;: &quot;LEYBOKEY63NRX5VAGAHKB66WKJGANSE4&quot;,
&quot;ccud&quot;: &quot;alternate&quot;,
&quot;type&quot;: &quot;alternate&quot;
},
&quot;file_filesize&quot;: &quot; (6.70MB)&quot;,
&quot;file_order&quot;: 0,
&quot;file_is_remote&quot;: 0,
&quot;file_num_download&quot;: 0,
&quot;download_url&quot;: &quot;http://ccmixter.org/content/Mseq/Mseq_-_Rooster.mp3&quot;,
&quot;local_path&quot;: &quot;/var/www/ccmixter/content/Mseq/Mseq_-_Rooster.mp3&quot;,
&quot;file_rawsize&quot;: 7020712
}
],
&quot;upload_description_plain&quot;: &quot;Thanks to Dj Vadim!&quot;,
&quot;upload_description_html&quot;: &quot;Thanks to Dj Vadim!&quot;
}
]
</div></main></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"metadata":{"date":"\"2021-05-09 17:23:51 +08:00\"","date_modified":"\"2021-05-09 17:24:13 +08:00\"","language":"en","source":""},"title":"CCMixter web API","hast":{"type":"root","children":[{"type":"element","tagName":"nav","properties":{"className":"toc"},"children":[{"type":"element","tagName":"ol","properties":{"className":"toc-level toc-level-1"},"children":[]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Apparently, the website has an "},{"type":"element","tagName":"a","properties":{"href":"http://ccmixter.org/query-api"},"children":[{"type":"text","value":"API"}]},{"type":"text","value":" that can be accessed with HTTP.\nIt can also return the values in JSON.\n"}]},{"type":"element","tagName":"pre","properties":{"className":["src-block"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-sh"]},"children":[{"type":"text","value":"curl -L \"http://ccmixter.org/api/query?tags=chill,instrumental\u0026sort=name\u0026user=Mseq\u0026format=json\u0026limit=1\" | jq '.' -r\n"}]}]},{"type":"element","tagName":"div","properties":{"className":["exampe"]},"children":[{"type":"text","value":"[\n {\n \"upload_id\": 53960,\n \"upload_name\": \"Rooster\",\n \"upload_extra\": {\n \"usertags\": \"dnb,instrumental,male_vocals,electronic,drums,bass,synthesizer,experimental,chill,jazz,downtempo,trip_hop\",\n \"ccud\": \"media,remix,bpm_085_090\",\n \"systags\": \"non_commercial,audio,mp3,44k,stereo,CBR\",\n \"featuring\": \"Dj Vadim\",\n \"relative_dir\": \"content/Mseq\",\n \"bpm\": 85,\n \"nsfw\": false,\n \"num_reviews\": 1,\n \"last_op\": \"replace\"\n },\n \"user_name\": \"Mseq\",\n \"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,\",\n \"upload_num_scores\": 7,\n \"file_page_url\": \"http://ccmixter.org/files/Mseq/53960\",\n \"user_real_name\": \"logos\",\n \"artist_page_url\": \"http://ccmixter.org/people/Mseq\",\n \"license_logo_url\": \"http://ccmixter.org/ccskins/shared/images/lics/small-by-nc-3.png\",\n \"license_url\": \"http://creativecommons.org/licenses/by-nc/3.0/\",\n \"license_name\": \"Attribution Noncommercial (3.0)\",\n \"upload_date_format\": \"Thu, Jun 2, 2016 @ 12:59 PM\",\n \"files\": [\n {\n \"file_id\": 85598,\n \"file_upload\": 53960,\n \"file_name\": \"Mseq_-_Rooster.mp3\",\n \"file_nicname\": \"mp3\",\n \"file_format_info\": {\n \"media-type\": \"audio\",\n \"format-name\": \"audio-mp3-mp3\",\n \"default-ext\": \"mp3\",\n \"mime_type\": \"audio/mpeg\",\n \"sr\": \"44k\",\n \"ch\": \"stereo\",\n \"ps\": \"2:55\",\n \"br\": \"CBR\"\n },\n \"file_extra\": {\n \"sha1\": \"LEYBOKEY63NRX5VAGAHKB66WKJGANSE4\",\n \"ccud\": \"alternate\",\n \"type\": \"alternate\"\n },\n \"file_filesize\": \" (6.70MB)\",\n \"file_order\": 0,\n \"file_is_remote\": 0,\n \"file_num_download\": 0,\n \"download_url\": \"http://ccmixter.org/content/Mseq/Mseq_-_Rooster.mp3\",\n \"local_path\": \"/var/www/ccmixter/content/Mseq/Mseq_-_Rooster.mp3\",\n \"file_rawsize\": 7020712\n }\n ],\n \"upload_description_plain\": \"Thanks to Dj Vadim!\",\n \"upload_description_html\": \"Thanks to Dj Vadim!\"\n }\n]\n"}]}]},"backlinks":[]},"__N_SSG":true},"page":"/[[...slug]]","query":{"slug":["api.web.ccmixter"]},"buildId":"Ie9t5zutrXP6Of75Cb5xF","assetPrefix":"/wiki","nextExport":false,"isFallback":false,"gsp":true}</script><script nomodule="" src="/wiki/_next/static/chunks/polyfills-99d808df29361cf7ffb1.js"></script><script src="/wiki/_next/static/chunks/main-ae4733327bd95c4ac325.js" async=""></script><script src="/wiki/_next/static/chunks/webpack-50bee04d1dc61f8adf5b.js" async=""></script><script src="/wiki/_next/static/chunks/framework.9d524150d48315f49e80.js" async=""></script><script src="/wiki/_next/static/chunks/commons.0e1c3f9aa780c2dfe9f0.js" async=""></script><script src="/wiki/_next/static/chunks/pages/_app-8e3d0c58a60ec788aa69.js" async=""></script><script src="/wiki/_next/static/chunks/940643274e605e7596ecea1f2ff8d83317a3fb76.4841a16762f602a59f00.js" async=""></script><script src="/wiki/_next/static/chunks/pages/%5B%5B...slug%5D%5D-1aa198f87ede1cd0e1dc.js" async=""></script><script src="/wiki/_next/static/Ie9t5zutrXP6Of75Cb5xF/_buildManifest.js" async=""></script><script src="/wiki/_next/static/Ie9t5zutrXP6Of75Cb5xF/_ssgManifest.js" async=""></script></body></html>