Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(warehouse_sources): add beehiiv podcasts table (#89073)

Tom Owers2deb7870a34a
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md b/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md
index 9024dbfc72d0..e5c23284e770 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md
@@ -731,6 +731,14 @@ No material gaps found.
Note: Every listable collection in the Beamer v0 API is already synced: posts, post comments, post reactions, feature requests, feature request comments, feature request votes, NPS responses and analytics users. The remaining operations are counts (count posts/comments/votes/reactions/NPS), the feed URL helper, unread-post lookups, NPS prompt eligibility and email-survey sends, and mutation-only team management (invite/remove/update role) - there is no GET for team members and no categories endpoint, so Category only exists as an inline field on Post. Caveat on the doc URL: the vendor's own page (getbeamer.com/help/beamer-api-documentation) now 404s and redirects into help.userflow.com after the Userflow merger; getbeamer-api.pages.dev is the working rendered Swagger reference for api.getbeamer.com/v0 and is what I diffed against.
+## Beehiiv — gaps
+
+Today (15): `Authors`, `Automations`, `ComplimentaryAccess`, `ConditionSets`, `CustomFields`, `NewsletterLists`, `Podcasts`, `Polls`, `PostTemplates`, `Posts`, `Publications`, `ReferralProgramMilestones`, `Segments`, `Subscriptions`, `Tiers`
+
+Diffed against: <https://developers.beehiiv.com/api-reference>
+
+- [x] `podcasts (GET /publications/{publication_id}/podcasts)` — podcasts belonging to the publication, added here
+
## Bettermode — **thin**
Today (6): `members`, `moderation_items`, `posts`, `replies`, `spaces`, `tags`
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/beehiiv/canonical_descriptions.py b/products/warehouse_sources/backend/temporal/data_imports/sources/beehiiv/canonical_descriptions.py
index 8277c1699f0b..7f6ffd43c40d 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/beehiiv/canonical_descriptions.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/beehiiv/canonical_descriptions.py
@@ -75,6 +75,29 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {
"updated_at": "The time the newsletter list was last updated, in seconds since the Unix epoch.",
},
},
+ "Podcasts": {
+ "description": "Podcasts belonging to the publication, with their distribution and publishing metadata.",
+ "docs_url": "https://developers.beehiiv.com/api-reference/podcasts/index",
+ "columns": {
+ "id": "The prefixed ID of the podcast.",
+ "title": "The title of the podcast.",
+ "slug": "The URL-friendly slug of the podcast.",
+ "description": "The description of the podcast.",
+ "author": "The author of the podcast. Defaults to the publication name.",
+ "status": "The current status of the podcast: draft, live or archived.",
+ "type": "The podcast type: episodic or serial.",
+ "language": "The ISO 639-1 language code of the podcast.",
+ "categories": "The categories the podcast is listed under.",
+ "artwork_url": "The URL of the podcast artwork. Empty when none is set.",
+ "copyright": "The copyright text for the podcast.",
+ "explicit": "Whether the podcast is marked as explicit.",
+ "imported": "Whether the podcast was imported from another platform.",
+ "publishing_frequency": "How often, in days, new episodes are expected.",
+ "website_url": "The website URL for the podcast.",
+ "platform_links": "Links to the podcast on external platforms, keyed by platform.",
+ "created": "The time the podcast was created, in seconds since the Unix epoch.",
+ },
+ },
"Polls": {
"description": "Polls that can be embedded in posts and answered by subscribers.",
"docs_url": "https://developers.beehiiv.com/api-reference/polls/index",
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/beehiiv/settings.py b/products/warehouse_sources/backend/temporal/data_imports/sources/beehiiv/settings.py
index 5b021f010ad1..d75a3b41b3fd 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/beehiiv/settings.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/beehiiv/settings.py
@@ -65,6 +65,14 @@ ENDPOINTS: dict[str, BeehiivEndpointConfig] = {
partition_key="created_at",
params={"direction": "asc"},
),
+ "Podcasts": BeehiivEndpointConfig(
+ name="Podcasts",
+ path=f"/publications/{PUBLICATION_PATH_PLACEHOLDER}/podcasts",
+ pagination="cursor",
+ partition_key="created",
+ # beehiiv documents no ordering and only an optional `status` filter (draft/live/archived)
+ # with no "all" value, so request the default set unfiltered rather than narrowing it.
+ ),
"Polls": BeehiivEndpointConfig(
name="Polls",
path=f"/publications/{PUBLICATION_PATH_PLACEHOLDER}/polls",