littlesis
LittleSis — people, organizations, and the ties between them
Query the LittleSis API — an open database of powerful people and organizations and their relationships (employment, board seats, ownership, investment, and donations). Use it to investigate who worked where, who funds an organization, or who sits on a board.
No API key required (the API is rate-limited; HTTP 503 means "Rate Limit Exceeded").
Start with littlesisSearch to resolve a name to an ID. Then use littlesisConnections for connected entities by name, or littlesisRelationships for amounts, dates, and roles. Relationship records identify both entities by ID.
Relationship categories are friendly strings: position (employment/roles), education, membership, family, donation, transaction, lobbying, social, professional, ownership, hierarchy, generic.
Usage
import { littlesisSearch, littlesisConnections } from "std::data/people/littlesis"
node main() {
const hits = littlesisSearch("Andreessen Horowitz") catch []
if (hits.length > 0) {
const linked = littlesisConnections(hits[0].id, "ownership") catch []
for (e in linked) { print("${e.type} ${e.name}") }
}
}Types
Entity
A LittleSis person or organization. type is "Person" or "Org". relationshipId/relationshipCategory are populated only on connections results.
/** A LittleSis person or organization. `type` is "Person" or "Org".
`relationshipId`/`relationshipCategory` are populated only on connections results. */
export type Entity = {
id: number;
name: string;
type: string;
blurb: string;
types: string[];
aliases: string[];
website: string;
url: string;
relationshipId?: number;
relationshipCategory: string
}(source)
Relationship
One relationship whose entity1Id and entity2Id identify LittleSis entities.
/** One relationship whose entity1Id and entity2Id identify LittleSis entities. */
export type Relationship = {
id: number;
category: string;
categoryId: number;
entity1Id: number;
entity2Id: number;
description1: string;
description2: string;
amount?: number;
startDate: string;
endDate: string;
isCurrent?: boolean
}(source)
Effects
std::littlesis
effect std::littlesis {
op: string;
query: string
}(source)
Functions
littlesisSearch
littlesisSearch(
name: string,
page: number = 1,
): Result<Entity[]> raises <std::littlesis, std::http::fetchJSON>Find people and organizations in LittleSis by name.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
| name | string | ||
| page | number | 1 | The result page, starting at one, with ten entries per page. |
Returns: Result<Entity[]>
Throws: std::littlesis, std::http::fetchJSON
Needs: network
(source)
littlesisEntity
littlesisEntity(
id: number,
): Result<Entity> raises <std::littlesis, std::http::fetchJSON>Read a LittleSis person or organization profile.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
| id | number | An entity ID returned by a LittleSis search or connection listing. |
Returns: Result<Entity>
Throws: std::littlesis, std::http::fetchJSON
Needs: network
(source)
littlesisRelationships
littlesisRelationships(
id: number,
category: string = "",
sort: string = "",
): Result<Relationship[]> raises <std::littlesis, std::http::fetchJSON>List an entity's relationships with roles, amounts, and dates. Edges carry entity IDs, not names; use littlesisConnections for neighbor names.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
| id | number | An entity ID returned by a LittleSis search or connection listing. | |
| category | string | "" | Use position, education, membership, family, donation, transaction, lobbying, social, professional, ownership, hierarchy, or generic, or empty for all categories. |
| sort | string | "" | Use "amount", "oldest", or "recent", or empty for the source default. |
Returns: Result<Relationship[]>
Throws: std::littlesis, std::http::fetchJSON
Needs: network
(source)
littlesisConnections
littlesisConnections(
id: number,
category: string = "",
): Result<Entity[]> raises <std::littlesis, std::http::fetchJSON>List the people and organizations connected to an entity, by name. The preferred first hop for "who is X tied to".
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
| id | number | An entity ID returned by a LittleSis search or connection listing. | |
| category | string | "" | Use position, education, membership, family, donation, transaction, lobbying, social, professional, ownership, hierarchy, or generic, or empty for all categories. |
Returns: Result<Entity[]>
Throws: std::littlesis, std::http::fetchJSON
Needs: network
(source)