Skip to content

lt_int

Returns all stories with a field value lower than the provided value.

This operation can be used for Number fields or Text fields with an integer value. Moreover, it can be used for custom fields returning an integer value.

filter_query[price][lt_int]=120
Returns all stories with a price lower than 120.

filter_query[price][lt_int]=1200
Returns all stories with a price lower than 1200. Please note the absence of a thousand separator.

The following example demonstrates how to receive all stories with a price lower than 1200 using the lt_int operation.

curl "https://api.storyblok.com/v2/cdn/stories/?filter_query%5Bprice%5D%5Blt_int%5D=1200&token=ask9soUkv02QqbZgmZdeDAtt"
Response
{
"stories": [
{
"name": "Product A",
"created_at": "2024-03-07T15:42:27.967Z",
"published_at": "2024-03-07T15:49:24.775Z",
"id": 457608234,
"uuid": "43a86f66-0b12-4653-9ed9-6dbceb85cb60",
"content": {
"_uid": "2fe813f5-e86a-4f56-a4ea-e9a9bfdc354c",
"image": {
"id": null,
"alt": null,
"name": "",
"focus": null,
"title": null,
"source": null,
"filename": "",
"copyright": null,
"fieldtype": "asset",
"meta_data": {}
},
"price": "240",
"component": "product"
},
"slug": "product-a",
"full_slug": "products/product-a",
"sort_by_date": null,
"position": 0,
"tag_list": [],
"is_startpage": false,
"parent_id": 457608232,
"meta_data": null,
"group_id": "7eb7a5f8-8d0b-4c4c-9404-262f7d09f910",
"first_published_at": "2024-03-07T15:42:52.308Z",
"release_id": null,
"lang": "default",
"path": null,
"alternates": [],
"default_full_slug": null,
"translated_slugs": null
}
],
"cv": 1709826564,
"rels": [],
"links": []
}