Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Interact with Microlink API using an Edge Function.

License

NotificationsYou must be signed in to change notification settings

microlinkhq/proxy

Repository files navigation

microlink logomicrolink logo

Interact with Microlink API without exposing your credentials.

Deploy with Vercel

Motivation

Interacting directly withMicrolink API from frontend side is one of the most common scenarios.

However, it could be a risk security scenario if you are exposing yourx-api-key, being possible that anyone can steal it and consume your API quota.

For preventing that, this tiny microservice allows you interact with Microlink API without compromising your credentials.

Usage

Deploy this service, setting up the necessaries environment variables.

After that, every time you need to interact with Microlink API, just call the microservice URL instead.

If you are usingmql, setup it asendpoint parameter:

constmql=require('@microlink/mql')mql('https://microlink.io',{endpoint:'https://edge-proxy.microlink.io'})

Environment Variables

API_KEY

Required
Type:string

Your Microlink API key used toauthenticate your requests.

ORIGINS

Type:string|string[]

The list of allowed domains authorized to consume your Microlink API credentials.

Note domains should be provided in theURL.origin format (e.g.,'https://example.com').

API_ENDPOINT

Type:string
Default:https://pro.microlink.io

The Microlink API endpoint used for sending the requests.

License

edge-proxy ©Microlink, released under theMIT License.
Authored and maintained byKiko Beats with help fromcontributors.

microlink.io · GitHubmicrolinkhq · Twitter@microlinkhq

About

Interact with Microlink API using an Edge Function.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp