oEmbed

oEmbed is an open standard that simplifies the integration of content from oEmbed-compliant providers directly into your website. For instance, using the Sellfy oEmbed endpoint, you can effortlessly embed a widget on your site that renders a single product card or multiple product cards at once.

To learn more about the benefits and mechanics of the oEmbed standard, explore the resources available at oEmbed.com


API

Programmatically, you may convert any product or store URL that is hosted by Sellfy into embedded product markup by using the oEmbed API. It allows you to get the embed code and additional information about the product/store associated with the webpage link provided.

https://sellfy.com/oembed/

Request Parameters

Param Description
url The product/store page URL

Response parameters

Param Optional Description
html
The html for the widget
author_name
Name of the store
author_url
Store URL
title
Product title / Name of the store
version
The oEmbed version number
provider_name
The name of the resource provider
provider_url
The url of the resource provider
thumbnail_url Yes A URL to a thumbnail image representing the product
thumbnail_width Yes The width of the optional thumbnail.
thumbnail_height Yes The height of the optional thumbnail.


Examples


Request URL - Embedding entire store

https://sellfy.com/oembed/?url=https://demo.sellfy.store/

Response

{
  "author_name": "Sellfy Demo Store",
  "author_url": "https://demo.sellfy.store/",
  "html": "<iframe src=\"https://demo.sellfy.store/embed/store/\" width=\"100%\" height=\"365\" allowtransparency=\"true\" style=\"border: none;\"></iframe><script src=\"https://sellfy.com/js/api_buttons.js\"></script>",
  "provider_name": "Sellfy",
  "provider_url": "https://sellfy.com",
  "title": "Sellfy Demo Store",
  "type": "store",
  "version": "1.0"
}

Request URL - Embedding single product

https://sellfy.com/oembed/?url=https://demo.sellfy.store/p/bottle-mockup/

Response

{
  "author_name": "Sellfy Demo Store",
  "author_url": "https://demo.sellfy.store/",
  "html": "<iframe src=\"https://demo.sellfy.store/embed/product/oe7xgn/\" width=\"100%\" height=\"500\" allowtransparency=\"true\" style=\"border: none;\"></iframe><script src=\"https://sellfy.com/js/api_buttons.js\"></script>",
  "id": "oe7xgn",
  "provider_name": "Sellfy",
  "provider_url": "https://sellfy.com",
  "thumbnail_height": 795,
  "thumbnail_url": "https://media.sellfy.store/images/ofyobBbT/BrReXwdDtRtX8oakPtNQ/wps2T0l4zm.jpeg?w=600",
  "thumbnail_width": 600,
  "title": "Bottle mockup",
  "type": "product",
  "version": "1.0"
}
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us