Skip to content

gt_float

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

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

filter_query[price][gt_float]=119.99
Returns all stories with a price greater than 119.99.

filter_query[price][gt_float]=1199.99
Returns all stories with a price greater than 1199.99. Please note the absence of a thousand separator.

The following example demonstrates how to receive all stories with a price greater than 1199.99 using the gt_float operation.

curl "https://api.storyblok.com/v2/cdn/stories/?filter_query%5Bprice%5D%5Bgt_float%5D=1199.99&token=ask9soUkv02QqbZgmZdeDAtt"
Response
{
"stories": [
{
"name": "Product B",
"created_at": "2024-03-07T15:43:12.008Z",
"published_at": "2024-03-07T15:59:51.735Z",
"id": 457608238,
"uuid": "278b829e-bde6-48e3-9920-f99d3afe35d3",
"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": "1799.99",
"component": "product"
},
"slug": "product-b",
"full_slug": "products/product-b",
"sort_by_date": null,
"position": 0,
"tag_list": [],
"is_startpage": false,
"parent_id": 457608232,
"meta_data": null,
"group_id": "bb986ccd-3ad7-448b-9662-27ff49aa7bff",
"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": 1709827198,
"rels": [],
"links": []
}