{"id":396771,"date":"2023-09-13T09:21:25","date_gmt":"2023-09-13T09:21:25","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=396771"},"modified":"2026-02-23T09:48:49","modified_gmt":"2026-02-23T09:48:49","slug":"how-to-create-product-page-using-odoo-api-in-nextjs","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/","title":{"rendered":"How To Create Product Page Using Odoo API In NextJs."},"content":{"rendered":"\n<p><strong>How to use Next.JS with Odoo<\/strong> &#8211; I&#8217;m happy to help you with writing a blog post about creating a product page using the <a href=\"https:\/\/store.webkul.com\/Odoo-REST-API.html\" rel=\"nofollow\">Odoo API<\/a> In NextJS.<\/p>\n\n\n\n<p>First, we&#8217;ll have some discussion about <a href=\"https:\/\/nextjs.org\/docs\" rel=\"nofollow\">NextJS<\/a> and begin by introducing the concept of Odoo and its API. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What is NextJS?<\/h3>\n\n\n\n<p>Next Js is a full-stack web development react framework. Which is a free and open-source front-end react library framework for building user interfaces based on UI components. <\/p>\n\n\n\n<p>NextJs Provide all the feature to develop Several types of websites and applications that can be built &nbsp;<strong>Static and Server Rendering,&nbsp;Static-side Regeneration,&nbsp;Typescript support, and&nbsp;Routing.<\/strong><\/p>\n\n\n\n<p>We need to <a href=\"https:\/\/webkul.com\/blog\/project-setup-next-js\/\">Set up NextJs Project<\/a> to start Also we are using <a href=\"https:\/\/webkul.com\/blog\/how-to-use-tailwind-css-in-next-js\/\">Tailwind CSS<\/a> within the Project.<\/p>\n\n\n\n<p>Your project directory structure must be like this.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">.\n\u251c\u2500\u2500 pages\/\n\u2502   \u251c\u2500\u2500 api\n\u2502         \u251c\u2500\u2500 hello.js\n\u2502   \u251c\u2500\u2500 app.js\n\u2502   \u251c\u2500\u2500 _document.js\n\u2502   \u2514\u2500\u2500 index.js\n\u251c\u2500\u2500 public\/\n\u2502   \u251c\u2500\u2500 favicon.ico\n\u2502   \u251c\u2500\u2500 next.svg\n\u2502   \u2514\u2500\u2500 vercel.svg\n\u251c\u2500\u2500 styles\/\n\u2502   \u2514\u2500\u2500 global.css\n\u251c\u2500\u2500 next.config.js\n\u251c\u2500\u2500 package-lock.json\n\u251c\u2500\u2500 package.json\n\u251c\u2500\u2500 postcss.config.js\n\u251c\u2500\u2500 README.md\n\u251c\u2500\u2500 tailwind.config.js\n\u2514\u2500\u2500 tsconfig.js<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Understanding the Odoo API.<\/h3>\n\n\n\n<p>Basically, the Odoo API is normally the Rest API which provides the e-commerce product services and serves as the bridge between your application and the <a href=\"https:\/\/store.webkul.com\/Odoo.html\">Odoo<\/a> Platform. <\/p>\n\n\n\n<p>Real-World Use Cases.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>E-commerce Integration.<\/li>\n\n\n\n<li>Inventory Management.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Understanding the Odoo API endPoints.<\/strong><\/h3>\n\n\n\n<p>Odoo offers a range of API endpoints that allow you to perform different actions like <strong>&#8216;products&#8217;<\/strong>, <strong>&#8216;category-list&#8217;,<\/strong> and <strong>&#8216;customer&#8217;<\/strong> but we&#8217;ll work with the <strong>&#8216;product-list&#8217;<\/strong> endpoint. <\/p>\n\n\n\n<p>To retrieve product data, send a GET or POST request to the product-list API endpoint. You can apply filters and sorting based on your requirements.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Getting Started:-<\/h3>\n\n\n\n<p>We\u2019re going to create a file&nbsp;named .env in the root directory and add the following code.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">\/\/------------.env--------------\/\/\n\nMODE=PRODUCTION\nCLIENT_TOKEN=&lt;Authenticate_Token&gt;\nAPI_URL=https:\/\/Myodoo.com\/\nAPI_VERSION=&lt;Version_Name&gt;<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>We also need to define the environment variables in our next.config.js file otherwise we will not be able to use these variables at the front end.<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\">\/\/------------next.config.js-----------\/\/\n\n\/** @type {import(&#039;next&#039;).NextConfig} *\/\nconst path = require(&#039;path&#039;);\nconst withBundleAnalyzer = require(&#039;@next\/bundle-analyzer&#039;)({\n  enabled: process.env.ANALYZE === &#039;true&#039;,\n});\n\nconst nextConfig = {\n  env: {\n    CLIENT_TOKEN: process.env.CLIENT_TOKEN,\n    API_URL: process.env.API_URL,\n    API_VERSION: process.env.API_VERSION,\n  },\n  reactStrictMode: true,\n};\n\nmodule.exports = withBundleAnalyzer(nextConfig);<\/pre>\n\n\n\n<p>Ensure the product-list API URL, authentication, and required parameters are set. Use fetch or Axios to retrieve product data from the Odoo API.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"686\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/09\/Odoo-ProductAPI-Response-1200x686.png\" alt=\"Odoo-Products-API-Response\" class=\"wp-image-400007\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/09\/Odoo-ProductAPI-Response-1200x686.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/09\/Odoo-ProductAPI-Response-300x172.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/09\/Odoo-ProductAPI-Response-250x143.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/09\/Odoo-ProductAPI-Response-768x439.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/09\/Odoo-ProductAPI-Response.png 1530w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>Create a Route file to Display the Product:<\/strong><\/p>\n\n\n\n<p>We\u2019re going to create a&nbsp;file&nbsp;named [urlKey].js in pages\/product\/[urlKey].js and add the following code.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">\/\/---------------pages\/product\/&#091;urlkey].js-----------\/\/\n\nimport Image from &#039;next\/image&#039;;\nimport { useState } from &#039;react&#039;;\n\nconst Product = ({ product }) =&gt; {\n  const { thumbnail, price_range, sku } = product;\n  const &#091;addtocart, setAddtocart] = useState(1);\n  const add = () =&gt; {\n    setAddtocart(addtocart + 1);\n  };\n  const sub = () =&gt; {\n    addtocart &gt; 1 &amp;&amp; setAddtocart(addtocart - 1);\n  };\n\n  return (\n    &lt;div class=&quot;grid grid-cols-5 gap-4 w-&#091;85%] mx-auto my-5&quot;&gt;\n      &lt;div className=&quot;col-span-2 border border-1 border-solid border-slate-400 rounded&quot;&gt;\n        &lt;Image src={thumbnail?.id} width={500} height={500} \/&gt;\n      &lt;\/div&gt;\n      &lt;div className=&quot;col-span-3 mx-10&quot;&gt;\n        &lt;div className=&quot;&quot;&gt;\n          &lt;div display=&quot;grid&quot;&gt;\n            &lt;p className=&quot;font-&#091;500] text-&#091;2.5rem]&quot;&gt;{product.name || &#039;&#039;}&lt;\/p&gt;\n            &lt;div className=&quot;flex justify-between &quot;&gt;\n              &lt;p className=&quot;text-price&quot; sx={{ paddingTop: 1.5 }}&gt;\n                &lt;span className=&quot;font-semibold&quot;&gt;\n                  $ {price_range?.minimum_price?.regular_price?.value}\n                &lt;\/span&gt;\n\n                &lt;s className=&quot;pl-4 italic font-light text-fadedText&quot;&gt;\n                  {price_range?.discount?.amount_off}\n                &lt;\/s&gt;\n              &lt;\/p&gt;\n              &lt;p variant=&quot;body1&quot; className=&quot;mt-7&quot;&gt;\n                Sku : {sku}\n              &lt;\/p&gt;\n            &lt;\/div&gt;\n            &lt;div className=&quot;flex&quot;&gt;\n              &lt;button\n                onClick={sub}\n                aria-label=&quot;increment&quot;\n                className=&quot;text-white w-10 rounded-l h-8 border-0 cursor-pointer bg-secondary hover:bg-brand hover:contrast-75&quot;\n              &gt;\n                -\n              &lt;\/button&gt;\n              &lt;input\n                max={6}\n                type=&quot;text&quot;\n                className=&quot;relative w-14 border-&#091;1px] border-gray flex items-center px-3 font-semibold text-center text-gray-700   outline-none cursor-default -z-10 readonly focus:outline-none text-md hover:text-black focus:text-black md:text-base&quot;\n                min={1}\n                value={addtocart}\n                id=&quot;quantity&quot;\n                placeholder=&quot;0&quot;\n              \/&gt;\n\n              &lt;button\n                aria-label=&quot;increment&quot;\n                className=&quot;text-white w-10 h-8 rounded-r border-0 cursor-pointer bg-secondary hover:bg-brand hover:contrast-75&quot;\n                onClick={add}\n              &gt;\n                +\n              &lt;\/button&gt;\n            &lt;\/div&gt;\n\n            &lt;p className=&quot;pt-3 text-hoverEffect text-&#091;16px] &quot;&gt;\n              {product.short_description?.html ||\n                &#039;&#039;}\n            &lt;\/p&gt;\n          &lt;\/div&gt;\n\n          &lt;button\n            color=&quot;secondary&quot;\n            variant=&quot;contained&quot;\n            className=&quot;w-full py-4 mx-auto&quot;\n            type=&quot;submit&quot;\n          &gt;\n            Add to cart\n          &lt;\/button&gt;\n        &lt;\/div&gt;\n      &lt;\/div&gt;\n    &lt;\/div&gt;\n  );\n};\n\nexport default Product;\n\nexport async function getStaticPaths() {\n  let paths = &#091;];\n  try {\n    const data = await fetchProduct();\n    const products = data?.products?.items || &#091;];\n    paths = products.map((product) =&gt; ({\n      params: { urlKey: product?.url_key || &#039;404&#039; },\n    }));\n  } catch (error) {\n    console.error(&#039;Error fetching data from API:&#039;, error);\n  }\n\n  return { paths, fallback: &#039;blocking&#039; };\n}\n\nexport async function getStaticProps({ params }) {\n  const productInfo = await fetchProduct(params?.urlKey);\n\n  const product = productInfo?.products?.items?.&#091;0] || null;\n\n  if (product.length &gt; 0) {\n    return {\n      notFound: true,\n    };\n  }\n  return {\n    props: {\n      product: product,\n    },\n    revalidate: 100,\n  };\n}\n\nconst fetchProduct = async (urlKey = null) =&gt; {\nconst URL = `${process.env.API_URL}api\/${process.env.API_VERSION}\/product-list`;\n  const filter = {};\n  if (urlKey) {\n    filter.url_key = { eq: urlKey };\n  }\n  const response = await fetch(URL, {\n    method: &#039;POST&#039;,\n    headers: {\n      &#039;Content-Type&#039;: &#039;application\/json&#039;,\n      Authenticate: `${process.env.CLIENT_TOKEN}`, \/\/ Here, We need to pass a token in Header to authenticate and use Oddo API.\n    },\n    body: JSON.stringify({\n      filter: filter,\n    }),\n  });\n  if (response.status !== 200) {\n    throw new Error(`API request failed with status ${response.status}`);\n  }\n  return response.json();\n};<\/pre>\n\n\n\n<p>You can see the result on&nbsp;http:\/\/localhost:3000<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"527\" data-id=\"399842\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/09\/screenshot_1694597942973-1200x527.png\" alt=\"Product Page NextJs Using Odoo API\" class=\"wp-image-399842\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/09\/screenshot_1694597942973-1200x527.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/09\/screenshot_1694597942973-300x132.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/09\/screenshot_1694597942973-250x110.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/09\/screenshot_1694597942973-768x337.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/09\/screenshot_1694597942973.png 1509w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n<\/figure>\n\n\n\n<p>Start your <a href=\"https:\/\/webkul.com\/odoo-headless-development\/\" rel=\"nofollow\">Odoo Headless Development<\/a> with Webkul.<\/p>\n\n\n\n<p>Happy Coding!!<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to use Next.JS with Odoo &#8211; I&#8217;m happy to help you with writing a blog post about creating a product page using the Odoo API In NextJS. First, we&#8217;ll have some discussion about NextJS and begin by introducing the concept of Odoo and its API. What is NextJS? Next Js is a full-stack web <a href=\"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":545,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2030,3185,13575,2007,2833],"tags":[14654,14744,14743,12682,14740,14742],"class_list":["post-396771","post","type-post","status-publish","format-standard","hentry","category-e-commerce","category-marketplace-odoo","category-next-js","category-odoo","category-odoo-bridge","tag-api-authentication","tag-next-headless-theme","tag-next-js-integration","tag-nextjs","tag-odoo-api","tag-odoo-integrate-api"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Create Product Page Using Odoo API In NextJs. - Webkul Blog<\/title>\n<meta name=\"description\" content=\"The odoo Rest API provides e-commerce product services and serves as the bridge between your applications.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Create Product Page Using Odoo API In NextJs. - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"The odoo Rest API provides e-commerce product services and serves as the bridge between your applications.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-13T09:21:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-23T09:48:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/09\/Odoo-ProductAPI-Response-1200x686.png\" \/>\n<meta name=\"author\" content=\"Abhishek Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abhishek Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/\"},\"author\":{\"name\":\"Abhishek Kumar\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/9df44e99abf7df96a2c30b30fe20a4b9\"},\"headline\":\"How To Create Product Page Using Odoo API In NextJs.\",\"datePublished\":\"2023-09-13T09:21:25+00:00\",\"dateModified\":\"2026-02-23T09:48:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/\"},\"wordCount\":359,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/09\/Odoo-ProductAPI-Response-1200x686.png\",\"keywords\":[\"API Authentication\",\"next headless theme\",\"next js integration\",\"nextjs\",\"odoo api\",\"odoo integrate api\"],\"articleSection\":[\"E commerce\",\"Marketplace\",\"next js\",\"Odoo\",\"Odoo Bridge\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/\",\"name\":\"How To Create Product Page Using Odoo API In NextJs. - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/09\/Odoo-ProductAPI-Response-1200x686.png\",\"datePublished\":\"2023-09-13T09:21:25+00:00\",\"dateModified\":\"2026-02-23T09:48:49+00:00\",\"description\":\"The odoo Rest API provides e-commerce product services and serves as the bridge between your applications.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/09\/Odoo-ProductAPI-Response.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/09\/Odoo-ProductAPI-Response.png\",\"width\":1530,\"height\":875,\"caption\":\"Odoo-ProductAPI-Response\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Create Product Page Using Odoo API In NextJs.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/9df44e99abf7df96a2c30b30fe20a4b9\",\"name\":\"Abhishek Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5dab3b6807a6aa05fa5ad733392108c9f4ca765e4051f2e20687e10133f461e5?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5dab3b6807a6aa05fa5ad733392108c9f4ca765e4051f2e20687e10133f461e5?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Abhishek Kumar\"},\"description\":\"Abhishek Kumar, a skilled software engineer, specializes in crafting immersive digital experiences. With a focus on frontend development, he excels in creating headless themes . Proficient in JavaScript and next.js, Abhishek's expertise adds a unique and dynamic dimension to any project, ensuring a seamless and engaging user journey.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/abhishekkumar-mg121\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Create Product Page Using Odoo API In NextJs. - Webkul Blog","description":"The odoo Rest API provides e-commerce product services and serves as the bridge between your applications.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/","og_locale":"en_US","og_type":"article","og_title":"How To Create Product Page Using Odoo API In NextJs. - Webkul Blog","og_description":"The odoo Rest API provides e-commerce product services and serves as the bridge between your applications.","og_url":"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-09-13T09:21:25+00:00","article_modified_time":"2026-02-23T09:48:49+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/09\/Odoo-ProductAPI-Response-1200x686.png","type":"","width":"","height":""}],"author":"Abhishek Kumar","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Abhishek Kumar","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/"},"author":{"name":"Abhishek Kumar","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/9df44e99abf7df96a2c30b30fe20a4b9"},"headline":"How To Create Product Page Using Odoo API In NextJs.","datePublished":"2023-09-13T09:21:25+00:00","dateModified":"2026-02-23T09:48:49+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/"},"wordCount":359,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/09\/Odoo-ProductAPI-Response-1200x686.png","keywords":["API Authentication","next headless theme","next js integration","nextjs","odoo api","odoo integrate api"],"articleSection":["E commerce","Marketplace","next js","Odoo","Odoo Bridge"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/","url":"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/","name":"How To Create Product Page Using Odoo API In NextJs. - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/09\/Odoo-ProductAPI-Response-1200x686.png","datePublished":"2023-09-13T09:21:25+00:00","dateModified":"2026-02-23T09:48:49+00:00","description":"The odoo Rest API provides e-commerce product services and serves as the bridge between your applications.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/09\/Odoo-ProductAPI-Response.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/09\/Odoo-ProductAPI-Response.png","width":1530,"height":875,"caption":"Odoo-ProductAPI-Response"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-create-product-page-using-odoo-api-in-nextjs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Create Product Page Using Odoo API In NextJs."}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/9df44e99abf7df96a2c30b30fe20a4b9","name":"Abhishek Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5dab3b6807a6aa05fa5ad733392108c9f4ca765e4051f2e20687e10133f461e5?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5dab3b6807a6aa05fa5ad733392108c9f4ca765e4051f2e20687e10133f461e5?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Abhishek Kumar"},"description":"Abhishek Kumar, a skilled software engineer, specializes in crafting immersive digital experiences. With a focus on frontend development, he excels in creating headless themes . Proficient in JavaScript and next.js, Abhishek's expertise adds a unique and dynamic dimension to any project, ensuring a seamless and engaging user journey.","url":"https:\/\/webkul.com\/blog\/author\/abhishekkumar-mg121\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/396771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/545"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=396771"}],"version-history":[{"count":118,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/396771\/revisions"}],"predecessor-version":[{"id":527591,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/396771\/revisions\/527591"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=396771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=396771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=396771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}