Midio docs
  • Getting Started
    • Welcome
    • Quick Start Guide
  • Your First Midio App
  • Guides
    • HTTP
      • Making HTTP Requests
      • Responding to HTTP Requests
      • How to reach your own endpoints
      • CORS
      • Server-Sent Events (SSE)
    • Branching
    • Loops
    • Map, filter, reduce
    • Working with Data
    • Expressions
    • Building Agents
      • Streaming Agent API (experimental)
    • Debugging
    • Secrets and Environment variables
    • Convert JSON to data nodes
    • Writing tests
    • Cleaning up your flows
  • Package Manager
  • Integrating with third party services
  • Troubleshooting
  • Tutorials
    • Connecting LLMs to MCP-servers using the MCP-client package
    • Making Your Own MCP Server in Midio
    • A Fast Path to Functional RAG Agents
    • How to build a streaming agent using Server-Sent Events (SSE)
  • Reference
    • The Midio Editor
      • The Node Editor
      • User Traces
      • Traces (execution)
      • Processes
      • Log
      • Services
      • Problems
      • Function Signature
      • Data
      • Settings
    • The Midio Language
      • Nodes and execution
      • Functions and Events
        • Anonymous functions
      • Modules
      • Contexts
      • Data type
      • Local variables
      • Portals
      • Waypoint node
      • Partial function application
  • The Midio Engine
  • Built in Nodes
    • Core (std)
    • HTTP
    • LLM
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub

Integrating with third party services

PreviousPackage ManagerNextTroubleshooting

Last updated 15 days ago

Was this helpful?

There are two main ways of using third party services with Midio. If the service has a corresponding package in the , then that is a good place to go. If not, then it is usually not that diffcult to make the integration yourself using .

Integrating using Http.Fetch

As long as the service you're trying to integrate with has a REST api available, then it should be pretty simple to use it with Midio.

Lets make an integration with (which requires no API key) as a simple example.

If the service you're integrating with requires an API key, check out the .

You can make a request to this api by adding an Http Fetch node, and pasting the base url into the url input like we do above.

The various API endpoints can be reached by modifying the url, but lets make some nodes that wrap the API in a nicer way.

Making a nicer wrapper

First, lets convert this node into a reusable function; right click on the node, and select 'Convert to function'. Give it a name, like PokeAPI Base.

This will give us a node without any inputs and output. Click it press the 'goto definition' button in the node toolbar, or 'g' on the keyboard.

Adding inputs and outputs is super simple. Simply start creating an arrow by clicking a socket on the Fetch node, then control/cmd-click anywhere on the canvas to automatically create an input/output.

This function can now serve as a base for us to make custom functions for the various endpoints of PokeAPI.

As an example, here is a wrapper for the "pokemon" endpoint.

Which can then be used like so:

package manager
https://pokeapi.co/
docs on secrets here
Http.Fetch