Search API
Search for products
Authorizations
Body
strategystring · enumRequiredExample: 
Strategy to use for search
SEMANTICPossible values: schemaIdstringRequiredExample: 
ID of the product schema you're querying against
ticketed-eventsquerystringRequiredExample: 
The search term
speakeasy venues to listen to live music and have a cocktailtopNintegerRequiredExample: 
Number of results to retrieve
10pageintegerOptionalExample: 
Page number to retrieve (defaults to 1 if not provided)
3profileIdstringOptionalExample: 
Unique identifier of the anonymous or known profile. Only required when using a geo filter on the profile's location.
abcd-1234-abcd-1234Responses
200
Fetched search results successfully
No content
400
Bad Request - Invalid input parameters
401
Unauthorized - Authentication credentials are missing or invalid
403
Forbidden - Insufficient permissions to perform the operation
500
Internal Server Error - Unexpected server error occurred
post
/searchPOST /search HTTP/1.1
Host: product-api.userflux.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 847
{
  "strategy": "SEMANTIC",
  "schemaId": "ticketed-events",
  "query": "speakeasy venues to listen to live music and have a cocktail",
  "topN": 10,
  "page": 3,
  "searchFields": [
    {
      "path": "description",
      "weight": 1.5
    }
  ],
  "propertyFilters": {
    "join": "AND",
    "groups": [
      {
        "join": "AND",
        "conditions": [
          {
            "property": "category",
            "operator": "EQUAL",
            "dataType": "STRING",
            "value": "music"
          }
        ]
      }
    ]
  },
  "geoFilter": {
    "type": "RADIUS",
    "radius": {
      "source": "CUSTOM",
      "distance": 25,
      "distanceUnit": "KILOMETERS",
      "latitude": 51.5074,
      "longitude": -0.1278
    },
    "geoBox": {
      "pair": "NE_SW",
      "northLatitude": 51.5074,
      "northLongitude": -0.1278,
      "southLatitude": 51.5074,
      "southLongitude": -0.1278
    }
  },
  "postFilter": {
    "verifyDateRange": {
      "startDateProperty": "startDate",
      "endDateProperty": "endDate",
      "dateRange": [
        "2025-09-27T00:00:00.000000000Z",
        "2025-09-28T23:59:59.999999999Z"
      ]
    },
    "distinctBy": "merchantId"
  },
  "profileId": "abcd-1234-abcd-1234"
}No content
Last updated