GET
/
context
/
{user_id}
/
catalog
/
{catalog_id}
curl --request GET \
  --url https://api.onfabric.io/api/v1/context/{user_id}/catalog/{catalog_id}
[
  {
    "item": {
      "item_id": "<string>",
      "item_data": "<any>"
    },
    "evidence": {
      "id": "<string>",
      "text": "<string>",
      "topics": [
        "<string>"
      ],
      "entities": [
        "<string>"
      ],
      "traits": {
        "sex": {
          "value": "MALE",
          "confidence": "NONE"
        },
        "country": {
          "value": "ABW",
          "confidence": "NONE"
        },
        "affluence": {
          "value": "LOW",
          "confidence": "NONE"
        },
        "political_affiliation": {
          "value": "LEFT",
          "confidence": "NONE"
        },
        "age": {
          "value": "0-18+",
          "confidence": "NONE"
        }
      },
      "cohesion": 123,
      "count": 123,
      "start_time": "2023-11-07T05:31:56Z",
      "end_time": "2023-11-07T05:31:56Z"
    },
    "score": 123
  }
]

Headers

api-key
string

The api key generated from the Fabric developer portal

Path Parameters

user_id
string
required

The id of the user

catalog_id
string
required

The id of the catalog

Query Parameters

context
string
required

Context to hone the catalog intersection

top_k
integer
required

The number of catalog items to return

from_date
string

Start date to filter events from

to_date
string

End date to filter events to

Response

200
application/json
Successful Response
item
object
required
evidence
object
required
score
number
required