Skip to Content
API ReferenceContentArticlesGETGet articles metadata

Get articles metadata

GET/api/v1/content/articles/metadata

Retrieves available maternal stages, week ranges, topic categories, tags, and total counts for articles.

Query parameters

None.

Returns

HTTP Status Codes

200 OKArticleMetadataoptional

Stages, categories, and taxonomy tags across published articles.

401 UnauthorizedErroroptional

The integration key is missing, invalid, or revoked.

Response attributes

total_countintegeroptional

Total number of articles in the catalogue.

stagesobject[]optional

Available stages with id, label, count, and applicable weeks boundaries (min_week / max_week, or null).

categoriesobject[]optional

Article categories with matching item count.

tagsstring[]optional

Sorted list of unique article taxonomy tags.

curl -X GET "https://api.bellacoach.ai/api/v1/content/articles/metadata" \ -H "Authorization: Bearer $BELLA_API_KEY" \ -H "Accept: application/json"

Response (200 OK)

{ "total_count": 848, "stages": [ { "id": "preconception", "label": "Preconception", "count": 88, "weeks": null }, { "id": "pregnancy", "label": "Pregnancy", "count": 388, "weeks": { "min_week": 1, "max_week": 42 } }, { "id": "postpartum", "label": "Postpartum", "count": 128, "weeks": { "min_week": 1, "max_week": 104 } }, { "id": "general", "label": "General", "count": 244, "weeks": null } ], "categories": [ { "name": "movement", "count": 112 }, { "name": "nutrition", "count": 96 } ], "tags": ["core", "mobility", "nutrition", "pelvic-floor", "recovery", "strength"] }

Next steps

Last updated on