{"id":41277,"date":"2023-07-28T10:27:54","date_gmt":"2023-07-28T10:27:54","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=41277"},"modified":"2023-07-28T13:40:35","modified_gmt":"2023-07-28T13:40:35","slug":"how-to-set-query-builder-for-rest-api-items","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-query-builder-for-rest-api-items\/","title":{"rendered":"How to Set Query Builder for REST API Items"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"data-types\">Data Types<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Let us start with understanding which data types can be queried with which operators in the <strong>Custom Query<\/strong> of REST API type.<\/p>\n\n\n\n<p>In the JetEngine plugin folder, you can find a file that lists the data types and operators by following this path:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u201c\\jet-engine\\includes\\modules\\custom-content-types\\inc\\query-dialog.php\u201d.<\/code><\/pre>\n\n\n\n<p>Understanding the data types helps write the appropriate data type and operator in the Query Clause, so the values are converted if needed and when making a query to the database, cast to a specified type.<\/p>\n\n\n\n<p>These are the data types:<\/p>\n\n\n\n<ul>\n<li>with no conversion:\n<ul>\n<li><strong>\u2018integer\u2019 <\/strong>\u2014 a non-decimal number;<\/li>\n\n\n\n<li><strong>\u2018float\u2019 <\/strong>\u2014&nbsp; a number with a decimal point;<\/li>\n\n\n\n<li><strong>\u2018char\u2019 <\/strong>\u2014 string values.<br><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>with conversion:\n<ul>\n<li><strong>\u2018timestamp\u2019 <\/strong>\u2014 number of seconds between a particular date and the Unix Epoch, which starts on January 1st, 1970 at UTC; the values you enter will be converted to UNIX timestamp. For example, \u201813.07.2023\u2019 will be converted to 1689199200 before making a REST API call, \u2018today\u2018 will be converted to today\u2019s date in timestamp;<\/li>\n\n\n\n<li><strong>\u2018date\u2019 <\/strong>\u2014 is a date in MySQL DATETIME format; the date will be converted to it; for example, \u201813.07.2023\u2019 will be converted to \u201813.07.2023 00:00:00\u2019.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Here are also the operators. They define a condition by which the entered value in the query clause is compared with the values in the items:<\/p>\n\n\n\n<ul>\n<li>Equal;<\/li>\n\n\n\n<li>Not equal;<\/li>\n\n\n\n<li>Greater than;<\/li>\n\n\n\n<li>Greater or equal;<\/li>\n\n\n\n<li>Less than;<\/li>\n\n\n\n<li>Equal or less;<\/li>\n\n\n\n<li>Like;<\/li>\n\n\n\n<li>Not like;<\/li>\n\n\n\n<li>In;<\/li>\n\n\n\n<li>Not in;<\/li>\n\n\n\n<li>Between;<\/li>\n\n\n\n<li>Not between.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"connect-to-cct-endpoint\">Connect to CCT Endpoint<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>In the <strong><em>WordPress Dashboard &gt; JetEngine &gt; REST API Endpoints<\/em><\/strong> tab, build a connection to an endpoint with the CCT items from another website.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/Screenshot_39.png\" alt=\"add new query button\">\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"query-clause-examples\">Query Clause Examples<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Go to <strong><em>WordPress Dashboard &gt; JetEngine &gt; Query Builder<\/em><\/strong> and create a <strong>Custom Query <\/strong>by pressing the \u201c<strong>Add New<\/strong>\u201d button.<\/p>\n\n\n\n<p>Select \u201cREST API Query\u201d as a <strong>Query Type<\/strong>, and pick an endpoint previously connected in JetEngine\u2019s REST API in the <strong>From Endpoint <\/strong>field.&nbsp;<\/p>\n\n\n\n<p>We recommend toggling on <strong>Preview results<\/strong> at the top of the page to see the query results instantly on the right side.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/Screenshot_41.png\" alt=\"rest api query type\">\n\n\n\n<p>Add a new item to the <strong>Query<\/strong> and \u2018_filters\u2019 as a <strong>Key<\/strong>.<\/p>\n\n\n\n<p>We add this exact key because in the folder of the <em>JetEngine <\/em>plugin (in the \u201c\\jet-engine\\includes\\modules\\custom-content-types\\inc\\rest-api\\public-controller.php\u201d file), you can find a \u2018_filters\u2019 parameter which allows querying the CCT items.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/Screenshot_42.png\" alt=\"rest api query filters key\">\n\n\n\n<h3 class=\"wp-block-heading\" id=\"integer\">Integer<\/h3>\n\n\n\n<p>Check the first example with the \u2018f2\u2019 field that stores a value of \u201cinteger\u201d data type.<\/p>\n\n\n\n<p>In this case, the value for the query clause should be written in the following format:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;{\"field\":\"f2\",\"operator\":\"=\",\"value\":\"12\",\"type\":\"INTEGER\"}]<\/code><\/pre>\n\n\n\n<p>It means we want to pull the items with a value of \u201812\u2019 in the \u2018f2\u2019 field. We also specify that the value is an integer. With this query clause, we instantly get one item in the <strong>Preview Results<\/strong> window which matches our request.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/Screenshot_43.png\" alt=\"integer value in query\">\n\n\n\n<h3 class=\"wp-block-heading\" id=\"floating-number\">Floating number<\/h3>\n\n\n\n<p>The second example is a query clause based on a \u201cfloating number\u201d value.<\/p>\n\n\n\n<p>We wrote the following value:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> &#91;{\"field\":\"num2\",\"operator\":\"&gt;\",\"value\":\"67.50\",\"type\":\"FLOATING\"}] \n<\/code><\/pre>\n\n\n\n<p>As a result, we got one CCT item with a value greater than 67.50.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/Screenshot_44.png\" alt=\"floating number value in query\">\n\n\n\n<h3 class=\"wp-block-heading\" id=\"string\">String<\/h3>\n\n\n\n<p>The following example is a query clause based on the value of the CCT item field, which stores a \u201cstring\u201d value.<\/p>\n\n\n\n<p>It is a value for the query clause:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;{\"field\":\"cct_status\",\"operator\":\"=\",\"value\":\"publish\",\"type\":\"CHAR\"}]<\/code><\/pre>\n\n\n\n<p>With this request, we got three CCT items with the \u2018publish\u2019 status.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/Screenshot_45.png\" alt=\"string value in query\">\n\n\n\n<h3 class=\"wp-block-heading\" id=\"checkbox-field\">Checkbox field<\/h3>\n\n\n\n<p>Let us proceed with the example of querying by the checkbox field. The checkbox stores items in a serialized array in the database, so we will use the CHAR type.<\/p>\n\n\n\n<p>The checkbox in our example field has two options \u2014 \u2018one\u2019 and \u2018two\u2019. We will check how the query is to be written in different cases.<\/p>\n\n\n\n<p>To show the items that have at least option \u2018one\u2019 checked, we use this value in the query clause:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;{\"field\":\"check1\",\"operator\":\"LIKE\",\"value\":\"one\",\"type\":\"CHAR\"}]<\/code><\/pre>\n\n\n\n<p>In this case, we receive items with option \u2018one\u2019 checked and other options.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/Screenshot_47.png\" alt=\"checkbox value in query with one option checked\">\n\n\n\n<p>To show the items where only one specific item is checked, this value in the query clause is needed:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> &#91;{\"field\":\"check1\",\"operator\":\"REGEXP\",\"value\":\"a:1:.*one\",\"type\":\"CHAR\"}]<\/code><\/pre>\n\n\n\n<p>The result displays the item with only the option \u2018one\u2019 checked. Other items with options \u2018one\u2019 and \u2018two\u2019 checked are ignored.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/Screenshot_46.png\" alt=\"specific item checked query\">\n\n\n\n<p>Let us also see how we can show the CCT items that have only both specific options checked simultaneously, not just one. In other words, the items have to be queried with a relational operator \u2018AND\u2019. We came up with the following value for the query clause:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;{\"field\":\"check1\",\"operator\":\"LIKE\",\"value\":\"one\",\"type\":\"CHAR\"},\n{\"field\":\"check1\",\"operator\":\"LIKE\",\"value\":\"two\",\"type\":\"CHAR\"}]\n<\/code><\/pre>\n\n\n\n<p>Now the result displays the items that have only both options checked at the same time.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/Screenshot_48.png\" alt=\"both options checked query\">\n\n\n\n<p>Another case for querying by checkbox field is showing items with at least one value checked from the list. It means a relational operator \u2018OR\u2019 is used.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;\n{ \"relation\":\"OR\",\n\"0\":{\"field\":\"f2\",\"operator\":\"=\",\"value\":\"12\",\"type\":\"CHAR\"},\n\"1\":{\"field\":\"f1\",\"operator\":\"=\",\"value\":\"1\",\"type\":\"CHAR\"}\n}\n]\n<\/code><\/pre>\n\n\n\n<p>The results will show items with option \u2018one\u2019 checked, just option \u2018two\u2019 checked, or both simultaneously.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/Screenshot_49.png\" alt=\"relational operator or\">\n\n\n\n<p>And last but not least case for querying by checkbox field is creating a query clause with two relational operators \u2014 \u2018OR\u2019 and \u2018AND\u2019. It means the query has to present the items with option \u2018one\u2019 checked or options \u2018one\u2019 and \u2018two\u2019 checked simultaneously.<\/p>\n\n\n\n<p>You can see the query clause value for such a case below. You can also compare values from other fields, not just from one, to create a more advanced query.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;\n  {\n    \"relation\":\"OR\",\n    \"0\" : {\n            \"relation\" : \"AND\",\n            \"0\" : {\n                    \"field\" : \"check1\",\n                    \"operator\" : \"LIKE\",\n                    \"value\" : \"one\",\n                    \"type\" : \"CHAR\"\n                   },\n            \"1\" : {\n                    \"field\" : \"check1\",\n                    \"operator\" : \"LIKE\",\n                    \"value\" : \"two\",\n                    \"type\"  : \"CHAR\"}\n           },\n    \"1\" : {\n            \"field\" : \"check1\",\n            \"operator\" : \"LIKE\",\n            \"value\" : \"one\",\n            \"type\" : \"CHAR\"\n           }\n  }\n]\n<\/code><\/pre>\n\n\n\n<p>Here is an item in the results with only option \u2018one\u2019 checked.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/Screenshot_50.png\" alt=\"only one option checked\">\n\n\n\n<p>Two other items in the results have \u2018one\u2019 and \u2018two\u2019 options checked as per the query.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/Screenshot_51.png\" alt=\"two options checked as per query\n\">\n\n\n\n<p>Lastly, let us query the CCT items by the fields that store dates in date or timestamp formats.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"date\">Date<\/h3>\n\n\n\n<p>We have a \u2018cct_created\u2019 field that stores a date in a date format.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/Screenshot_56.png\" alt=\"date query\">\n\n\n\n<p>Therefore, we can use the following expression to query by this field:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;{\"field\":\"cct_created\",\"operator\":\"BETWEEN\",\"value\":\"2023-01-01,2023-04-22\",\"type\":\"DATE\"}]<\/code><\/pre>\n\n\n\n<p>As a result, we have an item that has been created between the entered dates on 21st April 2023.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/Screenshot_55.png\" alt=\"date query result\">\n\n\n\n<h3 class=\"wp-block-heading\" id=\"timestamp\">Timestamp<\/h3>\n\n\n\n<p>A frequent request is to show items with a date greater or equal to \u2018today\u2019 based on the timestamp.<\/p>\n\n\n\n<p>As you can see, the \u2018date1\u2019 has a date saved as a timestamp, so we need to use the \u2019TIMESTAMP\u2019 type in the query clause.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/Screenshot_52.png\" alt=\"timestamp query\">\n\n\n\n<p>Here is how the query should be written in this case:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;{\"field\":\"date1\",\"operator\":\"&gt;=\",\"value\":\"today\",\"type\":\"TIMESTAMP\"}]<\/code><\/pre>\n\n\n\n<p>In this case, we get a post with a date greater than \u2018today\u2019 because the \u20181698624000\u2019 timestamp is \u2018Mon Oct 30 2023\u2019 in GMT.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/Screenshot_53.png\" alt=\"timestamp query result\">\n<\/div><\/div>\n\n\n\n<p>Besides the \u2018today\u2019 value, you can use <a href=\"https:\/\/www.php.net\/manual\/en\/datetime.formats.relative.php\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">other relative date\/time formats<\/a>.&nbsp;<\/p>\n\n\n\n<p>That is it. Now you know how to query <em>JetEngine <\/em>CCT items pulled via REST API by different data types using different operators and conditions on your WordPress website.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial explains how to query a Custom Content Type endpoint by different field types using JetEngine\u2019s Query Builder.<\/p>\n","protected":false},"author":9,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[405],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Set Query Builder for the REST API items \u2014 JetEngine | Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn how to query the CCT endpoint by different field types with the help of the JetEngine plugin functionality available for your WordPress website.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-query-builder-for-rest-api-items\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set Query Builder for the REST API items \u2014 JetEngine | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn how to query the CCT endpoint by different field types with the help of the JetEngine plugin functionality available for your WordPress website.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-query-builder-for-rest-api-items\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-28T13:40:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/Screenshot_39.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-query-builder-for-rest-api-items\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-query-builder-for-rest-api-items\/\",\"name\":\"How to Set Query Builder for the REST API items \u2014 JetEngine | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2023-07-28T10:27:54+00:00\",\"dateModified\":\"2023-07-28T13:40:35+00:00\",\"description\":\"Learn how to query the CCT endpoint by different field types with the help of the JetEngine plugin functionality available for your WordPress website.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-query-builder-for-rest-api-items\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-query-builder-for-rest-api-items\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-query-builder-for-rest-api-items\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/articles\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Set Query Builder for REST API Items\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"name\":\"Help Center\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\",\"name\":\"Help Center\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"contentUrl\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"caption\":\"Help Center\"},\"image\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Set Query Builder for the REST API items \u2014 JetEngine | Crocoblock","description":"Learn how to query the CCT endpoint by different field types with the help of the JetEngine plugin functionality available for your WordPress website.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-query-builder-for-rest-api-items\/","og_locale":"en_US","og_type":"article","og_title":"How to Set Query Builder for the REST API items \u2014 JetEngine | Crocoblock","og_description":"Learn how to query the CCT endpoint by different field types with the help of the JetEngine plugin functionality available for your WordPress website.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-query-builder-for-rest-api-items\/","og_site_name":"Help Center","article_modified_time":"2023-07-28T13:40:35+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/Screenshot_39.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-query-builder-for-rest-api-items\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-query-builder-for-rest-api-items\/","name":"How to Set Query Builder for the REST API items \u2014 JetEngine | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2023-07-28T10:27:54+00:00","dateModified":"2023-07-28T13:40:35+00:00","description":"Learn how to query the CCT endpoint by different field types with the help of the JetEngine plugin functionality available for your WordPress website.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-query-builder-for-rest-api-items\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-query-builder-for-rest-api-items\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-query-builder-for-rest-api-items\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/crocoblock.com\/knowledge-base\/articles\/"},{"@type":"ListItem","position":3,"name":"How to Set Query Builder for REST API Items"}]},{"@type":"WebSite","@id":"https:\/\/crocoblock.com\/knowledge-base\/#website","url":"https:\/\/crocoblock.com\/knowledge-base\/","name":"Help Center","description":"","publisher":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization","name":"Help Center","url":"https:\/\/crocoblock.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","contentUrl":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","caption":"Help Center"},"image":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article\/41277"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/users\/9"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=41277"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=41277"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=41277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}