Marketing Events Extension
hubapi · Company
These APIs allow you to interact with HubSpot's Marketing Events Extension. It allows you to: * Create, Read or update Marketing Event information in HubSpot * Specify whether a HubSpot contact has registered, attended or cancelled a registration to a Marketing Event. * Specify a URL that can be called to get the details of a Marketing Event.
Authentication
Sample Requests
Search for marketing events that have an event id that starts with the query string
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/hubapi.com/marketing/v3/marketing/v3/marketing-events/events/search?q=test"
import requests
params = {
"q": "test"
}
response = requests.get(
"https://api.apis.guru/v2/specs/hubapi.com/marketing/v3/marketing/v3/marketing-events/events/search",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/hubapi.com/marketing/v3/marketing/v3/marketing-events/events/search');
url.searchParams.set('q', 'test');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/hubapi.com/marketing/v3/marketing/v3/marketing-events/events/search")
q := baseURL.Query()
q.Set("q", "test")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/hubapi.com/marketing/v3/marketing/v3/marketing-events/events/search")
uri.query = URI.encode_www_form({
"q" => "test"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/hubapi.com/marketing/v3/marketing/v3/marketing-events/events/search?" . http_build_query([
"q" => "test"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/hubapi.com/marketing/v3/marketing/v3/marketing-events/events/{externalEventId}?externalAccountId=example"import requests
params = {
"externalAccountId": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/hubapi.com/marketing/v3/marketing/v3/marketing-events/events/{externalEventId}",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/hubapi.com/marketing/v3/marketing/v3/marketing-events/events/{externalEventId}');
url.searchParams.set('externalAccountId', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/hubapi.com/marketing/v3/marketing/v3/marketing-events/events/{externalEventId}")
q := baseURL.Query()
q.Set("externalAccountId", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/hubapi.com/marketing/v3/marketing/v3/marketing-events/events/{externalEventId}")
uri.query = URI.encode_www_form({
"externalAccountId" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/hubapi.com/marketing/v3/marketing/v3/marketing-events/events/{externalEventId}?" . http_build_query([
"externalAccountId" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/hubapi.com/marketing/v3/marketing/v3/marketing-events/{appId}/settings"import requests
response = requests.get(
"https://api.apis.guru/v2/specs/hubapi.com/marketing/v3/marketing/v3/marketing-events/{appId}/settings",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/hubapi.com/marketing/v3/marketing/v3/marketing-events/{appId}/settings';
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/hubapi.com/marketing/v3/marketing/v3/marketing-events/{appId}/settings"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/hubapi.com/marketing/v3/marketing/v3/marketing-events/{appId}/settings")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/hubapi.com/marketing/v3/marketing/v3/marketing-events/{appId}/settings";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Marketing Events Extension?
Marketing Events Extension is a Company API. Developers commonly use company APIs for:
- enriching CRM records with company firmographics
- building lead-generation and prospecting tools
- verifying business identity and registration details
- monitoring competitors and market intelligence
- powering B2B data enrichment pipelines
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Marketing Events Extension is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?