SlideShare a Scribd company logo
Motivation
• Business: Selling products, movies, papers
• Research: Baseline for improvements.
• Personal uses:
• Recommend a song from your own music library
Input and Outputs
• Two relations: User and Products
• Input: User actions
• Buy
• View
• Rate
• Can there be any other actions?
• Output: Product suggestions
• Other users also viewed/bought/rated good.
• What are the best products for this user?
• Search engine analogy.
The Amazon Analogy
• Product independent.
• Product dependent.
Easyrec: Open Source Recommender Engine
• http://www.easyrec.org/
• Can be used in two ways:
• Download a copy and run in localhost.
• Use the easyrec server.
• Use the REST API to integrate with your site.
• API pros and cons:
• Don’t need to bother about computation power.
• Very easy for prototyping.
• Data privacy (if you are running on easyrec server).
• Not flexible enough for fine grained customization.
API: Getting Started
• Create an user account, get a token.
• Create a “tenant id”: url for your website/your home
computer/anything.
• “tenant-id” and token combined work as a primary key.
• Any call to the easyrec must contain these two parameters.
API: Input Your Data
• Input options:
• View: The user has viewed this item.
• Buy: The user has bought this item.
• Rate: The user has rated this item.
• You can also define your own “action”
• Sample API calls:
• http://easyrec.sourceforge.net/wiki/index.php?title=REST_API_v0.98
API: Get Recommendations
• Other users also viewed:
• Parameter: item id.
• Other users also bought:
• Parameter: item id.
• Items rated good by other users:
• Parameter: item id.
• Users who bought this item rated these items good.
• Recommendations for user:
• Parameter: user id.
API: Rules, Clustering and Community Ranking
• Rules:
• You can write your own rules which will associate two items (users who rated
item A high, also bought item B).
• Rules can not be written between an user and an item.
• Clustering:
• You can create clusters of items (laptop/books/songs)
• You can get all items in a cluster.
• Community ranking:
• Items liked by/bought by/ rated by most users.
Conclusion
• An open source recommender system which can be readily deployed
in a small e-commerce site.
• Not much flexible:
• You might want to recommend items in a cluster based on user history on
that cluster.
• You want to develop a separate ranking function.
• Only collaborative filtering: no content based recommendation.
• Real sites have used this: http://www.flimmit.com. (See a
recommendation here. )

More Related Content

PPTX
How to build a rest api
PPTX
Api crash
PPTX
Rest API Testing
PDF
Automating and Testing a REST API
PPTX
SenchaCon 2016: Oracle Forms Modernisation - Owen Pagan
PPTX
SenchaCon 2016: Being Productive with the New Sencha Fiddle - Mitchell Simoens
PDF
Maine WordPress Meetup JSON REST API, 3/16/2016
PPTX
Building rest services using aspnetwebapi
How to build a rest api
Api crash
Rest API Testing
Automating and Testing a REST API
SenchaCon 2016: Oracle Forms Modernisation - Owen Pagan
SenchaCon 2016: Being Productive with the New Sencha Fiddle - Mitchell Simoens
Maine WordPress Meetup JSON REST API, 3/16/2016
Building rest services using aspnetwebapi

What's hot (15)

PPTX
Building Modern Web Applications with ASP.NET5
PDF
JOSA TechTalks - Compilers, Transpilers, and Why You Should Care
PPTX
Getting Started with ASP.NET 5
PPTX
10 tips to make your ASP.NET Apps Faster
PDF
Elasticsearch at Automattic
PDF
Sencha and Spring (Spring 2GX 2013)
PPTX
Enhance WordPress Search Using Sphinx
PPTX
ASP.NET MVC - Latest & Greatest So Far
PDF
Building Beautiful REST APIs with ASP.NET Core
PPTX
PluginBasicsWCNYC2014
PPTX
Hard Coding as a design approach
PPTX
Web Application Frameworks (WAF)
PDF
PDF
Being With Rails App For 3 Years
PDF
GraphQL Story: Intro To GraphQL
Building Modern Web Applications with ASP.NET5
JOSA TechTalks - Compilers, Transpilers, and Why You Should Care
Getting Started with ASP.NET 5
10 tips to make your ASP.NET Apps Faster
Elasticsearch at Automattic
Sencha and Spring (Spring 2GX 2013)
Enhance WordPress Search Using Sphinx
ASP.NET MVC - Latest & Greatest So Far
Building Beautiful REST APIs with ASP.NET Core
PluginBasicsWCNYC2014
Hard Coding as a design approach
Web Application Frameworks (WAF)
Being With Rails App For 3 Years
GraphQL Story: Intro To GraphQL
Ad

Viewers also liked (18)

PDF
TEMA 3 , ACT PARTE 2
PPT
Salmos e hinos 472
PDF
Test PDF 7
PPTX
Gisela morales polo a tierra
PPTX
Location Intelligence for B2B Sales & Marketing
PDF
Dark Souls
PDF
Resultados campeonato de madrid absoluto y adaptado
PDF
Coding 100-session-slides
PDF
Initiative Startup Slovenia Brochure
PDF
IgY Exec Summary Jan 7 '16
DOC
Kris Dahlquist- Resume
PPT
PPT
Experienţa în cooperare peste hotare şi în Moldova
PPTX
Unit 4 economic nuts and bolts packet
PPT
Tauro
PPTX
Tauro signo del zodiaco
PPT
Protestant reformation
PPTX
DH2012_Bellamy
TEMA 3 , ACT PARTE 2
Salmos e hinos 472
Test PDF 7
Gisela morales polo a tierra
Location Intelligence for B2B Sales & Marketing
Dark Souls
Resultados campeonato de madrid absoluto y adaptado
Coding 100-session-slides
Initiative Startup Slovenia Brochure
IgY Exec Summary Jan 7 '16
Kris Dahlquist- Resume
Experienţa în cooperare peste hotare şi în Moldova
Unit 4 economic nuts and bolts packet
Tauro
Tauro signo del zodiaco
Protestant reformation
DH2012_Bellamy
Ad

Similar to Rest api to integrate with your site (20)

PDF
IRJET- Rest API for E-Commerce Site
PDF
Web and Android Application for Comparison of E-Commerce Products
PDF
Api's and ember js
PDF
REST full API Design
PDF
IRJET- Multi Design - Pattern React Application with Django Backend
PDF
A recommendation engine for your applications phpday
PDF
Web 13 | REST API
PPTX
Raml part 1
PDF
Amsterdam php create a restful api
PPTX
RESTful services Design Lab
PPTX
REST and RESTful Services
PPTX
Thinking Serverless (AWS re:Invent 2019 chalk talk SVS213). Solutions slides.
PPTX
Recommendations
PDF
Designing your API Server for mobile apps
PDF
5 Anti-Patterns in Api Design - NDC London 2016
PPTX
RESTful design
PPTX
Building Software Backend (Web API)
PDF
zendframework2 restful
PPTX
API Design Tour: Digital River
KEY
Api development with rails
IRJET- Rest API for E-Commerce Site
Web and Android Application for Comparison of E-Commerce Products
Api's and ember js
REST full API Design
IRJET- Multi Design - Pattern React Application with Django Backend
A recommendation engine for your applications phpday
Web 13 | REST API
Raml part 1
Amsterdam php create a restful api
RESTful services Design Lab
REST and RESTful Services
Thinking Serverless (AWS re:Invent 2019 chalk talk SVS213). Solutions slides.
Recommendations
Designing your API Server for mobile apps
5 Anti-Patterns in Api Design - NDC London 2016
RESTful design
Building Software Backend (Web API)
zendframework2 restful
API Design Tour: Digital River
Api development with rails

More from Hoang Nguyen (20)

PPTX
Smm and caching
PPTX
Optimizing shared caches in chip multiprocessors
PPTX
How analysis services caching works
PPTX
Hardware managed cache
PPTX
Directory based cache coherence
PPTX
Cache recap
PPTX
Python your new best friend
PPTX
Python language data types
PPTX
Python basics
PPTX
Programming for engineers in python
PPTX
Learning python
PPTX
Extending burp with python
PPTX
Cobol, lisp, and python
PPT
Object oriented programming using c++
PPTX
Object oriented analysis
PPTX
Object model
PPTX
Data structures and algorithms
PPT
Data abstraction the walls
PPT
Data abstraction and object orientation
PPT
Classes and data abstraction
Smm and caching
Optimizing shared caches in chip multiprocessors
How analysis services caching works
Hardware managed cache
Directory based cache coherence
Cache recap
Python your new best friend
Python language data types
Python basics
Programming for engineers in python
Learning python
Extending burp with python
Cobol, lisp, and python
Object oriented programming using c++
Object oriented analysis
Object model
Data structures and algorithms
Data abstraction the walls
Data abstraction and object orientation
Classes and data abstraction

Recently uploaded (20)

PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
PDF
Transforming Manufacturing operations through Intelligent Integrations
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
AI And Its Effect On The Evolving IT Sector In Australia - Elevate
PDF
Chapter 2 Digital Image Fundamentals.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Sensors and Actuators in IoT Systems using pdf
PPTX
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
PDF
Advanced Soft Computing BINUS July 2025.pdf
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
Transforming Manufacturing operations through Intelligent Integrations
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Reach Out and Touch Someone: Haptics and Empathic Computing
AI And Its Effect On The Evolving IT Sector In Australia - Elevate
Chapter 2 Digital Image Fundamentals.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Chapter 3 Spatial Domain Image Processing.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
NewMind AI Monthly Chronicles - July 2025
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
MYSQL Presentation for SQL database connectivity
Advanced methodologies resolving dimensionality complications for autism neur...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Sensors and Actuators in IoT Systems using pdf
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
Advanced Soft Computing BINUS July 2025.pdf

Rest api to integrate with your site

  • 1. Motivation • Business: Selling products, movies, papers • Research: Baseline for improvements. • Personal uses: • Recommend a song from your own music library
  • 2. Input and Outputs • Two relations: User and Products • Input: User actions • Buy • View • Rate • Can there be any other actions? • Output: Product suggestions • Other users also viewed/bought/rated good. • What are the best products for this user? • Search engine analogy.
  • 3. The Amazon Analogy • Product independent. • Product dependent.
  • 4. Easyrec: Open Source Recommender Engine • http://www.easyrec.org/ • Can be used in two ways: • Download a copy and run in localhost. • Use the easyrec server. • Use the REST API to integrate with your site. • API pros and cons: • Don’t need to bother about computation power. • Very easy for prototyping. • Data privacy (if you are running on easyrec server). • Not flexible enough for fine grained customization.
  • 5. API: Getting Started • Create an user account, get a token. • Create a “tenant id”: url for your website/your home computer/anything. • “tenant-id” and token combined work as a primary key. • Any call to the easyrec must contain these two parameters.
  • 6. API: Input Your Data • Input options: • View: The user has viewed this item. • Buy: The user has bought this item. • Rate: The user has rated this item. • You can also define your own “action” • Sample API calls: • http://easyrec.sourceforge.net/wiki/index.php?title=REST_API_v0.98
  • 7. API: Get Recommendations • Other users also viewed: • Parameter: item id. • Other users also bought: • Parameter: item id. • Items rated good by other users: • Parameter: item id. • Users who bought this item rated these items good. • Recommendations for user: • Parameter: user id.
  • 8. API: Rules, Clustering and Community Ranking • Rules: • You can write your own rules which will associate two items (users who rated item A high, also bought item B). • Rules can not be written between an user and an item. • Clustering: • You can create clusters of items (laptop/books/songs) • You can get all items in a cluster. • Community ranking: • Items liked by/bought by/ rated by most users.
  • 9. Conclusion • An open source recommender system which can be readily deployed in a small e-commerce site. • Not much flexible: • You might want to recommend items in a cluster based on user history on that cluster. • You want to develop a separate ranking function. • Only collaborative filtering: no content based recommendation. • Real sites have used this: http://www.flimmit.com. (See a recommendation here. )