Solved

How can I make the JSON I get from the API include card titles?

  • 16 June 2023
  • 2 replies
  • 53 views

I’m trying to download all of my cards in a given collection using the API. I’m using the following command:

curl -u COLLECTION ID:COLLECTION TOKEN \

    --request GET \

    --url "https://api.getguru.com/api/v1/search/query" \

    --header 'accept: application/json'

 

This works, but the JSON I get back doesn’t include the titles. I get the id, content, and a ton of other information for each card, but no titles (one of the three properties I actually need here). 😔 Is this a bug in Guru’s API? Or does anybody know how to specifically request the inclusion of the title property?

icon

Best answer by James Ahlborn 17 June 2023, 15:13

View original

2 replies

The card title is actually the “preferredPhrase” property.

Thank you, James!

Reply