Segment

Customer data platform

Integrate the Segment API with the HTTP / Webhook API

Setup the Segment API trigger to run a workflow which integrates with the HTTP / Webhook API. Pipedream's integration platform allows you to integrate Segment and HTTP / Webhook remarkably fast. Free for developers.

Associate an identified user with a group with Segment API on New Requests from HTTP / Webhook API
HTTP / Webhook + Segment
 
Try it
Associate one identity with another with Segment API on New Requests from HTTP / Webhook API
HTTP / Webhook + Segment
 
Try it
Identify a user, tie them to their actions and record traits about them with Segment API on New Requests from HTTP / Webhook API
HTTP / Webhook + Segment
 
Try it
Record page views on your website with Segment API on New Requests from HTTP / Webhook API
HTTP / Webhook + Segment
 
Try it
Record whenever a user sees a screen with Segment API on New Requests from HTTP / Webhook API
HTTP / Webhook + Segment
 
Try it
New Requests from the HTTP / Webhook API

Get a URL and emit the full HTTP event on every request (including headers and query parameters). You can also configure the HTTP response code, body, and more.

 
Try it
New Requests (Payload Only) from the HTTP / Webhook API

Get a URL and emit the HTTP body as an event on every request

 
Try it
Webhook Destination (Instant) from the Segment API

Send events to a webhook

 
Try it
New event when the content of the URL changes. from the HTTP / Webhook API

Emit new event when the content of the URL changes.

 
Try it
Associate an identified user with a group with the Segment API

Group lets you associate an identified user with a group (note requires userId or anonymousId). See the docs here

 
Try it
Associate one identity with another with the Segment API

Alias is how you associate one identity with another. See the docs here

 
Try it
Identify a user, tie them to their actions and record traits about them with the Segment API

identify lets you tie a user to their actions and record traits about them. It includes a unique User ID and any optional traits you know about them (note requires userId or anonymousId). See the docs here

 
Try it
Send any HTTP Request with the HTTP / Webhook API

Send an HTTP request using any method and URL. Optionally configure query string parameters, headers, and basic auth.

 
Try it
Record page views on your website with the Segment API

The page method lets you record page views on your website, along with optional extra information about the page being viewed (note requires userId or anonymousId). See the docs here

 
Try it

Connect Segment

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    segment: {
      type: "app",
      app: "segment",
    }
  },
  async run({steps, $}) {
    const data = {
      "event": `PipedreamTestOrder`,
      "anonymousId": `019mr8mf4r`,
    }
    return await axios($, {
      method: "post",
      url: `https://api.segment.io/v1/track`,
      auth: {
        username: `${this.segment.$auth.write_key}`,
        password: ``,
      },
      data,
    })
  },
})

Connect HTTP / Webhook

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export default defineComponent({
  props: {
    http: {
      type: "http_request",
      default: {
        method: "GET",
        url: "http://api.open-notify.org/iss-now.json",
      }
    }
  },
  async run({steps, $}) {
    return await this.http.execute()
  },
})

Community Posts

A Look at Pipedream
A Look at Pipedream
I'm going to build a workflow that will search Twitter every hour for a keyword. It will take the results, format them nicely, and then email it.
Building a Traffic-Based Workflow in Pipedream
Building a Traffic-Based Workflow in Pipedream
Normally I don't like to blog about stuff that isn't generally available to all, but as it will be available sometime soon, I decided to go ahead anyway. And I built something really cool I want to share so that's another reason to talk about this now!