Blaze
  • Overview
    • Overview of workflows
  • Fundamentals
    • Getting set up
      • Access controls
      • Invite your team
      • Integrations
      • Custom Bot
    • Team and workspace settings
      • For workspace owners
      • For collaborators
    • FAQ
      • Subscription & Pricing
      • Workspace Settings
      • Lead Generation
      • Campaigns and Outreach
      • Forms and Rewards
  • Product Guides
    • Lead Gen and Segments
      • Segment Types
        • Saved segments
        • Curated segments
        • Community Segments
        • Uploaded Segments
      • How to filter segments
        • Twitter Audience filters
        • LinkedIn Audience filters
        • Telegram Audience filters
        • Wallet Audience filters
      • How to upload segments
        • Upload CSV
        • Paste URLs
      • How to create a lead list using Find Leads feature
      • Use Social Search to find leads or trending content
        • Twitter Social Search
          • X Post Search
          • X Account Followers
          • X Spaces Listeners
        • LinkedIn Social Search
          • LinkedIn Post Authors
          • LinkedIn Post Reactor/Commentor
      • How to use Segment Wizard to build lead lists instantly
      • How to generate a lead list or segment of wallets using Wallet CRM
        • How to refine & create a segment of wallets
        • Reach out to Wallet CRM leads
      • How to split a segment into multiple subsegments for A/B testing
      • Capture leads and sign ups with Forms
        • Create and share a form
        • View form responses
        • Embed a form on your website
        • Auto-send forms to new Discord users
    • DM Campaigns and Marketing Automation
      • Run multi-step DM campaigns
      • AI Personalization
      • AI Replies (Coming Soon)
      • Start Ad Campaigns using Blaze
      • Unified Inbox
      • Manage Discord Campaigns and DMs
        • Discord DM Users
      • Rewards, Social Referrals and Quests
        • Create a Rewards Campaign
          • Available Actions
          • Edit campaign
        • Share quest page and track performance
        • Distribute Rewards
      • Run campaigns via XMTP Wallet Messaging
      • Distribute Airdrops to on-chain leads
      • Distribute NFTs to your users
    • Social Media Management - Twitter
      • Post and Schedule Tweets
      • Post and Schedule Farcaster Casts
      • Post Library
      • Top Performing Tweets
      • Twitter Analytics
        • Understand Twitter growth and engagement
    • Discord Analytics
      • Comprehensive Overview of your Discord Community
      • Create Discord Custom Report of your community
      • Find Sentiment of Discord Community
      • Analyze Engagement rate of your Discord Members
      • Find Topics discussed by your Discord Community
      • Product Feedback + User Insights
        • Messages
        • Message Explorer
        • Trend Explorer
        • Collect feedback with forms
        • Invite Attribution
      • Measure cross-platform marketing campaigns
    • Wallet metrics glossary
    • KOL Index
    • Cross Platform Analytics
      • Create and analyze a Twitter campaign
  • Blaze API
    • Getting started
      • Set up the Zapier integration
      • Set up API access
    • Data API
      • Active Users
      • Price
      • New users
      • Transaction Count
      • Market Cap
      • Transaction Fees
      • Official Account Metrics
      • Community Mentions Metrics
      • Retention Metrics
    • Community API
      • Ping
      • Member Details
      • Member Activity
      • Members Activity By Id
      • Discord Messages
      • Invite Attributions
    • CRM and Rewards API
      • Overview
        • Schema
        • Transaction Operations
      • Create User
      • Update User
      • Delete User
      • Create Transaction
      • Retrieve Transactions
      • Update Transaction
      • Delete Transaction
      • Leaderboard
      • Tasks and User Completion
    • Wallet Intelligence and Identity API
      • Wallet Holdings
      • Smart Contract Interactions
      • Average Token Hold Time
      • Wallet Traits
      • Wallet Scores
      • Wallet Socials
      • Token Holders
  • Get in touch
    • Support
    • Feedback
Powered by GitBook
On this page
  • GraphQL Query
  • Variables
  • Response
  • Examples

Was this helpful?

  1. Blaze API
  2. Community API

Discord Messages

The Member Messages by IDs endpoint allows you to fetch messages sent by specific members in your Discord server using GraphQL.

PreviousMembers Activity By IdNextInvite Attributions

Last updated 1 year ago

Was this helpful?

GraphQL Query

query MemberMessages($pageSize: Int!, $page: Int!, $guildId: String!, $channelIds: [String!], $ids: [String!], $startDate: String!, $endDate: String!) {
  memberMessagesByIds(pageSize: $pageSize, page: $page, guildId: $guildId, channelIds: $channelIds, ids: $ids, startDate: $startDate, endDate: $endDate) {
    totalMessages
    messagesList {
      id
      content
      createdAt
      editedAt
      channelId
      guildId
      authorId
      tags
      type
      authorName
      authorDiscriminator
      authorAvatarUrl
      authorNickname
      channelName
      sentimentScore
      reactions
      isInThread
    }
  }
}

Variables

{
    "pageSize": Int, // Number of messages to fetch per page
    "page": Int, // Page number to retrieve
    "guildId": String, // Guild ID of the Discord server
    "channelIds": [String], // Array of channel IDs to filter the messages (optional)
    "ids": [String], // List of Discord member IDs
    "startDate": String, // Start date to filter messages (YYYY-MM-DD format)
    "endDate": String // End date to filter messages (YYYY-MM-DD format)
}

Response

{
    "totalMessages": Int, // Total number of messages matching the specified criteria
    "messagesList": Array<{
        "id": String, // ID of the message
        "content": String, // Content of the message
        "createdAt": String, // Timestamp when the message was created
        "editedAt": String, // Timestamp when the message was last edited (if applicable)
        "channelId": String, // ID of the channel where the message was sent
        "guildId": String, // ID of the guild (server) where the message was sent
        "authorId": String, // ID of the author (member) who sent the message
        "tags": [String], // Array of tags associated with the message
        "type": String, // Type of the message
        "authorName": String, // Name of the author (member) who sent the message
        "authorDiscriminator": String, // Discriminator of the author (member) who sent the message
        "authorAvatarUrl": String, // URL of the author's avatar
        "authorNickname": String, // Nickname of the author (member) in the server
        "channelName": String, // Name of the channel where the message was sent
        "sentimentScore": Float, // Sentiment score of the message
        "reactions": [Object], // Array of reaction objects associated with the message
        "isInThread": Boolean // Indicates whether the message is part of a thread
    }>
}

Examples

POST https://dashboard.withblaze.app/api/graphql-api

page*

1

Page number should start from 1

pageSize*

10

Max Limit - 100

guildId*

GUILD-ID

Guild ID of the discord server from which you want to query the data

startDate*

START-DATE

Start date from which message need to be filtered

endDate*

END-DATE

End date from which messages need to be filtered

ids

['ID-1', 'ID-2']

Discord ids of the members for whom the messages need to be fetched

channelIds

['CHANNEL-ID-1', 'CHANNEL-ID-2']

Discord channel ids of the channels for which the messages need to be fetched

Input
{
  "pageSize": 20,
  "page": 1,
  "guildId": "108488638812401",
  "channelIds": [
    "10848970617"
  ],
  "startDate": "2024-02-20",
  "endDate": "2024-02-25"
}
Output
{
    "data": {
        "memberMessagesByIds": {
            "totalMessages": 109,
            "messagesList": [
                {
                    "id": "1210603397133238332",
                    "content": "Yeah i got that but it said link dc in <#1084886368594960411>",
                    "createdAt": "2024-02-23 15:05:41.800000+00:00",
                    "editedAt": "None",
                    "channelId": "10848970617",
                    "guildId": "108488638812401",
                    "authorId": "587761292341673986",
                    "tags": "[]",
                    "type": "MessageType.default",
                    "authorName": ".misternft",
                    "authorDiscriminator": "0",
                    "authorAvatarUrl": "https://cdn.discordapp.com/avatars/587761292341673986/96b9139fbbde6aaba8e5cd404400ee15.png?size=1024",
                    "authorNickname": ".misternft",
                    "channelName": "☕│general",
                    "sentimentScore": "0.1531",
                    "reactions": "[]",
                    "isInThread": "false"
                },
                {
                    "id": "1210603342657495121",
                    "content": "there isnt a discord connection yet",
                    "createdAt": "2024-02-23 15:05:28.812000+00:00",
                    "editedAt": "None",
                    "channelId": "10848970617",
                    "guildId": "108488638812401",
                    "authorId": "940240192923648112",
                    "tags": "[]",
                    "type": "MessageType.default",
                    "authorName": "efebw",
                    "authorDiscriminator": "0",
                    "authorAvatarUrl": "https://cdn.discordapp.com/avatars/940240192923648112/38dc03466ea21e5bb68def23facdb17c.png?size=1024",
                    "authorNickname": "efebw",
                    "channelName": "☕│general",
                    "sentimentScore": "0.3089",
                    "reactions": "[]",
                    "isInThread": "false"
                },
                {
                    "id": "1210603248461807626",
                    "content": "i dl'ed it on play",
                    "createdAt": "2024-02-23 15:05:06.354000+00:00",
                    "editedAt": "None",
                    "channelId": "10848970617",
                    "guildId": "108488638812401",
                    "authorId": "231976188992684033",
                    "tags": "[]",
                    "type": "MessageType.default",
                    "authorName": "contradigm",
                    "authorDiscriminator": "0",
                    "authorAvatarUrl": "https://cdn.discordapp.com/avatars/231976188992684033/215e2edeb81ee820c4d5a2825492e9fc.png?size=1024",
                    "authorNickname": "contradigm",
                    "channelName": "☕│general",
                    "sentimentScore": "0.34",
                    "reactions": "[]",
                    "isInThread": "false"
                },
                {
                    "id": "1210603010758156288",
                    "content": "I downloaded it last week",
                    "createdAt": "2024-02-23 15:04:09.681000+00:00",
                    "editedAt": "None",
                    "channelId": "10848970617",
                    "guildId": "108488638812401",
                    "authorId": "587761292341673986",
                    "tags": "[]",
                    "type": "MessageType.default",
                    "authorName": ".misternft",
                    "authorDiscriminator": "0",
                    "authorAvatarUrl": "https://cdn.discordapp.com/avatars/587761292341673986/96b9139fbbde6aaba8e5cd404400ee15.png?size=1024",
                    "authorNickname": ".misternft",
                    "channelName": "☕│general",
                    "sentimentScore": "0.0",
                    "reactions": "[]",
                    "isInThread": "false"
                },
                {
                    "id": "1210602983574999092",
                    "content": "How do we connect discord etc to bestwallet",
                    "createdAt": "2024-02-23 15:04:03.200000+00:00",
                    "editedAt": "None",
                    "channelId": "10848970617",
                    "guildId": "108488638812401",
                    "authorId": "587761292341673986",
                    "tags": "[]",
                    "type": "MessageType.default",
                    "authorName": ".misternft",
                    "authorDiscriminator": "0",
                    "authorAvatarUrl": "https://cdn.discordapp.com/avatars/587761292341673986/96b9139fbbde6aaba8e5cd404400ee15.png?size=1024",
                    "authorNickname": ".misternft",
                    "channelName": "☕│general",
                    "sentimentScore": "-0.4019",
                    "reactions": "[]",
                    "isInThread": "false"
                },
                {
                    "id": "1210602973990748200",
                    "content": "it would be helpful",
                    "createdAt": "2024-02-23 15:04:00.915000+00:00",
                    "editedAt": "None",
                    "channelId": "10848970617",
                    "guildId": "108488638812401",
                    "authorId": "940240192923648112",
                    "tags": "[]",
                    "type": "MessageType.default",
                    "authorName": "efebw",
                    "authorDiscriminator": "0",
                    "authorAvatarUrl": "https://cdn.discordapp.com/avatars/940240192923648112/38dc03466ea21e5bb68def23facdb17c.png?size=1024",
                    "authorNickname": "efebw",
                    "channelName": "☕│general",
                    "sentimentScore": "0.4215",
                    "reactions": "[]",
                    "isInThread": "false"
                },
                {
                    "id": "1210602941871034430",
                    "content": "let me know your thoughts",
                    "createdAt": "2024-02-23 15:03:53.257000+00:00",
                    "editedAt": "None",
                    "channelId": "10848970617",
                    "guildId": "108488638812401",
                    "authorId": "940240192923648112",
                    "tags": "[]",
                    "type": "MessageType.default",
                    "authorName": "efebw",
                    "authorDiscriminator": "0",
                    "authorAvatarUrl": "https://cdn.discordapp.com/avatars/940240192923648112/38dc03466ea21e5bb68def23facdb17c.png?size=1024",
                    "authorNickname": "efebw",
                    "channelName": "☕│general",
                    "sentimentScore": "0.0",
                    "reactions": "[]",
                    "isInThread": "false"
                },
                {
                    "id": "1210602924825124985",
                    "content": "have a small playable",
                    "createdAt": "2024-02-23 15:03:49.193000+00:00",
                    "editedAt": "None",
                    "channelId": "10848970617",
                    "guildId": "108488638812401",
                    "authorId": "940240192923648112",
                    "tags": "[]",
                    "type": "MessageType.default",
                    "authorName": "efebw",
                    "authorDiscriminator": "0",
                    "authorAvatarUrl": "https://cdn.discordapp.com/avatars/940240192923648112/38dc03466ea21e5bb68def23facdb17c.png?size=1024",
                    "authorNickname": "efebw",
                    "channelName": "☕│general",
                    "sentimentScore": "0.0",
                    "reactions": "[]",
                    "isInThread": "false"
                },
                {
                    "id": "1210602908752551997",
                    "content": "honestly if everyone downloads it",
                    "createdAt": "2024-02-23 15:03:45.361000+00:00",
                    "editedAt": "None",
                    "channelId": "10848970617",
                    "guildId": "108488638812401",
                    "authorId": "940240192923648112",
                    "tags": "[]",
                    "type": "MessageType.default",
                    "authorName": "efebw",
                    "authorDiscriminator": "0",
                    "authorAvatarUrl": "https://cdn.discordapp.com/avatars/940240192923648112/38dc03466ea21e5bb68def23facdb17c.png?size=1024",
                    "authorNickname": "efebw",
                    "channelName": "☕│general",
                    "sentimentScore": "0.4588",
                    "reactions": "[]",
                    "isInThread": "false"
                },
                {
                    "id": "1210602884702404608",
                    "content": "tell them again <@604567445532966923>",
                    "createdAt": "2024-02-23 15:03:39.627000+00:00",
                    "editedAt": "None",
                    "channelId": "10848970617",
                    "guildId": "108488638812401",
                    "authorId": "940240192923648112",
                    "tags": "[]",
                    "type": "MessageType.default",
                    "authorName": "efebw",
                    "authorDiscriminator": "0",
                    "authorAvatarUrl": "https://cdn.discordapp.com/avatars/940240192923648112/38dc03466ea21e5bb68def23facdb17c.png?size=1024",
                    "authorNickname": "efebw",
                    "channelName": "☕│general",
                    "sentimentScore": "0.0",
                    "reactions": "[]",
                    "isInThread": "false"
                },
                {
                    "id": "1210602630133588100",
                    "content": "if u dont have best wallet downloaded too what are u doing👀",
                    "createdAt": "2024-02-23 15:02:38.933000+00:00",
                    "editedAt": "None",
                    "channelId": "10848970617",
                    "guildId": "108488638812401",
                    "authorId": "604567445532966923",
                    "tags": "[]",
                    "type": "MessageType.default",
                    "authorName": "tgpriv.eth",
                    "authorDiscriminator": "0",
                    "authorAvatarUrl": "https://cdn.discordapp.com/avatars/604567445532966923/7feea1bb3ba1c41710798a423f7f5e03.png?size=1024",
                    "authorNickname": "tgpriv.eth",
                    "channelName": "☕│general",
                    "sentimentScore": "-0.5216",
                    "reactions": "[]",
                    "isInThread": "false"
                },
                {
                    "id": "1210599946475020348",
                    "content": "were playing smash kart for OG",
                    "createdAt": "2024-02-23 14:51:59.099000+00:00",
                    "editedAt": "None",
                    "channelId": "10848970617",
                    "guildId": "108488638812401",
                    "authorId": "940240192923648112",
                    "tags": "[]",
                    "type": "MessageType.default",
                    "authorName": "efebw",
                    "authorDiscriminator": "0",
                    "authorAvatarUrl": "https://cdn.discordapp.com/avatars/940240192923648112/38dc03466ea21e5bb68def23facdb17c.png?size=1024",
                    "authorNickname": "efebw",
                    "channelName": "☕│general",
                    "sentimentScore": "0.2023",
                    "reactions": "[]",
                    "isInThread": "false"
                },
                {
                    "id": "1210599831211343903",
                    "content": "What’s up gang",
                    "createdAt": "2024-02-23 14:51:31.618000+00:00",
                    "editedAt": "None",
                    "channelId": "10848970617",
                    "guildId": "108488638812401",
                    "authorId": "751499394662137968",
                    "tags": "[]",
                    "type": "MessageType.default",
                    "authorName": "amnesia1999",
                    "authorDiscriminator": "0",
                    "authorAvatarUrl": "https://cdn.discordapp.com/avatars/751499394662137968/3789385c6a07ae1e66a054c0677ce606.png?size=1024",
                    "authorNickname": "amnesia1999",
                    "channelName": "☕│general",
                    "sentimentScore": "0.0",
                    "reactions": "[]",
                    "isInThread": "false"
                },
                {
                    "id": "1210598884733222983",
                    "content": "lfg",
                    "createdAt": "2024-02-23 14:47:45.960000+00:00",
                    "editedAt": "None",
                    "channelId": "10848970617",
                    "guildId": "108488638812401",
                    "authorId": "812074928689643562",
                    "tags": "[]",
                    "type": "MessageType.default",
                    "authorName": "solsweep",
                    "authorDiscriminator": "0",
                    "authorAvatarUrl": "https://cdn.discordapp.com/avatars/812074928689643562/9b79d56a315d1b3c15bd35b77ab3186a.png?size=1024",
                    "authorNickname": "solsweep",
                    "channelName": "☕│general",
                    "sentimentScore": "0.0",
                    "reactions": "[]",
                    "isInThread": "false"
                },
                {
                    "id": "1210595633225007114",
                    "content": "<a:peepoFiesta:762083919080062987>",
                    "createdAt": "2024-02-23 14:34:50.740000+00:00",
                    "editedAt": "None",
                    "channelId": "10848970617",
                    "guildId": "108488638812401",
                    "authorId": "231976188992684033",
                    "tags": "[]",
                    "type": "MessageType.default",
                    "authorName": "contradigm",
                    "authorDiscriminator": "0",
                    "authorAvatarUrl": "https://cdn.discordapp.com/avatars/231976188992684033/215e2edeb81ee820c4d5a2825492e9fc.png?size=1024",
                    "authorNickname": "contradigm",
                    "channelName": "☕│general",
                    "sentimentScore": "0.0",
                    "reactions": "[]",
                    "isInThread": "false"
                },
                {
                    "id": "1210595462479085599",
                    "content": "Bruh aint seen him since he won rewd probably in mexico😭",
                    "createdAt": "2024-02-23 14:34:10.031000+00:00",
                    "editedAt": "None",
                    "channelId": "10848970617",
                    "guildId": "108488638812401",
                    "authorId": "604567445532966923",
                    "tags": "[]",
                    "type": "MessageType.default",
                    "authorName": "tgpriv.eth",
                    "authorDiscriminator": "0",
                    "authorAvatarUrl": "https://cdn.discordapp.com/avatars/604567445532966923/7feea1bb3ba1c41710798a423f7f5e03.png?size=1024",
                    "authorNickname": "tgpriv.eth",
                    "channelName": "☕│general",
                    "sentimentScore": "0.5719",
                    "reactions": "[]",
                    "isInThread": "false"
                },
                {
                    "id": "1210595397467373569",
                    "content": "Jersey active",
                    "createdAt": "2024-02-23 14:33:54.531000+00:00",
                    "editedAt": "None",
                    "channelId": "10848970617",
                    "guildId": "108488638812401",
                    "authorId": "604567445532966923",
                    "tags": "[]",
                    "type": "MessageType.default",
                    "authorName": "tgpriv.eth",
                    "authorDiscriminator": "0",
                    "authorAvatarUrl": "https://cdn.discordapp.com/avatars/604567445532966923/7feea1bb3ba1c41710798a423f7f5e03.png?size=1024",
                    "authorNickname": "tgpriv.eth",
                    "channelName": "☕│general",
                    "sentimentScore": "0.4019",
                    "reactions": "[]",
                    "isInThread": "false"
                },
                {
                    "id": "1210595390777458789",
                    "content": "Ayoo",
                    "createdAt": "2024-02-23 14:33:52.936000+00:00",
                    "editedAt": "None",
                    "channelId": "10848970617",
                    "guildId": "108488638812401",
                    "authorId": "587761292341673986",
                    "tags": "[]",
                    "type": "MessageType.default",
                    "authorName": ".misternft",
                    "authorDiscriminator": "0",
                    "authorAvatarUrl": "https://cdn.discordapp.com/avatars/587761292341673986/96b9139fbbde6aaba8e5cd404400ee15.png?size=1024",
                    "authorNickname": ".misternft",
                    "channelName": "☕│general",
                    "sentimentScore": "0.0",
                    "reactions": "[]",
                    "isInThread": "false"
                },
                {
                    "id": "1210595272800075838",
                    "content": "more trying to keep engaging and keep things fun",
                    "createdAt": "2024-02-23 14:33:24.808000+00:00",
                    "editedAt": "None",
                    "channelId": "10848970617",
                    "guildId": "108488638812401",
                    "authorId": "231976188992684033",
                    "tags": "[]",
                    "type": "MessageType.default",
                    "authorName": "contradigm",
                    "authorDiscriminator": "0",
                    "authorAvatarUrl": "https://cdn.discordapp.com/avatars/231976188992684033/215e2edeb81ee820c4d5a2825492e9fc.png?size=1024",
                    "authorNickname": "contradigm",
                    "channelName": "☕│general",
                    "sentimentScore": "0.6908",
                    "reactions": "[]",
                    "isInThread": "false"
                },
                {
                    "id": "1210595252063305738",
                    "content": "Gimme ma dubski",
                    "createdAt": "2024-02-23 14:33:19.864000+00:00",
                    "editedAt": "None",
                    "channelId": "10848970617",
                    "guildId": "108488638812401",
                    "authorId": "604567445532966923",
                    "tags": "[]",
                    "type": "MessageType.default",
                    "authorName": "tgpriv.eth",
                    "authorDiscriminator": "0",
                    "authorAvatarUrl": "https://cdn.discordapp.com/avatars/604567445532966923/7feea1bb3ba1c41710798a423f7f5e03.png?size=1024",
                    "authorNickname": "tgpriv.eth",
                    "channelName": "☕│general",
                    "sentimentScore": "0.0",
                    "reactions": "[\n  {\n    \"count\": 1,\n    \"emoji\": \"🇼\",\n    \"me\": false\n  }\n]",
                    "isInThread": "false"
                }
            ]
        }
    }
}
Blaze AI | Postman API Network
Logo