Skip to main content
Solved

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

  • June 16, 2023
  • 2 replies
  • 103 views

Steven Lamphear

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?

Best answer by James Ahlborn

The card title is actually the “preferredPhrase” property.

2 replies

James Ahlborn
Guru Employee
  • Guru Employee
  • 3 replies
  • Answer
  • June 17, 2023

The card title is actually the “preferredPhrase” property.


Steven Lamphear

Thank you, James!