Title: API Integration
Last modified: October 20, 2022

---

# API Integration

 *  Resolved [hampalm1](https://wordpress.org/support/users/hampalm1/)
 * (@hampalm1)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/api-integration-15/)
 * Hi
    My site is a simple listings directory. Among other things I list holiday
   villas and the partner I work with updates me with prices and availability. They
   have no added an api to their site to send out or make these updates available
   to other websites automatically. They need me to integrte with their api but 
   I have no idea what I’m dfoing. I believe woocommerce has api integration built
   in but the guide refers to creating keys for other people to hook in to my website,
   so that implies to me that this is for me to share data with other sites as opposed
   to connecting to another sites api for them to share data with me. Can anyone
   help advise on this please ?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fapi-integration-15%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [seank123](https://wordpress.org/support/users/seank123/)
 * (@seank123)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/api-integration-15/#post-16122181)
 * You can add/edit products with the API – however you will need a mechanism to
   connect to the supplier API and send the data to yours.
 * Tools like [Zapier](https://zapier.com/), [Make](https://www.make.com/en) or 
   [N8N](https://n8n.io/) can do this without a huge amount of coding.
 * If you have a developer available N8N is a great option as you can install and
   use the open source version yourself. They also have a [Windows/Mac desktop app](https://docs.n8n.io/hosting/installation/desktop-app/)
   that you can use too.
 *  Thread Starter [hampalm1](https://wordpress.org/support/users/hampalm1/)
 * (@hampalm1)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/api-integration-15/#post-16122696)
 * Thank you so much for the advice but I am not a coder and have to find a way 
   to do this for free. I dont suppose there any guide that can guide me through
   copying and pasting code required to achieve this is there ?
 * Kind regards, Andrew
 *  [Saif](https://wordpress.org/support/users/babylon1999/)
 * (@babylon1999)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/api-integration-15/#post-16126520)
 * Hello [@hampalm1](https://wordpress.org/support/users/hampalm1/),
 * You can update a product using the following API call:
    `PUT /wp-json/wc/v3/products/
   <id>`
 * In python the setup should look something like this to update a price for example:
 *     ```
       from woocommerce import API
   
       wcapi = API(
           url="https://SiteURL.com",
           consumer_key="ck_######",
           consumer_secret="cs_#######",
           version="wc/v3"
       )
       data = {
           "regular_price": "24.54"
       }
   
       print(wcapi.put("products/794", data).json())
       ```
   
 * [Documentation](https://woocommerce.github.io/woocommerce-rest-api-docs/?python#update-a-product)
 * This is a fairly complex development topic. I’m going to leave it open for a 
   bit to see if anyone is able to chime in to help you out.
 * I can also recommend [the WooCommerce Developer Resources Portal](https://developer.woocommerce.com/)
   for resources on developing for WooCommerce.
 * You can also visit the [WooCommerce Facebook group](https://www.facebook.com/groups/advanced.woocommerce/)
   or the `#developers` channel of the [WooCommerce Community Slack](https://woocommerce.com/community-slack/).
   We’re lucky to have a great community of open-source developers for WooCommerce,
   and many of our developers hang out there, as well.
 * Cheers!
 *  Thread Starter [hampalm1](https://wordpress.org/support/users/hampalm1/)
 * (@hampalm1)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/api-integration-15/#post-16127687)
 * Thank you Saif
 * I am a complete layman but I’m not sure we are talking about the same thing. 
   My partner has added an api to their site for me to connect to which ensure any
   changes they make to holiday rentals that i list on my site are automatically
   updated on my site as well e.g. pricing and availability. I dont know if that
   means they push changes or i call them when I look at a calendar which gives 
   prices. I’m starting to think this is just going to be too complex for me but
   any input is appreciated. Thanks, Andrew
 *  [seank123](https://wordpress.org/support/users/seank123/)
 * (@seank123)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/api-integration-15/#post-16128011)
 * Sounds like they have an API available that you can access and retrieve the data
   you need.
 * To show a calendar and allow customers to pick date’s to retrieve prices is a
   pretty complex thing to create yourself. I’m currently setting up a site that
   will use N8N to update price and stock on normal products from a supplier API–
   that’s fairly easy to do. Personally I wouldn’t know where to start with a booking
   form!!
 * Do they have some form of embeddable widget that can be added? If not, then you’d
   need a developer to look at it for you!
 *  [xue28 (woo-hc)](https://wordpress.org/support/users/xue28/)
 * (@xue28)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/api-integration-15/#post-16130707)
 * Hi [@hampalm1](https://wordpress.org/support/users/hampalm1/)
 * In addition to what was mentioned above, these forums are meant for general support
   with the core functionality of WooCommerce itself. What you want to achieve is
   a bit complex and would require customization to do it. Since custom coding is
   outside our scope of support, I am leaving this thread open for a bit to see 
   if anyone can chime in to help you out.
 * For questions related to development and custom coding, your best bet is to ask
   on any of these channels for support. We’re lucky to have a great community of
   open-source developers for WooCommerce, and many of our developers hang out there,
   too.
 * – [WooCommerce Community Forum](https://wordpress.org/support/plugin/woocommerce/)
   –
   Hire a [WooCommerce Expert](https://woocommerce.com/experts/)
 * Hope this helps!
 *  Thread Starter [hampalm1](https://wordpress.org/support/users/hampalm1/)
 * (@hampalm1)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/api-integration-15/#post-16131103)
 * OK, thanks a lot
 * Kind regards
 * Andrew

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘API Integration’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [hampalm1](https://wordpress.org/support/users/hampalm1/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/api-integration-15/#post-16131103)
 * Status: resolved