<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>wordpress Archives | ZappySys Blog</title>
	<atom:link href="https://zappysys.com/blog/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>https://zappysys.com/blog/tag/wordpress/</link>
	<description>SSIS / ODBC Drivers / API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more</description>
	<lastBuildDate>Fri, 15 Jan 2021 13:48:25 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.4</generator>

<image>
	<url>https://zappysys.com/blog/wp-content/uploads/2023/01/cropped-zappysys-symbol-large-32x32.png</url>
	<title>wordpress Archives | ZappySys Blog</title>
	<link>https://zappysys.com/blog/tag/wordpress/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Read WordPress data using SSIS REST API Call</title>
		<link>https://zappysys.com/blog/read-wordpress-data-using-ssis-rest-api-call/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Sat, 11 May 2019 06:22:31 +0000</pubDate>
				<category><![CDATA[JSON File / REST API Driver]]></category>
		<category><![CDATA[SSIS JSON Source (File/REST)]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[ssis]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=6917</guid>

					<description><![CDATA[<p>Introduction In this post you will learn how to Read WordPress data using SSIS REST API Call (Drag and drop approach without any coding).  We will use SSIS JSON/ REST API Source to extract data from WordPress API. In this blog we will see how to get all WordPress Posts, Pages and Categories using JSON Source and [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/read-wordpress-data-using-ssis-rest-api-call/">Read WordPress data using SSIS REST API Call</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2019/05/WordPress_logo.png"><img decoding="async" class="alignleft wp-image-6919 " src="https://zappysys.com/blog/wp-content/uploads/2019/05/WordPress_logo-150x150.png" alt="WordPress" width="110" height="110" srcset="https://zappysys.com/blog/wp-content/uploads/2019/05/WordPress_logo-150x150.png 150w, https://zappysys.com/blog/wp-content/uploads/2019/05/WordPress_logo-300x300.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/05/WordPress_logo.png 500w" sizes="(max-width: 110px) 100vw, 110px" /></a>In this post you will learn how to Read WordPress data using SSIS REST API Call (Drag and drop approach without any coding).  We will use <a href="https://zappysys.com/products/ssis-powerpack/ssis-json-file-source/" target="_blank" rel="noopener">SSIS JSON/ REST API Source</a> to extract data from WordPress API. In this blog we will see how to get all WordPress Posts, Pages and Categories using JSON Source and load it into the SQL Server.</p>
<p>Now let&#8217;s look at step by step approach to call WordPress REST API.</p>
<h2></h2>
<h2>Prerequisite</h2>
<ol>
<li>First, you will need to have SSIS installed</li>
<li>Secondly, make sure to have SSDT</li>
<li>Thirdly, You have obtained WordPress account credential with read and write permission.</li>
<li>Finally, do not forget to install <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a></li>
</ol>
<h2>What is WordPress</h2>
<p>WordPress is a free and open-source content management system based on PHP &amp; MySQL. Features include a plugin architecture and a template system. It is most associated with blogging but supports other types of web content including more traditional mailing lists and forums, media galleries, and online stores.</p>
<h2>Read data from WordPress using SSIS JSON Source</h2>
<p>Let&#8217;s start with an example. We use SSIS JSON Source Task to make call to WordPress API, we will load WordPress Pages data to SQL Server.</p>
<h3>Get all Posts, Pages and Categories using WordPress API</h3>
<ol>
<li>First of All, Drag and drop Data Flow Task from SSIS Toolbox and double click it to edit.<img class="yoast-text-mark" /><a href="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png"><img loading="lazy" decoding="async" class="aligncenter wp-image-7934 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png" alt="Drag and Drop SSIS Data Flow Task from SSIS Toolbox" width="460" height="155" srcset="https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task.png 460w, https://zappysys.com/blog/wp-content/uploads/2019/09/ssis-drag-drop-data-flow-task-300x101.png 300w" sizes="(max-width: 460px) 100vw, 460px" /></a></li>
<li>Furthermore, Drag and Drop JSON Source(REST API and File) File Task from the SSIS Toolbox.<img class="yoast-text-mark" />
<div id="attachment_3766" style="width: 604px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3766" class="size-full wp-image-3766" src="https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin.png" alt="Drag and Drop JSON Source Component" width="594" height="268" srcset="https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin.png 594w, https://zappysys.com/blog/wp-content/uploads/2018/05/ssis-json-source-for-getting-basic-profile-from-linkedin-300x135.png 300w" sizes="(max-width: 594px) 100vw, 594px" /></a><p id="caption-attachment-3766" class="wp-caption-text">Drag and Drop JSON Source Component</p></div></li>
<li>Double click on that Component to Edit the Configurations. Select File path or web URL from the Access Mode drop-down.<br />
Enter Web URL like this to Get all <strong>Pages. </strong>Please refer to this link of <a href="https://developer.wordpress.org/rest-api/reference/" target="_blank" rel="noopener">WordPress API</a> for more information.<br />
<pre class="crayon-plain-tag">https://{{your-wordpress-domain}}/wp-json/wp/v2/pages?page=1&amp;per_page=100</pre>
To Get all <strong>Posts</strong><br />
<pre class="crayon-plain-tag">https://{{your-wordpress-domain}}/wp-json/wp/v2/posts?page=1&amp;per_page=100</pre>
To Get all <strong>Categories</strong><br />
<pre class="crayon-plain-tag">https://{{your-wordpress-domain}}/wp-json/wp/v2/categories?page=1&amp;per_page=100</pre>
Here, <strong>your-wordpress-domain </strong>is your WordPress site domain name (here we are using our zappysys.com wordpress site)<strong>.</strong></p>
<p><strong>* page</strong> is the index of the first item returned in the page of results.<br />
<strong>* per_page</strong> the maximum number of items that can be returned per page. Each API endpoint may have a different limit for the number of items returned, and these limits may change without notice. (For more See this <a href="https://developer.wordpress.org/rest-api/using-the-rest-api/pagination/" target="_blank" rel="noopener">WordPress API Documentation for Pagination</a>)</p>
<div id="attachment_6924" style="width: 704px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/05/ssis-wordpress-set-url-json-source.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6924" class="wp-image-6924 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/05/ssis-wordpress-set-url-json-source.png" alt="Set URL in JSON Source" width="694" height="724" srcset="https://zappysys.com/blog/wp-content/uploads/2019/05/ssis-wordpress-set-url-json-source.png 694w, https://zappysys.com/blog/wp-content/uploads/2019/05/ssis-wordpress-set-url-json-source-288x300.png 288w" sizes="(max-width: 694px) 100vw, 694px" /></a><p id="caption-attachment-6924" class="wp-caption-text">Set URL in JSON Source</p></div></li>
<li>Check Use Credentials Option and select a new ZS-HTTP Connection from the drop-down.</li>
<li>Configure new HTTP Connection for WordPress as below.<br />
Basically, you need to enter 3 pieces on the General tab (i.e. WordPress Site URL, UserName and Password)</p>
<div id="attachment_4330" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/07/ssis-json-source-http-jira-connection.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4330" class="wp-image-4330 size-medium_large" src="https://zappysys.com/blog/wp-content/uploads/2018/07/ssis-json-source-http-jira-connection-768x376.png" alt="JIRA Connection: HTTP Connection Manager" width="720" height="353" srcset="https://zappysys.com/blog/wp-content/uploads/2018/07/ssis-json-source-http-jira-connection-768x376.png 768w, https://zappysys.com/blog/wp-content/uploads/2018/07/ssis-json-source-http-jira-connection-300x147.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/07/ssis-json-source-http-jira-connection-1024x502.png 1024w, https://zappysys.com/blog/wp-content/uploads/2018/07/ssis-json-source-http-jira-connection.png 1496w" sizes="(max-width: 720px) 100vw, 720px" /></a><p id="caption-attachment-4330" class="wp-caption-text">WordPress Connection: HTTP Connection Manager</p></div></li>
<li>Likewise, we are going to set Pagination related configurations for WordPress API request. For example, if you want to read 100 records in each response and keep doing it until last page found then set <b>Page=1, Per_page=100 and Increment by 1</b>.
<div id="attachment_6926" style="width: 730px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/05/ssis-wordpress-pagination-json-source.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6926" class="wp-image-6926 size-medium_large" src="https://zappysys.com/blog/wp-content/uploads/2019/05/ssis-wordpress-pagination-json-source-768x786.png" alt="JSON Source – WordPress request Pagination Configurations Settings" width="720" height="737" srcset="https://zappysys.com/blog/wp-content/uploads/2019/05/ssis-wordpress-pagination-json-source-768x786.png 768w, https://zappysys.com/blog/wp-content/uploads/2019/05/ssis-wordpress-pagination-json-source-293x300.png 293w, https://zappysys.com/blog/wp-content/uploads/2019/05/ssis-wordpress-pagination-json-source.png 786w" sizes="(max-width: 720px) 100vw, 720px" /></a><p id="caption-attachment-6926" class="wp-caption-text">JSON Source – WordPress request Pagination Configurations Settings</p></div></li>
<li>Select the desire Filter and click on Preview button to see the response data.
<div id="attachment_6927" style="width: 710px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/05/ssis-wordpress-preview-json-source.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6927" class="wp-image-6927 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/05/ssis-wordpress-preview-json-source-e1557565619232.png" alt="JSON Source: Preview WordPress Data" width="700" height="468" /></a><p id="caption-attachment-6927" class="wp-caption-text">JSON Source: Preview WordPress Data</p></div></li>
<li>Finally, click OK to save JSON Source settings.</li>
<li>That’s it we are ready to load WordPress data to SQL Server.</li>
</ol>
<h3>Load WordPress data into SQL Server</h3>
<div class="content_block" id="custom_post_widget-5617"><p>ZappySys SSIS PowerPack makes it easy to load data from various sources such as REST, SOAP, JSON, XML, CSV or from other source into SQL Server, or PostgreSQL, or Amazon Redshift, or other  targets. The <strong>Upsert Destination</strong> component allows you to automatically insert new records and update existing ones based on key columns. Below are the detailed steps to configure it.</p>
<h3>Step 1: Add Upsert Destination to Data Flow</h3>
<ol>
<li>Drag and drop the <strong>Upsert Destination</strong> component from the SSIS Toolbox.</li>
<li>Connect your source component (e.g., JSON / REST / Other Source) to the Upsert Destination.</li>
</ol>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2017/08/ssis-data-flow-drag-drop-upsert-destination.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2017/08/ssis-data-flow-drag-drop-upsert-destination.png" /></a>
<p class="wp-caption-text">SSIS - Data Flow - Drang and Drop Upsert Destination Component</p>
</div>
<h3>Step 2: Configure Target Connection</h3>
<ol>
<li>Double-click the <strong>Upsert Destination</strong> component to open the configuration window.</li>
<li>Under <strong>Connection</strong>, select an existing target connection or click <strong>NEW</strong> to create a new connection.
<ul>
<li>Example: SQL Server, or PostgreSQL, or Amazon Redshift.</li>
</ul>
</li>
</ol>
<h3>Step 3: Select or Create Target Table</h3>
<ol>
<li>In the <strong>Target Table</strong> dropdown, select the table where you want to load data.</li>
<li>Optionally, click <strong>NEW</strong> to create a new table based on the source columns.</li>
</ol>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-configuration.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-configuration.png" /></a>
<p class="wp-caption-text">Configure SSIS Upsert Destination Connection - Loading data (REST / SOAP / JSON / XML /CSV) into SQL Server or other target using SSIS</p>
</div>
<h3>Step 4: Map Columns</h3>
<ol>
<li>Go to the <strong>Mappings</strong> tab.</li>
<li>Click <strong>Auto Map</strong> to map source columns to target columns by name.</li>
<li>Ensure you <strong>check the Primary key column(s)</strong> that will determine whether a record is inserted or updated.</li>
<li>You can manually adjust the mappings if necessary.</li>
</ol>
 <div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-key.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-key.png" /></a>
<p class="wp-caption-text">SSIS Upsert Destination - Columns Mappings</p>
</div>
<h3>Step 5: Save Settings</h3>
<ul>
<li>Click <strong>OK</strong> to save the Upsert Destination configuration.</li>
</ul>
<h3>Step 6: Optional: Add Logging or Analysis</h3>
<ul>
<li>You may add extra destination components to log the number of inserted vs. updated records for monitoring or auditing purposes.</li>
</ul>
<h3>Step 7: Execute the Package</h3>
<ul>
<li>Run your SSIS package and verify that the data is correctly inserted and updated in the target table.</li>
</ul>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2018/12/ssis-upsert-destination-execute.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2018/12/ssis-upsert-destination-execute.png" /></a>
<p class="wp-caption-text">SSIS Upsert Destination Execution</p>
</div></div>
<h2><span id="Conclusion">Conclusion</span></h2>
<p>In this post you have seen how easy it is to Read WordPress data using SSIS REST API Call in few clicks. We used <a href="https://zappysys.com/products/ssis-powerpack/ssis-json-file-source/" target="_blank" rel="noopener">JSON Source Component</a> to call WordPress REST API and load data into SQL server. You can <a href="https://zappysys.com/products/ssis-powerpack/">download SSIS PowerPack here</a> to try many other scenarios not discussed in this blog along with 70+ other components.</p>
<h2><span id="References">References</span></h2>
<p>Finally, you can use the following links for more information about the use of WordPress REST API with our tools:</p>
<ul>
<li><a href="https://zappysys.com/products/ssis-powerpack/ssis-json-file-source/" target="_blank" rel="noopener">JSON Source</a>, you can also find <a href="https://youtu.be/t4fSghbSZLo" target="_blank" rel="noopener">Tutorial Video</a> here.</li>
<li><strong>Help File:</strong> Documentation of <a href="https://zappysys.com/onlinehelp/ssis-powerpack/index.htm#page=json-source.htm" target="_blank" rel="noopener">SSIS Json Source</a></li>
<li><a href="https://developer.wordpress.org/rest-api/reference/" target="_blank" rel="noopener">WordPress API</a></li>
<li><a href="https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/" target="_blank" rel="noopener">WP API Authentication</a></li>
<li><a href="https://developer.wordpress.org/rest-api/using-the-rest-api/pagination/" target="_blank" rel="noopener">WP API Pagination</a></li>
</ul>
<p>The post <a href="https://zappysys.com/blog/read-wordpress-data-using-ssis-rest-api-call/">Read WordPress data using SSIS REST API Call</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Write/Read WordPress data using SSIS and REST API</title>
		<link>https://zappysys.com/blog/write-read-wordpress-data-using-ssis-rest-api/</link>
		
		<dc:creator><![CDATA[ZappySys Team]]></dc:creator>
		<pubDate>Fri, 26 Apr 2019 23:03:36 +0000</pubDate>
				<category><![CDATA[REST API Integration]]></category>
		<category><![CDATA[SSIS JSON Generator Transform]]></category>
		<category><![CDATA[SSIS JSON Source (File/REST)]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[ssis]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=6864</guid>

					<description><![CDATA[<p>Introduction In this new article, we will show how to read WordPress data using REST API. REST API is a very popular software architectural style for Web Services. SSIS is a very popular ETL software used to integrate almost any data (SQL Server, Oracle, Excel, DB2, CSV files, Big Data, Facebook, Gmail, etc). Requirements For this example, we will use a [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/write-read-wordpress-data-using-ssis-rest-api/">Write/Read WordPress data using SSIS and REST API</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p>In this new article, we will show how to read WordPress data using REST API. REST API is a very popular software architectural style for Web Services.<br />
SSIS is a very popular ETL software used to integrate almost any data (SQL Server, Oracle, <a href="https://zappysys.com/products/ssis-powerpack/ssis-excel-file-source/">Excel</a>, DB2, <a href="https://zappysys.com/products/ssis-powerpack/ssis-csv-file-source-flat-file-web-api/">CSV files</a>, Big Data, <a href="https://zappysys.com/blog/get-data-from-facebook-in-ssis-using-rest-api/">Facebook</a>, <a href="https://zappysys.com/blog/calling-gmail-rest-api-using-ssis-read-emails/">Gmail</a>, etc).</p>
<h2>Requirements</h2>
<p>For this example, we will use a popular plug-in. The name is ZappySys PowerPack for SSIS which includes some nice generic connectors to REST API. You can download it here:</p>
<ul>
<li><a href="https://zappysys.com/products/ssis-powerpack/download/">ZappySys PowerPack for SSIS Installer</a></li>
<li><a href="https://docs.microsoft.com/en-us/sql/ssdt/download-sql-server-data-tools-ssdt?view=sql-server-2017">SSDT for Business Intelligence</a></li>
</ul>
<h2>Getting started</h2>
<p>We will be using this <a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a> component to make things work:<br />
<div class="su-table su-table-alternate">
<table width="300">
<tbody>
<tr style="line-height: 0px">
<td width="50px"><a href="https://zappysys.com/products/ssis-powerpack/ssis-rest-api-web-service-task/" target="_blank" rel="noopener"><br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-3074" src="https://zappysys.com/images/SSIS-PowerPack/ssis-rest-api-web-service-task.png" alt="SSIS REST API Web Service Task" width="50" height="50" /></a></td>
<td style="vertical-align: middle"><a href="https://zappysys.com/products/ssis-powerpack/ssis-rest-api-web-service-task/" target="_blank" rel="noopener">SSIS REST API Web Service Task<br />
</a></td>
</tr>
<tr style="line-height: 0px">
<td style="height: 58px" width="50px"><a href="https://zappysys.com/products/ssis-powerpack/ssis-json-file-source/" target="_blank" rel="noopener"><br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-3074" src="https://zappysys.com/images/SSIS-PowerPack/SSIS-Json-Source-Adapter.png" alt="JSON Source (File, REST API, OData Connector)" width="50" height="50" /></a></td>
<td style="vertical-align: middle;height: 58px"><a href="https://zappysys.com/products/ssis-powerpack/ssis-json-file-source/" target="_blank" rel="noopener">SSIS JSON Source (File, REST API, OData Connector)</a></td>
</tr>
<tr style="line-height: 0px">
<td style="height: 58px" width="50px"><a href="https://zappysys.com/products/ssis-powerpack/ssis-json-file-destination-connector/" target="_blank" rel="noopener"><br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-3074" src="https://zappysys.com/onlinehelp/ssis-powerpack/scr/images/json-file-destination/ssis-json-file-destination.png" alt="SSIS JSON File Destination (Create JSON File)" width="50" height="50" /></a></td>
<td style="vertical-align: middle;height: 58px"><a href="https://zappysys.com/products/ssis-powerpack/ssis-json-file-destination-connector/" target="_blank" rel="noopener">SSIS JSON File Destination (Create JSON File)<br />
</a></td>
</tr>
</tbody>
</table>
</div>
<h2>Read WordPress data using SSIS with REST API</h2>
<p>REST API is also the name of one of the ZappySys components. These tools can connect to thousands of REST API Servers. In this example, we will connect to WordPress.</p>
<ol>
<li>First, drag and drop the <a href="https://zappysys.com/products/ssis-powerpack/ssis-rest-api-web-service-task/"><strong>REST API</strong></a> task to the design pane.</li>
<li>Secondly, write the following URL in the REST API task URL:<a href="http://demo.wp-api.org/wp-json/wp/v2/pages"><br />
</a><br />
<pre class="crayon-plain-tag">http://demo.wp-api.org/wp-json/wp/v2/pages</pre>
</li>
<li>After that, press <strong>Test Request/Response.</strong></li>
<li>That URL shows the page&#8217;s information in WordPress. This is a demo API. For more information about the WordPress links, check <a href="https://developer.wordpress.org/rest-api/reference/">here</a>.
<div id="attachment_6874" style="width: 696px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-rest-api-wordpress.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6874" class="size-full wp-image-6874" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-rest-api-wordpress.png" alt="ssis-wordpress" width="686" height="613" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-rest-api-wordpress.png 686w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-rest-api-wordpress-300x268.png 300w" sizes="(max-width: 686px) 100vw, 686px" /></a><p id="caption-attachment-6874" class="wp-caption-text">Call WordPress in SSIS</p></div></li>
<li>Next, you can also check the Tags, Comments, Categories, Posts, Taxonomies, Media. Here you have some examples:
<ul>
<li>To get the tags in WordPress, use this URL:<br />
<pre class="crayon-plain-tag">http://demo.wp-api.org/wp-json/wp/v2/tags</pre>
</li>
<li>In order to read comments in WordPress using SSIS and REST API, use this URL:<br />
<pre class="crayon-plain-tag">http://demo.wp-api.org/wp-json/wp/v2/comments</pre>
</li>
<li>For the categories, use this URL to read WordPress data using SSIS:<br />
<pre class="crayon-plain-tag">http://demo.wp-api.org/wp-json/wp/v2/categories</pre>
</li>
</ul>
</li>
<li>In addition, for your blog, you need to add /wp-json/wp/v2/ and pages, posts or tags in your WordPress URL.</li>
<li>Finally, if you want to save the results, in Response Settings, enable save response content and select the option save to file, and specify a file path:
<div id="attachment_6877" style="width: 696px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-restp-api-wordpress-save-json.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6877" class="wp-image-6877 size-full" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-restp-api-wordpress-save-json.png" alt="Wordpress response into file" width="686" height="654" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-restp-api-wordpress-save-json.png 686w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-restp-api-wordpress-save-json-300x286.png 300w" sizes="(max-width: 686px) 100vw, 686px" /></a><p id="caption-attachment-6877" class="wp-caption-text">Save response WordPress API</p></div></li>
</ol>
<h2>How to read WordPress data using SSIS and store it into a SQL Server database</h2>
<p>In the next example, we will use the <a href="https://zappysys.com/products/ssis-powerpack/ssis-json-file-source/">JSON Source</a> component. This component is similar to the REST API, but this is used in the Data Flow to save the REST API results in any destination of your preference (SQL Server, PostgreSQL, MongoDB, etc). Also, this example will read WordPress data using SSIS and store it into a SQL Server database.</p>
<ol>
<li>First of all, in the Control flow, drag and drop the Data Flow:
<div style="width: 470px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="size-full" src="https://zappysys.com/onlinehelp/ssis-powerpack/scr/images/drag-and-drop-data-flow-task.png" alt="Insert Data Flow" width="460" height="155" /><p class="wp-caption-text">Data Flow Task</p></div></li>
<li>Drag and drop the JSON Source in the Data flow with this configuration:
<div id="attachment_6880" style="width: 836px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-json-source-get-rest-api-wordpress.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6880" class="size-full wp-image-6880" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-json-source-get-rest-api-wordpress.png" alt="SSIS wordpress data" width="826" height="733" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-json-source-get-rest-api-wordpress.png 826w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-json-source-get-rest-api-wordpress-300x266.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-json-source-get-rest-api-wordpress-768x682.png 768w" sizes="(max-width: 826px) 100vw, 826px" /></a><p id="caption-attachment-6880" class="wp-caption-text">JSON Source to WordPress API</p></div></li>
<li>Finally, you can save to an OLEDB Destination to save into a SQL Database:
<div id="attachment_6882" style="width: 834px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-api-to-sql-server.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6882" class="size-full wp-image-6882" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-api-to-sql-server.png" alt="From WordPress into SQL Server" width="824" height="718" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-api-to-sql-server.png 824w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-api-to-sql-server-300x261.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-api-to-sql-server-768x669.png 768w" sizes="(max-width: 824px) 100vw, 824px" /></a><p id="caption-attachment-6882" class="wp-caption-text">Store WordPress into SQL Server</p></div></li>
</ol>
<h2>How to read WordPress data using SSIS and modify the JSON structure</h2>
<p>Sometimes we need to modify the WordPress JSON output to a custom output in SSIS. We will now use the JSON Generator Transform this time, which is a very powerful tool for this purpose.</p>
<ol>
<li>First of all, we will use the JSON Source connecting to the following<br />
<pre class="crayon-plain-tag">URL: http://demo.wp-api.org/wp-json/wp/v2/categories</pre>
</li>
<li>Secondly, we need to convert the JSON output to the following format:<br />
<pre class="crayon-plain-tag">{
   "id" : 
     {
         "count" : 1474359596826126768,
         "description" : 
          {
            "link" : "xxx"
          }
    }
}</pre>
</li>
<li>Next, we will add an element first:
<div id="attachment_6885" style="width: 744px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-add-static-value.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6885" class="size-full wp-image-6885" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-add-static-value.png" alt="Add custom JSON in SSIS" width="734" height="326" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-add-static-value.png 734w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-add-static-value-300x133.png 300w" sizes="(max-width: 734px) 100vw, 734px" /></a><p id="caption-attachment-6885" class="wp-caption-text">SSIS WordPress API</p></div></li>
<li>Also, we will select the id attribute:
<div id="attachment_6942" style="width: 405px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-id-add-attribute.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6942" class="size-full wp-image-6942" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-id-add-attribute.png" alt="SSIS id JSON" width="395" height="438" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-id-add-attribute.png 395w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-id-add-attribute-271x300.png 271w" sizes="(max-width: 395px) 100vw, 395px" /></a><p id="caption-attachment-6942" class="wp-caption-text">id attributes SSIS</p></div></li>
<li>In addition, we will add a static element to the id:
<div id="attachment_6944" style="width: 743px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-json-mapping-add-element.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6944" class="size-full wp-image-6944" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-json-mapping-add-element.png" alt="Increment an element in JSON with SSIS" width="733" height="267" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-json-mapping-add-element.png 733w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-json-mapping-add-element-300x109.png 300w" sizes="(max-width: 733px) 100vw, 733px" /></a><p id="caption-attachment-6944" class="wp-caption-text">Add JSON element</p></div></li>
<li>Furthermore, we will add the count element.
<div id="attachment_6943" style="width: 405px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-count.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6943" class="size-full wp-image-6943" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-count.png" alt="SSIS generate JOSN" width="395" height="438" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-count.png 395w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-count-271x300.png 271w" sizes="(max-width: 395px) 100vw, 395px" /></a><p id="caption-attachment-6943" class="wp-caption-text">Add element in JSON with SSIS</p></div></li>
<li>Finally, repeat the same process for the description and link. The JSON structure will be the following:</li>
</ol>
<h2>How to read WordPress data using SSIS and use pagination</h2>
<p>If it is a lot of data in REST API, pagination allows showing the results in pages. Let&#8217;s take a look at it.</p>
<ol>
<li>First of all, we will use page 2. To do it, we will use the following URL in the JSON Source task in the data flow:<br />
<pre class="crayon-plain-tag">http://demo.wp-api.org/wp-json/wp/v2/posts?per_page=2</pre>
<div id="attachment_6947" style="width: 836px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-api-pagination.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6947" class="size-full wp-image-6947" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-api-pagination.png" alt="Wordpress Pagination SSIS" width="826" height="733" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-api-pagination.png 826w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-api-pagination-300x266.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-api-pagination-768x682.png 768w" sizes="(max-width: 826px) 100vw, 826px" /></a><p id="caption-attachment-6947" class="wp-caption-text">SSIS URL pagination REST API</p></div></li>
<li>Secondly, there is a pagination tab that can be used to get the data using pagination. For more information about pagination, refer to our ZappySys <a href="https://zappysys.com/blog/ssis-rest-api-looping-until-no-more-pages-found/">Pagination article related</a>.
<div id="attachment_6949" style="width: 836px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-per-page-pagination-wordpress.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6949" class="size-full wp-image-6949" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-per-page-pagination-wordpress.png" alt="Pagination handled in SSIS for WordPress" width="826" height="733" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-per-page-pagination-wordpress.png 826w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-per-page-pagination-wordpress-300x266.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-per-page-pagination-wordpress-768x682.png 768w" sizes="(max-width: 826px) 100vw, 826px" /></a><p id="caption-attachment-6949" class="wp-caption-text">SSIS pagination in SSIS</p></div></li>
</ol>
<h2>How to write WordPress data using SSIS</h2>
<ol>
<li>In order to write WordPress data using SSIS, we will use the REST API task with the following URL:<br />
<pre class="crayon-plain-tag">POST http://demo.wp-api.org/wp-json/wp/v2/posts/</pre>
</li>
<li>Secondly, we have the post with id equal to 2 and we will use the body request as follows:<a href="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-write-data.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-6951" src="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-write-data.png" alt="" width="800" height="654" srcset="https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-write-data.png 800w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-write-data-300x245.png 300w, https://zappysys.com/blog/wp-content/uploads/2019/04/ssis-wordpress-write-data-768x628.png 768w" sizes="(max-width: 800px) 100vw, 800px" /></a></li>
</ol>
<h2>Conclusion</h2>
<p>To conclude, in this article, we learned how to write and read WordPress data using SSIS. In addition, we learned also how to get pagination and how to change the format of the JSON results. If you want to try it yourself, do not hesitate to <a href="https://zappysys.com/products/ssis-powerpack/download/">download ZappySys PowerPack</a>!</p>
<h2>References</h2>
<p>Finally, for more information about how to read WordPress Data using SSIS, refer to these links:</p>
<ul>
<li><a href="https://developer.wordpress.org/rest-api/reference/">REST API Handbook</a></li>
<li><a href="https://www.youtube.com/watch?v=rGObWtjxGBc&amp;t=296s">WordPress REST API Tutorial (Real Examples)</a></li>
</ul>
<p>The post <a href="https://zappysys.com/blog/write-read-wordpress-data-using-ssis-rest-api/">Write/Read WordPress data using SSIS and REST API</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
