Use

You can use micros from their own pages or via the API we provide. Browserless Micros is currently deployed serverless. Browser processes can run for up to 20 seconds without interruption.

API Usage

Micro can be triggered with a POST request in your favorite software language.

JavaScript Example

const MICRO_URL = "/micros/run/micro-name"
const body = {
    search: "Test"
};

fetch(MICRO_URL, {
    method: "POST",
    headers: {
        "Content-Type": "application/json",
        "x-api-key": "MY-API-KEY"
    },
    body: JSON.stringify(body)
})
.then(res => res.json())
.then(console.log)

Request returns the following response:

{
    "status": true,
    "output": ..
}

status: Returns true if the micro worked fine, false if the micro has failed.

output: This data is reserved for the micro, if the micro is performing an operation it can return true when it has finished successfully, or it can return array if it is collecting information, it is entirely up to the micro, the response is in the micro's own page.