API & Automation Tools

n8n

Pipe data4ai into any workflow with the HTTP Request node.

All integrations

Log in — Log in to auto-fill your API key in these snippets.

Setup

  1. 1

    In your n8n workflow, add an HTTP Request node.

  2. 2

    Set Method to GET and URL to the endpoint below.

  3. 3

    Under Authentication choose Generic Credential Type → Header Auth, with name X-Api-Key and your API key as value.

  4. 4

    Add query parameters (game, team, from, to, limit) and run the node. Use /esports/results for history or /esports/matches/upcoming for the next matches.

  5. 5

    Chain any node: Google Sheets, Slack, Postgres, Notion, an AI Agent…

URL
https://data4ai.xyz/api/v1/esports/results

Or import this ready-made node

n8n · HTTP Request node (paste into canvas)
{
  "nodes": [
    {
      "parameters": {
        "url": "https://data4ai.xyz/api/v1/esports/matches/upcoming",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "game",
              "value": "counter-strike-2"
            },
            {
              "name": "limit",
              "value": "25"
            }
          ]
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "X-Api-Key",
              "value": "YOUR_API_KEY"
            }
          ]
        },
        "options": {}
      },
      "name": "data4ai · Upcoming matches",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        0,
        0
      ]
    }
  ],
  "connections": {}
}