PHPackages                             fortyfive/hubspot-graphql - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. fortyfive/hubspot-graphql

ActiveCraft-plugin[API Development](/categories/api)

fortyfive/hubspot-graphql
=========================

This plugin adds a GraphQL definition to have access to the Blog HubSpot API using CraftQL plugin.

1.0.0(6y ago)340[1 issues](https://github.com/45RPMLLC/hubspot-graphql/issues)MITPHPCI failing

Since Apr 15Pushed 6y ago3 watchersCompare

[ Source](https://github.com/45RPMLLC/hubspot-graphql)[ Packagist](https://packagist.org/packages/fortyfive/hubspot-graphql)[ RSS](/packages/fortyfive-hubspot-graphql/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

HubSpot GraphQL plugin for Craft CMS 3.x
========================================

[](#hubspot-graphql-plugin-for-craft-cms-3x)

This plugin adds a Hubspot GraphQL definition to Craft CMS. It allows to query Hubspot data and add it to your existing Craft queries making it simpler to gather data from multiple sources as it facilitates integration with javascript frameworks used to build modern websites that heavily rely on GraphQL queries.

This plugin uses the HubSpot PHP API client and it allows to query resources from the CMS Blog API (i.e. posts, authors, topics) with more resources becoming available in the future.

Requirements
------------

[](#requirements)

- This plugin requires Craft CMS 3.0.0-beta.23 or later.
- [CraftQL](https://plugins.craftcms.com/craftql) plugin
- A [HubSpot Api Key](https://knowledge.hubspot.com/integrations/how-do-i-get-my-hubspot-api-key)

Installation
------------

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require fortyfive/hubspot-graphql

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for HubSpot GraphQL.
4. Now in the Control Panel, go to Settings → HubSpot GraphQL and set your [HubSpot Api Key](https://knowledge.hubspot.com/integrations/how-do-i-get-my-hubspot-api-key)

HubSpot GraphQL Overview
------------------------

[](#hubspot-graphql-overview)

Here's an example query with all the possible information you can get.

```
{
  hubspot {
    posts(limit: 5) {
      limit
      offset
      total
      objects {
        archived
        blog_author_id
        author {
          avatar
          bio
          created
          deleted_at
          display_name
          email
          facebook
          full_name
          has_social_profiles
          id
          linkedin
          portal_id
          slug
          twitter
          twitter_username
          updated
          website
        }
        campaign
        campaign_name
        cloned_from
        comment_count
        content_group_id
        created
        deleted
        featured_image
        footer_html
        freeze_date
        has_user_changes
        head_html
        html_title
        id
        is_draft
        meta_description
        name
        performable_url
        portal_id
        post_body
        post_summary
        preview_key
        processing_status
        publish_date
        publish_immediately
        published_url
        rss_body
        rss_summary
        slug
        state
        style_override_id
        subcategory
        topic_ids
        topics {
          name
        }
        updated
        url
      }
    }
  }
}

```

HubSpot GraphQL Roadmap
-----------------------

[](#hubspot-graphql-roadmap)

- Integration with [CraftQL](https://plugins.craftcms.com/craftql) plugin
- Integration with CraftCMS GraphQL

From the desk of [45RPM](https://www.45rpm.co/)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2215d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/481301a3da01dd5a6a548413630c39f4cd4209a7e23025974a491500e444dc96?d=identicon)[fortyfive](/maintainers/fortyfive)

---

Top Contributors

[![pablo-tapia](https://avatars.githubusercontent.com/u/14266865?v=4)](https://github.com/pablo-tapia "pablo-tapia (1 commits)")

---

Tags

plugingraphqlhubspotcmsCraftcraftcmscraft-pluginhubspot graphql

### Embed Badge

![Health badge](/badges/fortyfive-hubspot-graphql/health.svg)

```
[![Health](https://phpackages.com/badges/fortyfive-hubspot-graphql/health.svg)](https://phpackages.com/packages/fortyfive-hubspot-graphql)
```

###  Alternatives

[wrav/oembed

A simple plugin to extract media information from websites, like youtube videos, twitter statuses or blog articles.

36205.0k3](/packages/wrav-oembed)[craftpulse/craft-typesense

Craft Plugin that synchronises with Typesense

122.7k](/packages/craftpulse-craft-typesense)[jsmrtn/craftagram

Grab Instagram content through the Instagram API

141.3k](/packages/jsmrtn-craftagram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
