Skip to main content
openbridge.articles
Query Shopify blog articles with support for pagination, field selection, blog filtering, and search.
See Types for full interface definitions.

Methods

.list()

Fetch multiple articles

.get()

Fetch a single article

.blog()

Filter by blog

.search()

Search articles by query

.limit()

Set maximum results

.select()

Choose which fields to return

.after()

Paginate forward

.before()

Paginate backward

.reverse()

Reverse sort order

Quick Example

// List all articles
const { items, pageInfo } = await openbridge.articles
    .limit(12)
    .select(['title', 'handle', 'image', 'excerpt'])
    .list()

// List articles from a specific blog
const { items } = await openbridge.articles
    .blog('news')
    .limit(5)
    .list()

// Get single article
const article = await openbridge.articles.get('my-article', 'news')