Quantcast
Channel: API - Forum | Webflow

API call to update live price for text element

$
0
0

Hey, I am looking to call an external API for live prices. To be specific - I’d like to have a text element that updates Bitcoin’s live price. For example:

const https = require('https');

var options = {
  "method": "GET",
  "hostname": "rest.coinapi.io",
  "path": "/v1/exchangerate/BTC/USD",
  "headers": {'X-CoinAPI-Key': '73034021-THIS-IS-SAMPLE-KEY'}
};

var request = https.request(options, function (response) {
  var chunks = [];
  response.on("data", function (chunk) {
    chunks.push(chunk);
  });
});

request.end();

This API call would return a JSON structured like this:

{
  "time": "2017-08-09T14:31:18.3150000Z",
  "asset_id_base": "BTC",
  "asset_id_quote": "USD",
  "rate": 3260.3514321215056208129867667
}

Is there a way to display the rate as a text element in webflow? I’ve been searching for a solution for a while. If anybody knows a shortcut or can provide me with a learning material I would really appreciate it.

1 post - 1 participant

Read full topic


Best solution for custom CMS and Client Portal?

$
0
0

Hey guys.

Got a client (venture capitalists) who wants to build a custom website (static site, show and tell + few case studies). They are planning to scale the website at a later stage, and add a portal for their clients (private/password secured pages that contain confidential information and contracts and a few functionalities).

So my solution was:

  1. Webflow for front-end (always!)
  2. Export and use Pinegrow for a custom CMS on top of that
  3. Create the portal on a subdomain, and from here on we can use any option to build it (WordPess?, Webflow Export +Custom coding and API integration if possible, or any other tool out there).

So my questions are:

  1. Has anyone here built a site that has a portal? And what did you use?
  2. Has anyone tried Pinegrow? Any feedback? Or is there a better tool to build a CMS on top of a Webflow website (without having to ruin/change the front-end)
  3. Any recommendations for a portal API that can be easily integrated with a Webflow site (no code, or very low coding required). That way I might be able to build the portal in Webflow too.

PS: Exporting and hosting outside of Webflow is a must, because the client does not want to risk running into any limitations whenever they want to scale up or add more subdomains.

Any help/tips is appreciated.
Cheers!

3 posts - 2 participants

Read full topic

API Not Returning All Item Fields/Data

$
0
0

Hi All!
I have written a few methods to query items/collections via the API. In the past few days I have added a few fields to a collection. However when I query via the API for items in the collection, I am not seeing these new fields. Actually there are many fields I am not seeing via the API, and these fields have been in this collection for quite a while. I first thought maybe it was not returning fields that didn’t have data associated with them, but the fields do have data and still not seeing them via the API. I can clearly see all these fields when I log in directly to the frontend CMS.

Has anybody experienced this before and has any helpful info?

Thanks in advance for your help!

1 post - 1 participant

Read full topic

Transfer Image with API

$
0
0

Good Day!

As topic, I would like to know if it is able to transfer Image(s) using API from a Webflow named ABC site to another Webflow named DEF site but into a selected existing image or field in an Item. For Eg:

Webflow ABC… … … … … … … … … … .Webflow DEF.
Item named A1… … … … … … … … … … Item named B1.
-Image A1 >> Transfer/Rewrite. >> -Image A1
-Field ABC… … … … … … … … … … … .-Field DEF (Data remain same in Webflow DEF)

I understand that the existing Import Collection items will created a new item, but can’t let me to rewrite selected existing image or field in an Item.

So is there a way to Transfer Image with API(or other way) from a webflow site to another webflow site but into a selected existing image or field in an Item?

Regards,
Kei

1 post - 1 participant

Read full topic

Resize Images through Webflow API [Custom script ready]

$
0
0

Hey all :slight_smile:

Last week I’ve been working on my company site - https://voucherify.io

to make it a little bit faster. It turned out, that most of our thumbnail images were full fat .PNGs, which aren’t efficent enough. We decided to change them for JPGs.

Programatically :slight_smile:

We’ve downloaded each image, resized it, and then put it back online.

See the repo below for the app.

Feel free to fork the code or point out any bug :slight_smile:

1 post - 1 participant

Read full topic

Cannot update Multi-Image field via the API

$
0
0

Hi,

I am having a lot of trouble updating a Multi-Image field via the API. Whenever I try to update it I get the old values back. I am updating the CMS items in a batch job, when I get back the “fileId” for each image I record it, then I don’t need to send it down next time if it hasn’t changed.

For example, if I do
GET https://api.webflow.com/collections/5d6f1bc62fd62f2e0a2133c1/items/5ec740f79ad4671fcae81a33
and it returns
…, “gallery”: , …
Then I do
PUT https://api.webflow.com/collections/5d6f1bc62fd62f2e0a2133c1/items/5ec740f79ad4671fcae81a33
…, “gallery”: [“https://syndex--c.ap4.content.force.com/sfc/dist/version/download/?oid=00D900000010Lv4\u0026ids=0686F00000NaN2s\u0026d=%2Fa%2F6F000000YkP8%2FKRSG7nTV4iZhibORwfb2Lrp9xBmPNn9IR5Ou62y6rvA\u0026asPdf=false",“https://syndex--c.ap4.content.force.com/sfc/dist/version/download/?oid=00D900000010Lv4\u0026ids=0686F00000NaMLo\u0026d=%2Fa%2F6F000000YkNW%2FzcEpAijrw0PXqnKhs0s.iJATRTAFb8WDOOA0NUH029Q\u0026asPdf=false”,"https://syndex--c.ap4.content.force.com/sfc/dist/version/download/?oid=00D900000010Lv4\u0026ids=0686F00000Na810\u0026d=%2Fa%2F6F000000Yk9H%2FSCh.6eSuPFv6cVa0VhW1KyVCRCgddFbFlyda30ETUVM\u0026asPdf=false”], …
Then I get back:
…, gallery: , …

It seems to work correctly when I create the records.

What am I doing wrong?

1 post - 1 participant

Read full topic

API not accepting fields that can be found in Webflow

$
0
0

I am having this weird issue where the API is returning the following error, even though the fields are in webflow.

"msg": "Validation Failure",
"code": 400,
"name": "ValidationError",
"path": "/collections/5ec30089e5ad983217e86c24/items",
"err": "ValidationError: Validation Failure",
"problems": [
    "Field 'url': Field not described in schema",
    "Field 'longitude': Field not described in schema",
    "Field 'latitude': Field not described in schema"
],
"problem_data": [
    {
        "slug": "url",
        "msg": "Field not described in schema"
    },
    {
        "slug": "longitude",
        "msg": "Field not described in schema"
    },
    {
        "slug": "latitude",
        "msg": "Field not described in schema"
    }
],

The request I’m sending to Webflow:
{
“fields”:{
“name”:“A Place”,
“slug”:“a-place”,
“type”:“house”,
“address-line-1”:“19 Forster Crescent”,
“address-line-2”:"",
“suburb”:“YARRALUMLA”,
“state”:“ACT”,
“postcode”:“2600”,
“country”:“AUSTRALIA”,
“url”:“houses.realestate.com”,
“longitude”:149.117685,
“latitude”:-35.303123,
“_archived”:false,
“_draft”:false
}
}

I’m so stumped as to what to do. I’ve tried deleting them and using string instead of url. I’ve tried republishing them. I’ve tried pulling them on the Get Collection API (they don’t appear).

2 posts - 2 participants

Read full topic

Using info within Purchased Items ecommerce API string in Zapier?

$
0
0

I’m trying to connect my Webflow ecommerce orders to the ConvertKit Purchases API using Zapier, but I can’t figure out how to break apart the info in the ‘Purchased Items’ string to be useful.

I’m trying to get this info for each product within an order, but the way Webflow sends order info to the API is making this nearly impossible.

I’ve been told I need to use Webhooks and the Zapier Formatter as part of the process, but I have no idea what I’m supposed to be doing with these tools in order to get the information I need.

Has anyone else had success with this and can advise how I can get to a point where the line-items within the ‘Purchased Items’ string are available for me to select as data fields in Zapier?

1 post - 1 participant

Read full topic


Missing API Query & Unfulfilled Status Purpose

$
0
0

Hi
I am on the halfway of the webflow integration.
Can anyone please check the following query:

Whenever I create a new order at WebFlow account, my order status is displayed as unfulfilled

Question here is what is the purpose of this API, using this API to “unfulfilled” an order which is already “unfulfilled” doesn’t make any sense.
using the reference API https://developers.webflow.com/#unfulfill-order

1). What is the actually meaning here of “unfulfilled”
2). Is there API to cancel an order.

Thanks
Sumit Khunger

2 posts - 2 participants

Read full topic

Order API Date Filter

$
0
0

Hi community,

Can anyone please check the following query:

Is there any way to fetch the orders between timestamps, suppose I want to fetch the since March 2020 to till now.

Imagine I have thousands of orders and I only want to fetch order for the last 2 days. If I use the following API, I will have to first fetch all orders then will be filtering these orders based on the dates. That doesn’t sound good thing
https://developers.webflow.com/#get-all-orders

Thanks
Sumit Khunger

2 posts - 2 participants

Read full topic

Member ID CMS Collection Filter

$
0
0

Hello all,

I am setting up an online course using Webflow and Memberstack.

I’m hoping to have interactive tables, which members can fill in and refer back to at later stages. Member’s inputted data will be stored in AirTable and relayed back to Webflow CMS via Zapier.

Each member has their own unique Member ID, Webflow Members Collection Item and Dashboard page.

The course itself is its own CMS Collection, with each step of the course having its own collection item.

The problem I’m having is showing the members their unique inputted data, within the course collection. This is easily achievable on their own personal dashboard, filled out with fields from their own CMS Item. BUT I want their information to be displayed within the course itself, which has its own CMS Collection page.

Can I reference a Member’s CMS Item within my Course CMS Collection Page, listing their unique item fields, filtering that collection list based on the member’s unique member ID? Will this require custom code?

All solutions welcome!

Many thanks,
George

1 post - 1 participant

Read full topic

Zapier error - airtable to webflow cms

$
0
0

I’m getting an error - ValidationError: Validation Failure - when I’m trying to pass data from Airtable to the Webflow CMS.

Is there any doc anywhere about what data / format can be passed? Or any other help, struggling to find info online.

Thank you

Matt

2 posts - 2 participants

Read full topic

Using Integromat to batch update multi-reference items - Error: 400 invalid request body

$
0
0

Hi,

I’ve set up an automation using Integromat to update a multi-reference item field in a CMS collection based on a rollup of item IDs of each of the items I want to use as multi-references in Airtable. (Hard one to explain online - please ask me to clarify if this isn’t clear).

I’m using the PATCH method on a custom HTTP request.

The response returned is “The operation failed with an error. [400] ValidationError: Invalid request body” in Integromat, but it works perfectly on Postman, so I’m struggling to debug. I think I’m using the right syntax.

I included the name, slug, archived and draft fields after reading on here that they are required in the request body.

Integromat support didn’t seem to know what the issue was.

Here’s the body I’m trying to send (the rollups are for each of the multi-ref fields I want to update).

Can anyone help?

Thanks in advance!
Will

1 post - 1 participant

Read full topic

How can I add option cms fields using nodejs webflow API

$
0
0

How can I update fields in option using API- nodejs.
I am unable to add values to it(tag) when I publish other values are updating fine. I am trying to use option for filtering. I looked into multi reference but it seems like it is only letting me import from another collection but I want to populate it with my script(updates every min from another api) containing tags for every item. I am trying to filter by tags but can’t find any reference even after long search and tries. It’s like you can’t but still want to try official forums one last time for help

code:-
webflow.createItem(collectionId:xxxxx,
fields:{name:name,
slug:id,
title:titlexxxx,
tags:??(option)}

my tags format which I am trying to add values are [‘automobile’,‘music’].
From fields documentation it should be string and array but I am unable to make it work.
All are strings only tag is option
for which one value i gave is default(value of option) since its not letting me create one without giving something. (created since api wont allow to feed values without creating one manually )

2 posts - 1 participant

Read full topic

How to update multi-select CMS value with "checked" checkboxes in a form submission?

$
0
0

Has anyone figured out how to submit a form with CMS-field checkboxes and then save the selected fields as a multi-reference field to a separate CMS collection?

In my user onboarding, the user can select category preferences, and I have Categories saved as a CMS collection. I want to save whatever the user selects to their entry in the Member CMS collection, and figure that the best way to do this is via one Categories multi-select field. Ideally, I’d like to do this simply using custom code, Webflow, and Zapier. If need be, I can use Airtable as an interim step.

Here is a screenshot to help visualize what I’m trying to do. Where I’m running into trouble is filtering the form submission for checked categories only and then concatenating those results into something I can submit back to Webflow. From other work I’ve done, I believe I need to reach a format where each category’s Item ID is within quotes and comma separated.

Here is the current data I’m getting from Webflow into Zapier. As you can see, I have all the elements necessary. Now it’s about filtering out unchecked boxes and then concatenating and formatting to submit back to Webflow.

Read-only link (see #/sign-up/interests): https://preview.webflow.com/preview/gather-with-us?utm_medium=preview_link&utm_source=dashboard&utm_content=gather-with-us&preview=339158fe31f4593ea6fd69c351493fd1&mode=preview

1 post - 1 participant

Read full topic


NEED HELP with building a automatic price changing system

$
0
0

I have been trying to build an eCommerce website like stockx. For the function of the website, users selling products can submit the price they would like to sell the product and other users can buy those products with the price selling users submitted. I have already build the entire system besides sending the new price to webflow from google spread sheet. All the price info is on my google sheet, but I have no idea the way to automatically send the updated price.

Any comments will be extremely appreciated!

2 posts - 2 participants

Read full topic

Did Webflow just change endpoints for E-Commerce products?

$
0
0

Hi,

I was having a small API integration, which was archiving products with 0 stock from the website. All of sudden yesterday it broke with
" [403] ForbiddenError: User is not authorized to perform this action: Cannot complete operation for the ecommerce collection [SKUs] with this endpoint."

After troubleshooting I see that now the endpoint to update products is different from what I was using before:
https://developers.webflow.com/#update-product

Previously it was based on “collections” endpoint.

The change seems to be going in the right direction, but I could find 0 info about endpoint change in the Change Log or for that matter anywhere…

Is Webflow announcing anywhere changes to API or just throwing them to Production? It is hard to think to build serious feature if things stop working all of sudden :wink:

2 posts - 2 participants

Read full topic

Invalid access token provided -- API call with JSON

$
0
0

Hello,
I am trying to ceate a Webhook with Zapier, following formatting very carefully. I have tried it with Postman too, to try and isolate the problem. I keep getting “invalid access token provided” errors, even when I refresh the API token and try again. Is there anything on the Webflow end of things that might be preventing the token from functioning properly?

2 posts - 1 participant

Read full topic

PATCH problems with API -- "'fields' is required"

$
0
0

Hey all,
Has anyone experienced trouble with API calls to PATCH with an error “‘fields’ is required”? I can successfully make GET and DELETE calls (using Postman) but haven’t succeed in any of the proactive calls like PATCH, PUT or POST. I am trying to troubleshoot in Postman to ultimately use a Zapier Webhook to PATCH a reference field in the CMS.

The error I receive is “‘fields’ is required”. The API token, Content-Type and accept-version are all fine. The field ID I am trying to patch is also fine (I double-checked it using a GET call to the API). Has anyone had this hurdle and overcome it?

https://api.webflow.com/collections/MYCOLLECTION/items/MYITEM?live=true

{
“fields”: {
“last-name”: “Fiftyone”,
}
}

Thanks,
Tim

5 posts - 3 participants

Read full topic

Missing OrderSiteId in OrdersAPI

$
0
0

Hi, community,

Can anyone please check the following query:

I can’t see the SiteId in order APIs

I created a new order at the dashboard and got the order webhook but this order doesn’t have SiteId , which site it belongs to. due to which I am not able to access this order using
==> https://developers.webflow.com/#get-order

Thanks
Sumit Khunger

1 post - 1 participant

Read full topic

Creating a job board

$
0
0

Hi, i want to create a jobboard where multiple clients can put in the job specs and it automatically adds to a webflow page. Is this posible? Preferably free options.

Thanks


5 posts - 2 participants

Read full topic

REST API to Webflow?

$
0
0

Hi there.
I need some help. I built an e-commerce site in Webflow. My customer works with a cash register system that has a REST API. The intention is that when an item is physically sold in the store, the stock - which I manage in Webflow - is adjusted. Then the site must be updated so that the current stock is visible.

Who can help me with this?

2 posts - 2 participants

Read full topic


Does anyone connected Webflow new posts to send Mailchimp newsletter?

$
0
0

Hi there, I’m trying to build an automation to connect new posts with Mailchimp newsletters, but not sure how much effort would it need to build this using Webflow and Zapier integration hooks.

I saw there’s a “published site” hook right there on Webflow but didn’t found a way to quickly connect this with Zapier, maybe I’m missing something.

So have anyone tried this out?

Thanks in advance :sparkles:

1 post - 1 participant

Read full topic

Missing weight unit in APIs

$
0
0

Hi WebFlow Community

Can anyone please help here for the following query:

In the dashboard settings, there is a two-unit system :
Dimensions will display in centimeters (cm) and weight in grams (g).
Dimensions will display in inches (in) and weight in ounces (oz).

In any API I can’t see the weight units, There is an API which gives us the default currency,
https://developers.webflow.com/#get-ecommerce-settings

It is causing an issue at my end while displaying the weight units at my end. how to figure out which weight unit was used in products or orders.

Please help :pray:

Thanks
Sumit Khunger

1 post - 1 participant

Read full topic

I can't remove webflow badge

$
0
0

Hi,
I have a PRO plan, I can’t remove the webflow badge.
I use the option to turn it off using the button: Display “Made In Webflow” badge.
Is this a bug or is my plan not removing the webflow badge?

There is no webflow badge on the webflow.io domain but when I redirect it to another domain it appears. Redirection is done using nginx proxy_pass

Thanks for some help :wink:

1 post - 1 participant

Read full topic



Latest Images