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.
Examples Use Cases
Section titled “Examples Use Cases”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.
Example Request and Response
Section titled “Example Request and Response”The following example demonstrates how to receive all stories with a price greater than 300.99 using the gt_float operation.
curl "https://api.storyblok.com/v2/cdn/stories\?filter_query%5Bprice%5D%5Bgt_float%5D=300.99\&token=ask9soUkv02QqbZgmZdeDAtt"// storyblok-js-client@>=7, node@>=18import Storyblok from "storyblok-js-client";
const storyblok = new Storyblok({ accessToken: "ask9soUkv02QqbZgmZdeDAtt",});
try { const response = await storyblok.get('cdn/stories', { "filter_query[price][gt_float]": "300.99" }) console.log({ response })} catch (error) { console.log(error)}$client = new \Storyblok\Client('YOUR_STORYBLOK_SPACE_ACCESS_TOKEN');
$client->getStories([ "filter_query[price][gt_float]" => "300.99"])->getBody();HttpResponse<String> response = Unirest.get("https://api.storyblok.com/v2/cdn/stories?filter_query%5Bprice%5D%5Bgt_float%5D=300.99&token=ask9soUkv02QqbZgmZdeDAtt") .asString();var client = new RestClient("https://api.storyblok.com/v2/cdn/stories?filter_query%5Bprice%5D%5Bgt_float%5D=300.99&token=ask9soUkv02QqbZgmZdeDAtt");var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);import requests
url = "https://api.storyblok.com/v2/cdn/stories"
querystring = {"filter_query[price][gt_float]":"300.99","token":"ask9soUkv02QqbZgmZdeDAtt"}
payload = ""headers = {}
response = requests.request("GET", url, data=payload, headers=headers, params=querystring)
print(response.text)require 'storyblok'client = Storyblok::Client.new(token: 'YOUR_TOKEN')
client.stories({:params => { "filter_query[price][gt_float]" => "300.99"}})// .package(url: "https://github.com/storyblok/storyblok-swift.git", from: "1.1.0")// Requires a `Block` content model — see https://www.storyblok.com/docs/quickstarts/apple-platforms/content-modelinglet client = StoryblokClient( library: Block.self, accessToken: "ask9soUkv02QqbZgmZdeDAtt", version: .published, region: .eu)
let stories: Page<Story<Block.Product>>? = try await client .stories { @Sendable (query: inout StoriesQuery<Block.Product>) in query.filter { $0.price.asDecimal > 300.99 } } .last() .values .first { @Sendable _ in true }
print(stories!)// implementation("com.storyblok:content-api-client:0.7.1")// Requires a `Product` component model — see https://www.storyblok.com/docs/quickstarts/android/content-modelingval client = StoryblokClient( accessToken = "ask9soUkv02QqbZgmZdeDAtt", version = Published,)
val stories = client .stories<Product> { filter { Product::price greaterThan 300.99 } } .flow .asItemSnapshotListFlow() .first()
println(stories){ "stories": [ { "name": "Spaceship", "created_at": "2018-12-10T17:51:25.161Z", "published_at": "2026-10-23T07:57:15.777Z", "updated_at": "2026-10-23T07:57:15.794Z", "id": 461935, "uuid": "14d950c6-0a8f-4088-98e3-73efced9ff6d", "content": { "_uid": "00b45e23-5dc5-4398-9b34-e87ae4ed42e6", "link": { "id": "273bba42-834b-4a87-b190-eafe3eabb4d4", "url": "", "linktype": "story", "fieldtype": "multilink", "cached_url": "home" }, "name": "Spaceship", "image": "//a.storyblok.com/f/44203/6016x4016/995fde1190/spaceship.jpg", "price": "1700000009", "featured": true, "component": "product", "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. In erat mauris, faucibus quis pharetra sit amet, pretium ac libero. Etiam vehicula eleifend bibendum." }, "slug": "spaceship", "full_slug": "products/spaceship", "sort_by_date": null, "position": -30, "tag_list": [], "is_startpage": false, "parent_id": 461931, "meta_data": null, "group_id": "99285e65-5610-4ff1-a0c7-a037f9b84e5d", "first_published_at": "2018-12-10T17:52:14.000Z", "release_id": null, "lang": "default", "path": null, "alternates": [], "default_full_slug": null, "translated_slugs": null } ], "cv": 1792742236, "rels": [], "links": []}Was this page helpful?
This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window).Terms of Service (opens in a new window) apply.
- Need help?Contact support (opens in a new window)
- Something isn’t right?Check system status (opens in a new window)
Get in touch with the Storyblok community