{"id":43495,"date":"2024-02-29T10:22:29","date_gmt":"2024-02-29T10:22:29","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=43495"},"modified":"2024-03-05T10:15:15","modified_gmt":"2024-03-05T10:15:15","slug":"configuring-rest-api-endpoint-for-custom-query","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/configuring-rest-api-endpoint-for-custom-query\/","title":{"rendered":"How to Configure the REST API Endpoint for Custom Query"},"content":{"rendered":"\n<p><a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/rest-api-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>REST API<\/strong><\/a> is a programming interface that allows you to create connections between your website and another website or app. With the <strong><a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/query-builder-overview\/#register-rest-api-endpoint\">Register Rest API Endpoint<\/a> <\/strong>option for the <em>JetEngine<\/em> <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/query-builder-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Query Builder<\/strong><\/a><strong> <\/strong>feature, you can transfer the queried data.<\/p>\n\n\n\n<p>As an example, we will create a Custom Content Type query to transfer queried events to another WordPress website.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"prepare-a-custom-content-type-on-the-main-website\">Prepare a Custom Content Type on the Main Website<\/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>On the main website, go to the <strong><em>WordPress Dashboard &gt; JetEngine &gt; <\/em><\/strong><a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/jetengine-dashboard-settings-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><em>JetEngine<\/em><\/strong><\/a> tab and make sure to enable the <strong>Custom Content Type <\/strong>toggle.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/enable-the-custom-content-type-module.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/enable-the-custom-content-type-module.webp\" alt=\"enable the custom content type module\" class=\"wp-image-43507\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/enable-the-custom-content-type-module.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/enable-the-custom-content-type-module-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/enable-the-custom-content-type-module-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/enable-the-custom-content-type-module-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/enable-the-custom-content-type-module-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/enable-the-custom-content-type-module-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Then, head to <strong><em>WordPress Dashboard &gt; JetEngine &gt; Custom Content Types <\/em><\/strong>and hit the \u201c<strong>Add New<\/strong>\u201d button or click to edit the created CCT, which items you want to transfer.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/create-or-edit-a-custom-content-type.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/create-or-edit-a-custom-content-type.webp\" alt=\"create or edit a custom content type\" class=\"wp-image-43510\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/create-or-edit-a-custom-content-type.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/create-or-edit-a-custom-content-type-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/create-or-edit-a-custom-content-type-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/create-or-edit-a-custom-content-type-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/create-or-edit-a-custom-content-type-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/create-or-edit-a-custom-content-type-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Such settings are required in the <strong>General Settings<\/strong> section: enter the <strong>Name<\/strong>, and the <strong>Slug <\/strong>will be filled automatically from the <strong>Name<\/strong> field. You can change the <strong>Slug<\/strong> while creating the CCT, but use only Latin letters here and ensure no spaces: use hyphens or underscores instead.<\/p>\n\n\n\n<p>Other settings are optional for transferring the CCT items via REST API. Read more about them in the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/custom-content-type\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Custom Content Type (CCT) Overview<\/strong><\/a>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/events-custom-content-type.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/events-custom-content-type.webp\" alt=\"events custom content type\" class=\"wp-image-43504\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/events-custom-content-type.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/events-custom-content-type-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/events-custom-content-type-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/events-custom-content-type-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/events-custom-content-type-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/events-custom-content-type-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>In the <strong>Fields <\/strong>settings tab, we added the following meta fields: the Name \u201cText\u201d field, Date \u201cDate\u201d field, and Image \u201cMedia\u201d field.<\/p>\n\n\n\n<p>The \u201cMedia\u201d field requires more attention.<\/p>\n\n\n<div class=\"note-banner d-flex border-bold border-jetsmartfilters rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z\" fill=\"#FA5450\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Warning<\/div><p class=\"m-0\">If you choose the \"Media ID\" <strong>Value format<\/strong> and retrieve the image via the REST API, a conflict may arise if an image with the same ID already exists on the secondary website. So, we recommend setting the \u201cMedia URL\u201d <strong>Value format<\/strong>.<\/p><\/div><\/div>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/media-URL-value-format.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/media-URL-value-format.webp\" alt=\"media URL value format\" class=\"wp-image-43501\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/media-URL-value-format.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/media-URL-value-format-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/media-URL-value-format-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/media-URL-value-format-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/media-URL-value-format-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/media-URL-value-format-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Adjust all desired settings to the CCT and press the \u201c<strong>Add\/Update Content Type<\/strong>\u201d button.<\/p>\n\n\n\n<p>Then, proceed to the CCT menu tab on the WordPress Dashboard and create several CCT items by hitting the \u201c<strong>Add New<\/strong>\u201d button and filling in the meta fields.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/cct-items-creation.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/cct-items-creation.webp\" alt=\"cct items creation\" class=\"wp-image-43496\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/cct-items-creation.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/cct-items-creation-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/cct-items-creation-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/cct-items-creation-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/cct-items-creation-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/cct-items-creation-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-a-query-on-the-main-website\">Create a Query on the Main Website<\/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 the <strong><em>WordPress Dashboard &gt; JetEngine &gt; Query Builder <\/em><\/strong>tab and hit the \u201c<strong>Add New<\/strong>\u201d button.<\/p>\n\n\n\n<p>In the <strong><a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/query-builder-overview\/#general-settings\">General Settings<\/a> <\/strong>section, enter the query <strong>Name<\/strong> and select the \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/query-builder-cct-query-type\/\" target=\"_blank\" rel=\"noreferrer noopener\">Custom Content Type Query<\/a>\u201d <strong>Query Type<\/strong>.\u00a0<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/create-a-custom-content-type-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/create-a-custom-content-type-query.webp\" alt=\"create a custom content type query\" class=\"wp-image-43509\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/create-a-custom-content-type-query.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/create-a-custom-content-type-query-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/create-a-custom-content-type-query-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/create-a-custom-content-type-query-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/create-a-custom-content-type-query-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/create-a-custom-content-type-query-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Then, enable the <strong>Register Rest API Endpoint<\/strong> toggle to unfold a section with more settings for the endpoint registration.<\/p>\n\n\n\n<p>A detailed description of all options can be found in the <strong><a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/query-builder-overview\/#register-rest-api-endpoint\">Register Rest API Endpoint<\/a> <\/strong>chapter.<\/p>\n\n\n\n<p>You can set suitable<strong> Endpoint Namespace<\/strong> and <strong>Endpoint Path<\/strong> to improve SEO for your WordPress website.<\/p>\n\n\n\n<p>The <strong>Restrict Access<\/strong> for the endpoint can be set as well. You can configure the public access or entry only for users with certain roles or capacities.<\/p>\n\n\n\n<p>You can adjust the <strong>Query Arguments <\/strong>to customize the content returned by a web server. For instance, we entered a \u201csort\u201d <strong>QUERY ARGUMENT NAME <\/strong>and \u201casc\u201d <strong>DEFAULT VALUE<\/strong> to sort items (events) by date from the soonest to the latest.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/Register-Rest-API-Endpoint-for-the-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/Register-Rest-API-Endpoint-for-the-query.webp\" alt=\"Register Rest API Endpoint for the query\" class=\"wp-image-43502\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/Register-Rest-API-Endpoint-for-the-query.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/Register-Rest-API-Endpoint-for-the-query-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/Register-Rest-API-Endpoint-for-the-query-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/Register-Rest-API-Endpoint-for-the-query-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/Register-Rest-API-Endpoint-for-the-query-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/Register-Rest-API-Endpoint-for-the-query-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>In the <strong>Content Types Query <\/strong>settings section, select the needed CCT from the <strong>From Content Type <\/strong>drop-down list.<\/p>\n\n\n\n<p>The registered arguments should be mapped to the query settings.<\/p>\n\n\n\n<p>In our case, we hit the \u201c<strong>Add new sorting parameter<\/strong>\u201d button in the <strong>Order &amp; Order By <\/strong>section. We set the <strong>Order By<\/strong> \u201cDate,\u201d the \u201cFrom lowest to highest (1, 2, 3; a, b, c)\u201d <strong>Order<\/strong>, and the \u201cDate\u201d <strong>Type<\/strong> to sort items (events) by date from the soonest to the latest.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/sorting-cct-items-by-date.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/sorting-cct-items-by-date.webp\" alt=\"sorting cct items by date\" class=\"wp-image-43497\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/sorting-cct-items-by-date.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/sorting-cct-items-by-date-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/sorting-cct-items-by-date-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/sorting-cct-items-by-date-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/sorting-cct-items-by-date-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/sorting-cct-items-by-date-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Adjust other query settings according to your needs and hit the \u201c<strong>Add\/Update Query<\/strong>\u201d button.<\/p>\n\n\n\n<p>Copy the <strong>Rest API Endpoint URL<\/strong> or <strong>Example of Rest API Endpoint URL with Query Arguments<\/strong> if you add query arguments to the endpoint.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/copy-the-rest-api-endpoint-url-with-query-arguments.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/copy-the-rest-api-endpoint-url-with-query-arguments.webp\" alt=\"copy the Rest API endpoint URL with query arguments\" class=\"wp-image-43511\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/copy-the-rest-api-endpoint-url-with-query-arguments.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/copy-the-rest-api-endpoint-url-with-query-arguments-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/copy-the-rest-api-endpoint-url-with-query-arguments-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/copy-the-rest-api-endpoint-url-with-query-arguments-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/copy-the-rest-api-endpoint-url-with-query-arguments-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/copy-the-rest-api-endpoint-url-with-query-arguments-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"add-the-rest-api-endpoint-url-to-the-second-website\">Add the REST API Endpoint URL to the Second Website<\/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>On the second website, follow the <strong><em>WordPress Dashboard &gt; JetEngine &gt; JetEngine <\/em><\/strong>path on the second website where you want to transfer the queried CCT items and turn on the <strong>Rest API Listings <\/strong>toggle. Press the \u201c<strong>Save<\/strong>\u201d button and wait until the page reloading is complete.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/Rest-API-Listings-module.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/Rest-API-Listings-module.webp\" alt=\"Rest API Listings module\" class=\"wp-image-43500\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/Rest-API-Listings-module.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/Rest-API-Listings-module-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/Rest-API-Listings-module-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/Rest-API-Listings-module-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/Rest-API-Listings-module-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/Rest-API-Listings-module-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>After that, the <strong>Rest API Endpoints <\/strong>tab will be available. Open it and click the \u201c<strong>+ New Endpoint<\/strong>\u201d button.<\/p>\n\n\n\n<p>Type the endpoint <strong>Name<\/strong> (optional), enter the copied URL into the <strong>API Endpoint URL<\/strong> field, the \u201c\/\u201d <strong>Items path<\/strong>,<strong> <\/strong>and set the <strong>Authorization <\/strong>if needed.<\/p>\n\n\n\n<p>All settings are described in the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/rest-api-overview\/#rest-api-module\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>REST API Module<\/strong><\/a> chapter.<\/p>\n\n\n\n<p>Then, hit the \u201c<strong>Send Request<\/strong>\u201d button to send a sample request to check the API endpoint connection and fetch available fields. You will obtain the \u201cConnected\u201d <strong>Status<\/strong> if all progress without issue.<\/p>\n\n\n\n<p>Finally, push the \u201c<strong>Save<\/strong>\u201d button.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/adding-a-REST-API-Endpoint-URL.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/adding-a-REST-API-Endpoint-URL.webp\" alt=\"adding a REST API Endpoint URL\" class=\"wp-image-43512\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/adding-a-REST-API-Endpoint-URL.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/adding-a-REST-API-Endpoint-URL-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/adding-a-REST-API-Endpoint-URL-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/adding-a-REST-API-Endpoint-URL-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/adding-a-REST-API-Endpoint-URL-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/adding-a-REST-API-Endpoint-URL-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-a-listing-template-for-the-rest-api-endpoint\">Create a Listing Template for the REST API 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>On the second website, head to <strong><em>WordPress Dashboard &gt; <\/em><\/strong><strong><em>JetEngine &gt; Listings <\/em><\/strong>and hit the \u201c<strong>Add New<\/strong>\u201d button.<\/p>\n\n\n\n<p>Select the \u201cREST API Endpoint\u201d <strong>Listing source<\/strong> and choose the recently added endpoint from the <strong>From API endpoint <\/strong>drop-down menu. Type the <strong>Listing item name <\/strong>(optional) and set one of the <strong>Listing views<\/strong> (it may be \u201cElementor,\u201d \u201cBlocks (Gutenberg),\u201d or \u201cBricks\u201d). For example, we chose the Elementor editor.<\/p>\n\n\n\n<p>Lastly, hit the \u201c<strong>Create Listing Item<\/strong>\u201d button.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/setup-listing-item-for-the-rest-api-endpoint.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/setup-listing-item-for-the-rest-api-endpoint.webp\" alt=\"setup listing item for the rest API endpoint\" class=\"wp-image-43499\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/setup-listing-item-for-the-rest-api-endpoint.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/setup-listing-item-for-the-rest-api-endpoint-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/setup-listing-item-for-the-rest-api-endpoint-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/setup-listing-item-for-the-rest-api-endpoint-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/setup-listing-item-for-the-rest-api-endpoint-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/setup-listing-item-for-the-rest-api-endpoint-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>On the editing page, place the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/dynamic-field-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Field<\/strong><\/a><strong> <\/strong>widget. Keep the \u201cPost\/Term\/User\/Object Data\u201d <strong>Source<\/strong>. In the <strong>Object Field<\/strong> drop-down menu,<strong> <\/strong>scroll down to the <strong>REST API <\/strong>section and select the needed meta field which data you want to display.<\/p>\n\n\n\n<p>First, we picked the \u201cname\u201d meta field.<\/p>\n\n\n\n<figure class=\"wp-block-image text-center size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"501\" height=\"906\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/REST-API-meta-fields.webp\" alt=\"REST API meta fields\" class=\"wp-image-43498\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/REST-API-meta-fields.webp 501w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/REST-API-meta-fields-166x300.webp 166w\" sizes=\"(max-width: 501px) 100vw, 501px\" \/><\/figure>\n\n\n\n<p>Then, we duplicated the widget and chose the \u201cdate\u201d meta field. For the \u201cDate\u201d meta field types, you can enable the <strong>Filter field output <\/strong>toggle and pick the \u201cFormat date\u201d <strong>Callback<\/strong> to customize the date format.<\/p>\n\n\n\n<p>Read about the <a href=\"https:\/\/wordpress.org\/documentation\/article\/customize-date-and-time-format\/#customizing-the-time-and-date-format\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><strong>Customizing the Time and Date Format<\/strong><\/a>.<\/p>\n\n\n\n<p>Learn more about the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/dynamic-field-widget-overview\/#filter-field-output-overview\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Field Callbacks<\/strong><\/a>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/format-date-callback-for-the-dynamic-field.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/format-date-callback-for-the-dynamic-field.webp\" alt=\"format date callback for the dynamic field\" class=\"wp-image-43505\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/format-date-callback-for-the-dynamic-field.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/format-date-callback-for-the-dynamic-field-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/format-date-callback-for-the-dynamic-field-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/format-date-callback-for-the-dynamic-field-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/format-date-callback-for-the-dynamic-field-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/format-date-callback-for-the-dynamic-field-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>The image can be displayed in two ways. The first is to place the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-dynamic-image-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Image<\/strong><\/a> widget and pick the needed \u201cMedia\u201d meta field (\u201cimage,\u201d in our case) from the <strong>REST API <\/strong>section as the <strong>Source<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/dynamic-image-widget.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/dynamic-image-widget.webp\" alt=\"dynamic image widget\" class=\"wp-image-43506\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/dynamic-image-widget.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/dynamic-image-widget-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/dynamic-image-widget-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/dynamic-image-widget-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/dynamic-image-widget-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/dynamic-image-widget-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>As the second way, for the <strong>Dynamic Field <\/strong>widget, we picked the \u201cimage\u201d meta field, enabled the <strong>Customize field output<\/strong> toggle, and entered \u201c&lt;img src=\u2018%s\u2019\/&gt;\u201d into the <strong>Field format <\/strong>textarea.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/customize-field-output.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/customize-field-output.webp\" alt=\"customize field output\" class=\"wp-image-43508\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/customize-field-output.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/customize-field-output-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/customize-field-output-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/customize-field-output-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/customize-field-output-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/customize-field-output-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Adjust other <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/listing-template-in-elementor-overview\/#listing-item-in-elementor\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Listing template<\/strong><\/a> settings and hit the \u201c<strong>Update<\/strong>\u201d button.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"check-the-result\">Check the Result<\/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>To place the listing, open the needed page in the Elementor, WordPress block, or Bricks editor, place the <strong>Listing Grid<\/strong> there, and pick the recently created <strong>LISTING<\/strong> from the drop-down menu.<\/p>\n\n\n\n<p>The events in our <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/listing-grid-block-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Listing Grid<\/strong><\/a> block are displayed in ascending order by dates.<\/p>\n\n\n\n<p>Configure the page and <strong>Listing Grid<\/strong> settings and hit the \u201c<strong>Publish\/Update<\/strong>\u201d button.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/listing-grid-with-transferred-events-on-the-page.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/listing-grid-with-transferred-events-on-the-page.webp\" alt=\"listing grid with transferred events on the page\" class=\"wp-image-43503\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/listing-grid-with-transferred-events-on-the-page.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/listing-grid-with-transferred-events-on-the-page-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/listing-grid-with-transferred-events-on-the-page-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/listing-grid-with-transferred-events-on-the-page-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/listing-grid-with-transferred-events-on-the-page-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/listing-grid-with-transferred-events-on-the-page-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<p>That\u2019s all. Now you know how to configure the REST API endpoint for custom queries and how to transfer the queried CCT items from one website to another with the <em>JetEngine<\/em> WordPress plugin.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From this tutorial, you will learn how to configure the REST API endpoint for custom queries and how to transfer the queried CCT items from one website to another with the JetEngine WordPress plugin.<\/p>\n","protected":false},"author":8,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[407],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Configure the REST API Endpoint for Custom Query \u2013 JetEngine | Crocoblock<\/title>\n<meta name=\"description\" content=\"From this tutorial, you will learn how to configure the REST API endpoint for custom queries and how to transfer the queried CCT items from one website to another with the JetEngine WordPress plugin.\" \/>\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\/configuring-rest-api-endpoint-for-custom-query\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Configure the REST API Endpoint for Custom Query \u2013 JetEngine | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"From this tutorial, you will learn how to configure the REST API endpoint for custom queries and how to transfer the queried CCT items from one website to another with the JetEngine WordPress plugin.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/configuring-rest-api-endpoint-for-custom-query\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-05T10:15:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/enable-the-custom-content-type-module.webp\" \/>\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\/configuring-rest-api-endpoint-for-custom-query\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/configuring-rest-api-endpoint-for-custom-query\/\",\"name\":\"How to Configure the REST API Endpoint for Custom Query \u2013 JetEngine | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2024-02-29T10:22:29+00:00\",\"dateModified\":\"2024-03-05T10:15:15+00:00\",\"description\":\"From this tutorial, you will learn how to configure the REST API endpoint for custom queries and how to transfer the queried CCT items from one website to another with the JetEngine WordPress plugin.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/configuring-rest-api-endpoint-for-custom-query\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/configuring-rest-api-endpoint-for-custom-query\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/configuring-rest-api-endpoint-for-custom-query\/#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 Configure the REST API Endpoint for Custom Query\"}]},{\"@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 Configure the REST API Endpoint for Custom Query \u2013 JetEngine | Crocoblock","description":"From this tutorial, you will learn how to configure the REST API endpoint for custom queries and how to transfer the queried CCT items from one website to another with the JetEngine WordPress plugin.","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\/configuring-rest-api-endpoint-for-custom-query\/","og_locale":"en_US","og_type":"article","og_title":"How to Configure the REST API Endpoint for Custom Query \u2013 JetEngine | Crocoblock","og_description":"From this tutorial, you will learn how to configure the REST API endpoint for custom queries and how to transfer the queried CCT items from one website to another with the JetEngine WordPress plugin.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/configuring-rest-api-endpoint-for-custom-query\/","og_site_name":"Help Center","article_modified_time":"2024-03-05T10:15:15+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/02\/enable-the-custom-content-type-module.webp"}],"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\/configuring-rest-api-endpoint-for-custom-query\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/configuring-rest-api-endpoint-for-custom-query\/","name":"How to Configure the REST API Endpoint for Custom Query \u2013 JetEngine | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2024-02-29T10:22:29+00:00","dateModified":"2024-03-05T10:15:15+00:00","description":"From this tutorial, you will learn how to configure the REST API endpoint for custom queries and how to transfer the queried CCT items from one website to another with the JetEngine WordPress plugin.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/configuring-rest-api-endpoint-for-custom-query\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetengine\/configuring-rest-api-endpoint-for-custom-query\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/configuring-rest-api-endpoint-for-custom-query\/#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 Configure the REST API Endpoint for Custom Query"}]},{"@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\/43495"}],"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\/8"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=43495"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=43495"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=43495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}