PageSourceSearch

https://oec.world/_next/static/chunks/pages/resources/api/data-6051c3b533aac1d8.js

js oec.world collected 2026-10-02 02:17:26 UTC 9,262 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8839],{73070:function(e,o,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/resources/api/data",function(){return r(77899)}])},64821:function(e,o,r){"use strict";r.d(o,{P:function(){return j},Z:function(){return k}});var a=r(85893);r(67294);var n=r(56817),t=r(97564),c=r(72445),i=r(19236),s=r(64523),l=r(71232),d=r(67841),u=r(64816),m=r(77531),p=r(54130),h=r(2962),x=r(41664),g=r.n(x),f=r(11163),b=r(41787);let j=(0,n.k)(e=>({navLink:{display:"block",padding:"8px 16px",color:"dark"===e.colorScheme?e.colors.dark[0]:e.colors.gray[7],textDecoration:"none",borderRadius:e.radius.sm,"&:hover":{backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[0]},"&.active":{backgroundColor:"dark"===e.colorScheme?e.colors["oec-orange"][9]:e.colors["oec-orange"][1],color:"dark"===e.colorScheme?e.white:e.colors["oec-orange"][9]}},mainContainer:{padding:"0 20px"},mainTitle:{fontSize:40,fontWeight:"bolder",marginBottom:"2rem",marginTop:"2rem",textAlign:"left",marginLeft:e.spacing.xl,marginRight:e.spacing.xl,[e.fn.smallerThan("md")]:{fontSize:32}},content:{maxWidth:800,margin:"0 auto",padding:"2rem","& a":{color:e.colors["oec-yellow"][9],textDecoration:"none"}},navigationButtons:{marginTop:"6rem",paddingTop:"2rem",borderTop:"1px solid ".concat("dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[3]),display:"flex",justifyContent:"space-between"},navigationButton:{color:e.black,"&:hover":{backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[0]},"& .mantine-Button-label":{color:e.black},"& svg":{color:e.black}},text:{marginBottom:e.spacing.sm,fontSize:"1.1rem",lineHeight:1.6},list:{marginLeft:e.spacing.xl,marginTop:e.spacing.xs},listItem:{},sectionTitle:{marginTop:e.spacing.xl,marginBottom:e.spacing.md,marginLeft:e.spacing.xl,marginRight:e.spacing.xl},codeBlock:{backgroundColor:"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[0],fontFamily:e.fontFamilyMonospace,fontSize:e.fontSizes.sm,padding:e.spacing.xs,borderRadius:e.radius.sm,overflowX:"auto",marginTop:e.spacing.xs,marginBottom:e.spacing.md},code:{fontFamily:e.fontFamilyMonospace,backgroundColor:"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[0],padding:"2px 6px",borderRadius:e.radius.sm},callout:{color:"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[7],borderLeft:"4px solid ".concat(e.colors.yellow[7]),backgroundColor:"dark"===e.colorScheme?e.colors.yellow[4]:e.colors.yellow[0],padding:e.spacing.sm,marginTop:e.spacing.md,borderRadius:e.radius.sm},divider:{marginTop:"4rem",marginBottom:"4rem",borderColor:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[3]}}));function k(e){let{title:o,seoTitle:r,seoDescription:n,subnavItems:x,currentPageId:k,children:v,prevPage:S,nextPage:_}=e,{classes:y}=j(),{locale:w}=(0,f.useRouter)(),{t:C}=(0,p.$G)("api"),T=(0,a.jsx)(t.K,{spacing:"xs",children:x.map(e=>(0,a.jsx)(g(),{href:e.href,className:"".concat(y.navLink," ").concat(e.id===k?"active":""),children:C("".concat(e.id,".sidebar_title"))},e.id))});return(0,a.jsxs)("div",{children:[(0,a.jsx)(h.PB,{title:r,description:n}),(0,a.jsx)(b.Z,{sidebarContent:T,sticky:!0,children:(0,a.jsxs)(c.W,{className:y.mainContainer,children:[(0,a.jsx)(i.D,{order:1,className:y.mainTitle,children:o}),(0,a.jsxs)(s.x,{className:y.content,children:[v,(0,a.jsxs)(l.Z,{className:y.navigationButtons,position:"apart",children:[(0,a.jsx)("div",{children:S&&(0,a.jsx)(d.z,{leftIcon:(0,a.jsx)(u.Z,{size:16}),component:"a",href:"/".concat(w).concat(null==S?void 0:S.href),disabled:!S,className:y.navigationButton,children:C("".concat(null==S?void 0:S.id,".sidebar_title"))||"Previous"})}),(0,a.jsx)("div",{children:_&&(0,a.jsx)(d.z,{rightIcon:(0,a.jsx)(m.Z,{size:16}),component:"a",href:"/".concat(w).concat(null==_?void 0:_.href),disabled:!_,className:y.navigationButton,children:C("".concat(null==_?void 0:_.id,".sidebar_title"))||"Next"})})]})]})]})})]})}},41787:function(e,o,r){"use strict";r.d(o,{Z:function(){return t}});var a=r(85893),n=r(64523);function t(e){let{sidebarContent:o,children:r,sticky:t=!1,disablePaddingX:c=!1,disablePaddingY:i=!1}=e;return(0,a.jsxs)(n.x,{sx:e=>({display:"grid",gridTemplateColumns:"300px auto",gridTemplateRows:"auto",[e.fn.smallerThan("sm")]:{display:"block"}}),children:[(0,a.jsx)(n.x,{component:"aside",mih:{base:"auto",sm:"calc(100vh - var(--main-distance-top))"},w:{base:"auto",sm:300},bg:"var(--oec-toolbar-bg)",px:c?0:25,pt:i?0:"xl",pos:{base:"static",sm:t&&"sticky"},top:"var(--main-distance-top)",sx:{alignSelf:t&&"start",gridRowStart:1,gridRowEnd:1},children:o}),(0,a.jsx)(n.x,{maw:"calc(100vw - 315px)",sx:e=>
1({gridRowStart:1,gridRowEnd:1,[e.fn.smallerThan("sm")]:{maxWidth:"100vw"}}),children:r})]})}},24054:function(e,o,r){"use strict";r.d(o,{$$:function(){return a},HG:function(){return c},v2:function(){return t},zr:function(){return n}});let a=[{id:"introduction",label:"Introduction",href:"/resources/api/"},{id:"authentication",label:"Authentication",href:"/resources/api/authentication"},{id:"endpoints",label:"Endpoints",href:"/resources/api/endpoints"},{id:"data",label:"Fetching Data",href:"/resources/api/data"},{id:"responses",label:"Responses",href:"/resources/api/responses"},{id:"parameters",label:"Advanced Parameters",href:"/resources/api/parameters"},{id:"intl_examples",label:"International Data Examples",href:"/resources/api/intl-examples"}],n=e=>{let o=a.findIndex(o=>o.id===e);return{prevPage:o>0?a[o-1]:null,nextPage:o<a.length-1?a[o+1]:null}},t="https://api-v2.oec.world/tesseract/",c=e=>{let o=new URL("data.jsonrecords",t);if(!e)return o.toString();let r=Object.entries(e).map(e=>e.join("=")).join("&");return"".concat(o,"?").concat(r)}},77899:function(e,o,r){"use strict";r.r(o),r.d(o,{__N_SSG:function(){return u}});var a=r(85893),n=r(64761),t=r(95117),c=r(8574),i=r(54130);r(67294);var s=r(64821),l=r(24054),d=r(23386),u=!0;o.default=function(e){let{locale:o}=e,{t:r}=(0,i.$G)("api"),{prevPage:u,nextPage:m}=(0,l.zr)("data"),{classes:p}=(0,s.P)(),h=(0,n.rZ)(),x={cube:"trade_i_baci_a_22",drilldowns:"HS4,Exporter+Country,Importer+Country,Year",measures:"Trade+Value",include:"Exporter+Country:euesp;Year:".concat(d.BACI_LAST_YEAR),limit:"100,0",token:"6b540954e368f971"};return(0,a.jsxs)(s.Z,{title:r("data.page_title"),description:r("data.page_description"),seoTitle:r("data.seo_title"),seoDescription:r("data.seo_description"),subnavItems:l.$$,currentPageId:"data",prevPage:u,nextPage:m,children:[(0,a.jsx)("h2",{className:p.sectionTitle,children:r("data.anatomy.title")}),(0,a.jsx)(t.x,{className:p.text,children:r("data.anatomy.intro",{year:d.BACI_LAST_YEAR})}),(0,a.jsx)(c.p,{colorScheme:h.colorScheme,language:"markup",children:(0,l.HG)(x)}),(0,a.jsx)("h3",{children:r("data.root_url.title")}),(0,a.jsx)(c.p,{colorScheme:h.colorScheme,language:"markup",children:(0,l.HG)()}),(0,a.jsx)(t.x,{className:p.text,children:(0,a.jsx)(i.cC,{i18nKey:"data.root_url.description",t:r,components:{code:(0,a.jsx)("code",{})}})}),(0,a.jsx)("h3",{children:r("data.cube.title")}),(0,a.jsx)(c.p,{colorScheme:h.colorScheme,language:"markup",children:"?cube=".concat(x.cube)}),(0,a.jsx)(t.x,{className:p.text,children:(0,a.jsx)(i.cC,{i18nKey:"data.cube.description",t:r,components:{a:(0,a.jsx)("a",{href:new URL("cubes",l.v2),target:"_blank",rel:"noopener noreferrer"})}})}),(0,a.jsx)("h3",{children:r("data.drilldowns.title")}),(0,a.jsx)(c.p,{colorScheme:h.colorScheme,language:"markup",children:"&drilldowns=".concat(x.drilldowns)}),(0,a.jsx)(t.x,{className:p.text,children:(0,a.jsx)(i.cC,{i18nKey:"data.drilldowns.description",t:r,values:{cube:x.cube},components:{a:(0,a.jsx)("a",{href:new URL("cubes/".concat(x.cube),l.v2),target:"_blank",rel:"noopener noreferrer"})}})}),(0,a.jsx)("h3",{children:r("data.measures.title")}),(0,a.jsx)(c.p,{colorScheme:h.colorScheme,language:"markup",children:"&measures=".concat(x.measures)}),(0,a.jsx)(t.x,{className:p.text,children:(0,a.jsx)(i.cC,{i18nKey:"data.measures.description",t:r,values:{cube:x.cube},components:{a:(0,a.jsx)("a",{href:new URL("cubes/".concat(x.cube),l.v2),target:"_blank",rel:"noopener noreferrer"})}})}),(0,a.jsx)("h3",{children:r("data.include.title")}),(0,a.jsx)(c.p,{colorScheme:h.colorScheme,language:"markup",children:"&include=".concat(x.include)}),(0,a.jsx)(t.x,{className:p.text,children:(0,a.jsx)(i.cC,{i18nKey:"data.include.description",t:r,values:{cube:x.cube,level:x.include.split(":")[0].replace("+"," ")},components:{a:(0,a.jsx)("a",{href:new URL("members?cube=".concat(x.cube,"&level=").concat(x.include.split(":")[0]),l.v2),target:"_blank",rel:"noopener noreferrer"}),code:(0,a.jsx)("code",{})}})}),(0,a.jsx)("h3",{children:r("data.limit.title")}),(0,a.jsx)(c.p,{colorScheme:h.colorScheme,language:"markup",children:"&limit=".concat(x.limit)}),(0,a.jsx)(t.x,{className:p.text,children:r("data.limit.description")}),(0,a.jsx)("h3",{children:r("data.token.title")}),(0,a.jsx)(c.p,{colorScheme:h.colorScheme,language:"markup",children:"&token=".concat(x.token)}),(0,a.jsx)(t.x,{className:p.text,children:(0,a.jsx)(i.cC,{i18nKey:"data.token.description",t:r,components:{a:(0,a.jsx)("a",{href:"https://oec.world/".concat(o,"/account"),target:"_blank",rel:"noopener noreferrer"})}})})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=73070)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.