linkedin

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

LinkedIn clients for Crawlora

Official Crawlora client packages for the hosted LinkedIn API. Access 5 API endpoints covering public company and product catalogue data from JavaScript/TypeScript, Python, Go, Ruby, Java, PHP, and Rust. These clients call Crawlora's hosted API; they do not scrape LinkedIn locally. Requests use your Crawlora account and CRAWLORA_API_KEY; service usage follows your account billing plan. Crawlora is independent from and not affiliated with or endorsed by LinkedIn or its owners.

Language packages

For installation and runnable examples, use the README for your language. See the API endpoint and parameter reference for shared operation details.

Create an account at crawlora.net, open the Crawlora console to get an API key, or read the API documentation. Keep CRAWLORA_API_KEY out of source control.

API coverage and supported endpoints

The seven language clients provide access to all 5 selected public LinkedIn API operations. Search or browse by endpoint path and operation ID below; the complete API reference adds parameters, enums, and response details.

Method Endpoint API operation Description
GET /linkedin/company/{id} linkedin-company Get LinkedIn Company info by ID
GET /linkedin/product/categories linkedin-product-categories Discover LinkedIn product categories
GET /linkedin/product/{id} linkedin-product Get LinkedIn Product info by ID
GET /linkedin/products/search linkedin-products-search Search the LinkedIn product directory
GET /linkedin/showcase/{id} linkedin-showcase Get Linkedin Showcase Page Info

License

MIT. See LICENSE.

Documentation

Overview

Package linkedin is Crawlora's LinkedIn API client for 5 endpoints, covering public company and product catalogue data. API documentation: https://crawlora.net/docs?utm_source=pkg.go.dev&utm_medium=referral&utm_campaign=platform-clients&utm_content=linkedin-go-api-docs

Index

Examples

Constants

View Source
const (
	DefaultBaseURL = "https://api.crawlora.net/api/v1"
	Version        = "0.1.0"
)
View Source
const OperationCount = 5

OperationCount reports how many selected-platform operations this module exposes.

Variables

This section is empty.

Functions

func OperationIDs

func OperationIDs() []string

OperationIDs returns the selected operation IDs in stable sorted order.

Types

type Client

type Client struct {
	APIKey     string
	BaseURL    string
	Timeout    time.Duration
	HTTPClient *http.Client
}

Client calls only the operation IDs included in this platform module.

func NewClient

func NewClient(apiKey string) *Client

NewClient creates a client using the supplied API key, or CRAWLORA_API_KEY when empty.

func (*Client) Call

func (c *Client) Call(ctx context.Context, operationID string, params Params) (any, error)

Call executes a selected platform operation by operation ID.

Example
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
	w.Header().Set("Content-Type", "application/json")
	_, _ = w.Write([]byte(`{"ok":true}`))
}))
defer server.Close()

client := NewClient("your-crawlora-api-key")
client.BaseURL = server.URL + "/api/v1"
client.HTTPClient = server.Client()
result, err := client.Call(context.Background(), "linkedin-company", Params{"id": "sample-id"})
if err != nil {
	panic(err)
}
fmt.Println(result.(map[string]any)["ok"])
Output:
true

func (*Client) Close

func (c *Client) Close() error

Close releases idle connections held by the configured HTTP transport.

func (*Client) Company

func (c *Client) Company(ctx context.Context, params Params) (any, error)

Company calls the linkedin-company operation.

func (*Client) Product

func (c *Client) Product(ctx context.Context, params Params) (any, error)

Product calls the linkedin-product operation.

func (*Client) ProductCategories

func (c *Client) ProductCategories(ctx context.Context, params Params) (any, error)

ProductCategories calls the linkedin-product-categories operation.

func (*Client) ProductsSearch

func (c *Client) ProductsSearch(ctx context.Context, params Params) (any, error)

ProductsSearch calls the linkedin-products-search operation.

func (*Client) Showcase

func (c *Client) Showcase(ctx context.Context, params Params) (any, error)

Showcase calls the linkedin-showcase operation.

type Params

type Params map[string]any

Params maps the exact OpenAPI parameter names expected by this platform client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL