import{S as ge,i as Ee,s as Pe,e as s,k as w,w as ue,t as l,M as $e,c as o,d as t,m as y,a as i,x as me,h,b as r,G as a,g as c,y as ve,L as Ae,q as be,o as _e,B as we,v as ke}from"../chunks/vendor-hf-doc-builder.js";import{I as ye}from"../chunks/IconCopyLink-hf-doc-builder.js";function He(se){let f,I,d,u,H,g,J,x,O,D,m,U,E,j,z,q,v,K,P,Q,V,N,p,b,S,$,X,T,Y,R,_,Z,A,ee,te,B,k,ae,L;return g=new ye({}),$=new ye({}),{c(){f=s("meta"),I=w(),d=s("h1"),u=s("a"),H=s("span"),ue(g.$$.fragment),J=w(),x=s("span"),O=l("Datasets server"),D=w(),m=s("p"),U=l("The \u{1F917} Datasets server gives access to the contents, metadata and basic statistics of the "),E=s("a"),j=l("Hugging Face Hub datasets"),z=l(" via a REST API."),q=w(),v=s("p"),K=l("Try it with "),P=s("a"),Q=l("Postman"),V=l("."),N=w(),p=s("h2"),b=s("a"),S=s("span"),ue($.$$.fragment),X=w(),T=s("span"),Y=l("History"),R=w(),_=s("p"),Z=l("The API has originally been developed to provide data to the "),A=s("a"),ee=l("Dataset viewer"),te=l(" on the Hub. Because of the large volume of data, the information about the datasets cannot be extracted on-the-fly, and must be preprocessed and stored beforehand in order to later be accessed quickly on the Hub."),B=w(),k=s("p"),ae=l("We decided to make the API public to provide programmatic access to the information about datasets."),this.h()},l(e){const n=$e('[data-svelte="svelte-1phssyn"]',document.head);f=o(n,"META",{name:!0,content:!0}),n.forEach(t),I=y(e),d=o(e,"H1",{class:!0});var M=i(d);u=o(M,"A",{id:!0,class:!0,href:!0});var oe=i(u);H=o(oe,"SPAN",{});var re=i(H);me(g.$$.fragment,re),re.forEach(t),oe.forEach(t),J=y(M),x=o(M,"SPAN",{});var ne=i(x);O=h(ne,"Datasets server"),ne.forEach(t),M.forEach(t),D=y(e),m=o(e,"P",{});var C=i(m);U=h(C,"The \u{1F917} Datasets server gives access to the contents, metadata and basic statistics of the "),E=o(C,"A",{href:!0,rel:!0});var ie=i(E);j=h(ie,"Hugging Face Hub datasets"),ie.forEach(t),z=h(C," via a REST API."),C.forEach(t),q=y(e),v=o(e,"P",{});var F=i(v);K=h(F,"Try it with "),P=o(F,"A",{href:!0,rel:!0});var le=i(P);Q=h(le,"Postman"),le.forEach(t),V=h(F,"."),F.forEach(t),N=y(e),p=o(e,"H2",{class:!0});var W=i(p);b=o(W,"A",{id:!0,class:!0,href:!0});var he=i(b);S=o(he,"SPAN",{});var ce=i(S);me($.$$.fragment,ce),ce.forEach(t),he.forEach(t),X=y(W),T=o(W,"SPAN",{});var fe=i(T);Y=h(fe,"History"),fe.forEach(t),W.forEach(t),R=y(e),_=o(e,"P",{});var G=i(_);Z=h(G,"The API has originally been developed to provide data to the "),A=o(G,"A",{href:!0,rel:!0});var de=i(A);ee=h(de,"Dataset viewer"),de.forEach(t),te=h(G," on the Hub. Because of the large volume of data, the information about the datasets cannot be extracted on-the-fly, and must be preprocessed and stored beforehand in order to later be accessed quickly on the Hub."),G.forEach(t),B=y(e),k=o(e,"P",{});var pe=i(k);ae=h(pe,"We decided to make the API public to provide programmatic access to the information about datasets."),pe.forEach(t),this.h()},h(){r(f,"name","hf:doc:metadata"),r(f,"content",JSON.stringify(xe)),r(u,"id","datasets-server"),r(u,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),r(u,"href","#datasets-server"),r(d,"class","relative group"),r(E,"href","https://huggingface.co/datasets"),r(E,"rel","nofollow"),r(P,"href","https://www.postman.com/huggingface/workspace/hugging-face-apis/documentation/23242779-d068584e-96d1-4d92-a703-7cb12cbd8053"),r(P,"rel","nofollow"),r(b,"id","history"),r(b,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),r(b,"href","#history"),r(p,"class","relative group"),r(A,"href","https://huggingface.co/docs/hub/datasets-viewer"),r(A,"rel","nofollow")},m(e,n){a(document.head,f),c(e,I,n),c(e,d,n),a(d,u),a(u,H),ve(g,H,null),a(d,J),a(d,x),a(x,O),c(e,D,n),c(e,m,n),a(m,U),a(m,E),a(E,j),a(m,z),c(e,q,n),c(e,v,n),a(v,K),a(v,P),a(P,Q),a(v,V),c(e,N,n),c(e,p,n),a(p,b),a(b,S),ve($,S,null),a(p,X),a(p,T),a(T,Y),c(e,R,n),c(e,_,n),a(_,Z),a(_,A),a(A,ee),a(_,te),c(e,B,n),c(e,k,n),a(k,ae),L=!0},p:Ae,i(e){L||(be(g.$$.fragment,e),be($.$$.fragment,e),L=!0)},o(e){_e(g.$$.fragment,e),_e($.$$.fragment,e),L=!1},d(e){t(f),e&&t(I),e&&t(d),we(g),e&&t(D),e&&t(m),e&&t(q),e&&t(v),e&&t(N),e&&t(p),we($),e&&t(R),e&&t(_),e&&t(B),e&&t(k)}}}const xe={local:"datasets-server",sections:[{local:"history",title:"History"}],title:"Datasets server"};function Se(se){return ke(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class De extends ge{constructor(f){super();Ee(this,f,Se,He,Pe,{})}}export{De as default,xe as metadata};
