Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Fetch a single article
openbridge.articles.get(idOrHandle, blogHandle?) openbridge.articles.get(idOrHandle).blog(blogHandle).select(fields)
.blog()
.select()
idOrHandle
string
blogHandle
ShopifyArticle
| null
const article = await openbridge.articles.get('my-first-post', 'news') if (article) { console.log(article.title) }
const article = await openbridge.articles .get('my-first-post') .blog('news')
const article = await openbridge.articles.get( 'gid://shopify/Article/123456789' )
const article = await openbridge.articles .get('gid://shopify/Article/123456789') .select(['title', 'handle', 'content', 'image', 'author'])
const article = await openbridge.articles.get('non-existent', 'news') if (!article) { console.log('Article not found') }