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