Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Getting card description via Node JS

I've been trying to fetch the only description of a card using Node JS.

`The text below is from Trello REST API Get Card

const fetch = require('node-fetch');

fetch('{id}?key=0471642aefef5fa1fa76530ce1ba4c85&token=9eb76d9a9d02b8dd40c2f3e5df18556c831d4d1fadbe2c45f8310e6c93b5c548', {
  method: 'GET',
  headers: {
    'Accept': 'application/json'
  .then(response => {
      `Response: ${response.status} ${response.statusText}`
    return response.text();
  .then(text => console.log(text))
  .catch(err => console.error(err));

I've been trying to only get the response to be the card description.

Yes, I've entered "fetch('{id}?key=0471642aefef5fa1fa76530ce1ba4c85&token=9eb76d9a9d02b8dd40c2f3e5df18556c831d4d1fadbe2c45f8310e6c93b5c548'" part correctly. I get the full json file. I am trying to only output the description. 

Tried:  `Response: ${response.desc}` and so on. No outcome.



1 answer

0 votes
Iain Dooley Community Leader Sep 06, 2020

@TrelloXinterface so you get no status, and no error? Generally you should be able to at least get an HTTP error when posting to the API if something's not right.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Trello

Taco Tuesday: Your favorite Trello blog takeaway

Hello friends! From the community that brought you Welcome Wednesday, Throwback Thursday and Friday Fun, welcome to Taco Tuesday, a weekly discussion about all things Trello. The best part? One Tac...

203 views 10 9
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you