Content Recommendation
Request
- Base URLhttps://api.lytics.io
- URLhttps://api.lytics.io/api/content/recommend/user/{fieldname}/{fieldval}
- AuthAPI key in header Authorization
Path parameters
field to use to identify a user
unique identity
Query parameters
Your Lytics account ID.
id, or slug of a content-collection to filter content
limit on number of documents to suggest/return
whether or not to shuffle the recommendation order
whether to show recommendations for content the user has already viewed
if supplied, only allow recommendations on content with the specified topics
Ranking method for order of recommendations. Must be one of "popular", "recent", or "affinity"
Whether or not to wait for more complex user identities to resolve
if the fieldname and fieldval are omitted, an email can be provided. This can be helpful for templating use-cases
if url is provided, the recommendations will be based on the content topics associated with the provided URL
Response
OK
Example response
{
"data": [
{
"url": "www.getlytics.com/blog/post/intent_through_content",
"title": "Understanding User Intent Through Content",
"description": "Customer Intent comes from understanding the connection between engagement and its contexts. Content modeling and affinity graphs makes interpretation of intent a lot easier. Learn how marketers can benefit from this.",
"topics": [
"customer data platform",
"data science",
"content marketing",
"personalization"
],
"topic_relevances": {
"content marketing": 1,
"customer data platform": 1,
"data science": 1,
"personalization": 1
},
"primary_image": "https://www.getlytics.com/img/blog/posts/intent_through_content/intent_through_content-bg.gif",
"author": "",
"created": "2016-06-08T16:11:45.599594093Z",
"id": "-3435113786560588929",
"sitename": "Lytics",
"stream": "default",
"path": [
"blog",
"blog/post",
"blog/post/intent_through_content"
],
"aspects": [
"article"
],
"language": "unknown",
"updated": "2016-06-09T12:49:36.870359765Z",
"fetched": "2016-06-09T12:49:35.812654441Z",
"meta": [
"og:locale/en_us",
"og:site_name/lytics",
"og:title/understanding user intent through content",
"og:type/article",
"og:url/https://www.getlytics.com/blog/post/intent_through_content"
],
"confidence": 0.5916079783099615,
"visited": true
}
],
"message": "success",
"status": 200
}Changes
No recorded changes to this operation across all 1 revision of this API.