Ferramentas de IA

Ask ChatGPTAsk Claude
Cada entrada retornada pela API de Conteúdo da GoodBarber é formatada em um dicionário genérico do tipo Item.

As entradas do tipo Item possuem chaves comuns e chaves adicionais específicas de acordo com seu tipo e subtipo.

Na lista abaixo, para os tipos específicos (artigos, vídeos, etc.) herdados de Item, estão descritas apenas as chaves adicionais.

1. Item (comum)

O tipo Item é genérico; todos os outros tipos herdam de Item.
 
NomeTipoDescrição
idStringItem unique identifier on its source
typeStringItem type
titleStringItem title
urlStringItem URL on its source
categoriesArray of StringsCategories associated with the item on the source
dateString (date)Item publication date
authorStringItem author
subtypeStringItem subtype (generally describes the service type of the source)

2. Artigo

Herdado de Item, pode ser exibido nas seções de Artigo.
tipo = artigo
subtipo = wordpress, typepad, wmaker, rss, etc.

 
NomeTipoDescrição
nbCommentsIntegerNumber of comments associated with the item on its source
commentsEnabledBoolDescribes if the comments have to be enabled or not for this item
commentsUrlStringURL to access the JSON feed of comments for this item
commentsPostUrlStringURL that allows to post comments on this item
summaryStringSummary of the article (no HTML, text only)
contentStringArticle content
smallThumbnailStringArticle thumbnail (small format)
thumbnailStringArticle thumbnail (medium format)
largeThumbnailStringArticle thumbnail (big format)
imagesArray of DictList of images contained in the article
images/[]/idStringValue of the id attribute of the <img> tags in article content
images/[]/urlStringImage URL

3. Foto

Herdado de Item, pode ser exibido nas seções de Fotos.
tipo = foto
subtipo = flickr, facebook, wmaker, picasa, etc.

 
NomeTipoDescrição
contentStringPhoto description (text only, no HTML)
nbLikesIntegerNumber of likes of the photo (only if subtype = facebook)
nbCommentsIntegerNumber of comments
commentsEnabledBoolDescribes if the comments have to be enabled or not for this item
commentsUrlStringURL to access the JSON feed of comments for this item
commentsPostUrlStringURL that allows to post comments on this item
imagesDictDictionary of the different sizes available for the photo
images/{SIZE}/heightIntegerHeight of the photo
images/{SIZE}/widthIntegerWidth of the photo
images/{SIZE}/urlStringURL of the photo

Valores indicativos de {SIZE} 
ValorDescriçãoValores indicativos
squareSmall format (square)75x75
largesquareMedium format (square)150x150
smallSmall format (original proportions)240x180
mediumMedium format (original proportions)320x240
largeBig format (original proportions)640x480

4. Vídeo

Herdado de Item, pode ser exibido em seções de Vídeo.
tipo = vídeo
subtipo = youtube, dailymotion, vimeo, wmaker, facebook, etc.

 
NomeTipoDescrição
nbCommentsIntegerNumber of comments
commentsEnabledBoolDescribes if the comments have to be enabled or not for this item
commentsUrlStringURL to access the JSON feed of comments for this item
commentsPostUrlStringURL that allows to post comments on this item
contentStringVideo description
summaryStringSummary of the video (no HTML, text only)
smallThumbnailStringVideo thumbnail (Small format)
thumbnailStringVideo thumbnail (Medium format)
largeThumbnailStringVideo thumbnail (Big format)
nbViewsIntegerNumber of views of the video
lengthIntegerVideo duration (seconds)
ratingFloatMedium rating of the video
nbRatingsIntegerNumber of ratings of the video
videoUrlsDictDictionary containing the different formats for the video source
videoUrls/{VIDEO_TYPE}StringURL of the video resource corresponding to {VIDEO_TYPE}
videoUrlStringURL to watch the video (only if subtype = facebook)
nbLikesIntegerNumber of likes of the video (only if subtype = facebook)
imageStringVideo original thumbnail URL (only if subtype = facebook)

Possíveis chaves para​ {VIDEO_TYPE}
ValorDescriçãoFormato
m3u8URL of the HTTP Streaming feedApple HTTP Streaming
mp4URL of the MP4 fileMP4
embedURL that could be indicated as the source of an HTML embed to watch the videoHTML embed
embedHTMLHTML full embed code of the videoHTML embed

5. Evento

Herdado de Item, pode ser exibido nas seções de Evento.
tipo = evento
subtipo = facebook, google, wmaker, etc.

 
NomeTipoDescrição
addressStringAddress of the event
allDayBoolDescribes if the event is an "all day" event
contentStringEvent description
endDateString (date)End date of the event
latitudeStringLatitude of the event (GPS coordinates)
longitudeStringLongitude of the event (GPS coordinates)
thumbnailStringThumbnail of the event

6. Áudio

Herdado de Item, pode ser exibido nas seções de Som.
tipo = som
subtipo = podcast, soundcloud, etc.

 
NomeTipoDescrição
nbCommentsIntegerNumber of comments
commentsEnabledBoolDescribes if the comments have to be enabled or not for this item
commentsUrlStringURL to access the JSON feed of comments for this item
commentsPostUrlStringURL that allows to post comments on this item
lengthIntegerDuration of the podcast (seconds)
nbFavoritesIntegerNumber of "favorites" by user for this song (only if subtype = soundcloud)
purchaseUrlStringURL to buy the song
streamUrlStringStream URL for this podcast
summaryStringDescription of this podcast
thumbnailStringThumbnail URL

7. Comentário

Herdado de Item, pode ser exibido em páginas de comentários.
tipo = comentário
subtipo = wordpress, wmaker, etc.

 
NomeTipoDescrição
contentStringContent of the comment

Você precisa de ajuda?

Nossa equipe de suporte está aqui para ajudá-lo a encontrar a resposta certa.

Entre em contato com o suporte