HarborHarbor
DocumentationGuidesPlugins
All plugins

Perplexity API

Perplexity Sonar API for models, search, and web-grounded responses

APICategory: aiPopularity 86perplexity_api

Perplexity Sonar API for models, search, and web-grounded responses

Install

hrbr plugins install perplexity-api

Harbor calls https://api.perplexity.ai (driven by the upstream OpenAPI spec).

Quick start

hrbr exec 'return await perplexity_api.get({ /* see schema */ })'

Or from a Function:

import { defineOrbitJob } from "@hrbr/orbit";

export default defineOrbitJob({
  name: "perplexity-api-example",
  handler: async (ctx) => {
    return await ctx.plugins.perplexity_api.list({ limit: 5 });
  },
});

Tools

Tools are generated from the upstream OpenAPI spec. Inspect with:

hrbr plugins tools perplexity-api

Or open the dashboard plugin page for the live tool list.