Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

linkup-sdk

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linkup-sdk

A Javascript Client SDK for the Linkup API

latest
Source
npmnpm
Version
2.7.0
Version published
Weekly downloads
20K
33.46%
Maintainers
3
Weekly downloads
 
Created
Source

🚀 Linkup JS/TS SDK

npm package License: MIT downloads

A JS/TS SDK for the Linkup API, allowing easy integration with Linkup's services.

🌟 Features

  • Simple and intuitive API client.
  • 🔍 Supports both standard and deep search queries.
  • 🔒 Handles authentication and request management.

📦 Installation

Simply install the Linkup JS SDK using npm or any other package manager:

npm i linkup-sdk

📚 Documentation

Find the complete documentation here.

🛠️ Usage

Setting Up Your Environment

1. 🔑 Obtain an API Key:

Sign up on Linkup to get your API key.

2. ⚙️ Set-up the API Key:

Pass the Linkup API key to the Linkup Client when creating it.

import { LinkupClient } from 'linkup-js-sdk';

const client = new LinkupClient({
  apiKey: '<YOUR API KEY>',
});

📋 Search Endpoint

All search queries can be used with two very different modes:

  • with standard depth, the search will be straightforward and fast, suited for relatively simple queries (e.g. "What's the weather in Paris today?")
  • with deep depth, the search will use an agentic workflow, which makes it in general slower, but it will be able to solve more complex queries (e.g. "What is the company profile of LangChain accross the last few years, and how does it compare to its concurrents?")

📝 Example standard search query

import { LinkupClient } from 'linkup-js-sdk';

const client = new LinkupClient({
  apiKey: '<YOUR API KEY>',
});

const askLinkup = () => client.search({
  query: 'Can you tell me which women were awared the Physics Nobel Prize',
  depth: 'standard',
  outputType: 'sourcedAnswer',
});

askLinkup()
  .then(console.log);
  .catch(console.error);

⬇️ Fetch Endpoint

You can use the fetch endpoint to retrieve the content of a given URL in clean markdown format.

Use renderJs to execute the JavaScript code of the page before returning the content.

Use includeRawHtml to get the raw HTML of the page.

Use extractImages to get an extracted list of images from the page.

📝 Example

import { LinkupClient } from 'linkup-js-sdk';

const client = new LinkupClient({
  apiKey: '<YOUR API KEY>',
});

const fetchLinkup = async () => client.fetch({
  url: 'https://docs.linkup.so',
  renderJs: true,
});

fetchLinkup()
  .then(console.log)
  .catch(console.error);

Keywords

linkup

FAQs

Package last updated on 02 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts