> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# PredictLeads: Company Github Repositories

> List the GitHub repositories a company owns, from its domain or ID. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

List the GitHub repositories a company owns, from its domain or ID.

> [!NOTE]
>
> Tool ID: `predictleads_company_github_repositories`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'predictleads_company_github_repositories',
  {
    "company_id_or_domain": "example.com"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute predictleads_company_github_repositories --input '{
  "company_id_or_domain": "example.com"
}' --json
```

## Example response

The static output schema lacks the details for a reliable example. Use `deepline describe predictleads_company_github_repositories --json` for the complete live contract.

## Input reference

Returns a list of company's Github Repositories.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.company_id_or_domain` | `string` | Yes | — | Company's ID or domain. |
| `payload.first_seen_at_from` | `string` | No | — | Only return `GithubRepositories` first seen after given date (ISO 8601). Format: `date`. |
| `payload.first_seen_at_until` | `string` | No | — | Only return `GithubRepositories` first seen before given date (ISO 8601). Format: `date`. |
| `payload.page` | `integer` | No | `1` | Page number of shown items. **NOTE**: If the parameter is not provided, the meta property `count` will be omitted from response for performance reasons. Minimum: 1. |
| `payload.limit` | `integer` | No | `100` | Limit the number of shown items per page. Maximum: 1000. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns a list of company's Github Repositories.",
    "properties": {
      "company_id_or_domain": {
        "type": "string",
        "description": "Company's ID or domain."
      },
      "first_seen_at_from": {
        "type": "string",
        "description": "Only return `GithubRepositories` first seen after given date (ISO 8601).",
        "format": "date"
      },
      "first_seen_at_until": {
        "type": "string",
        "description": "Only return `GithubRepositories` first seen before given date (ISO 8601).",
        "format": "date"
      },
      "page": {
        "type": "integer",
        "description": "Page number of shown items. **NOTE**: If the parameter is not provided, the meta property `count` will be omitted from response for performance reasons.",
        "default": 1,
        "minimum": 1
      },
      "limit": {
        "type": "integer",
        "description": "Limit the number of shown items per page.",
        "default": 100,
        "maximum": 1000
      }
    },
    "required": [
      "company_id_or_domain"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Since 2021, PredictLeads has detected some 380,000 public GitHub repositories. GitHub Repositories Dataset covers about 74,000 companies, and provides insight into the frequency of their contribution into their public GitHub repository. |
| `result.data.data` | `array` | Yes | — | — |
| `result.data.data[].id` | `string` | Yes | — | ID of the `GithubRepository` object. Format: `uuid`. |
| `result.data.data[].type` | `"github_repository"` | Yes | — | Type of the `GithubRepository` object. |
| `result.data.data[].attributes` | `object` | Yes | — | Attributes of the `GithubRepository` object. |
| `result.data.data[].attributes.url` | `string` | Yes | — | URL to GitHub repository. Format: `uri`. |
| `result.data.data[].attributes.description` | `string \| null` | Yes | — | Description of GitHub repository. |
| `result.data.data[].attributes.first_seen_at` | `string` | Yes | — | Date & time (ISO 8601) when the GitHub repository was discovered. Format: `date-time`. |
| `result.data.data[].relationships` | `object` | Yes | — | The data contains references to related objects listed in the `included` property. |
| `result.data.data[].relationships.company` | `object` | Yes | — | The data contains a reference to related `CompanyLite` object listed in the `included` property. |
| `result.data.data[].relationships.company.data` | `object` | Yes | — | — |
| `result.data.data[].relationships.company.data.id` | `string` | Yes | — | ID of the included `CompanyLite` object. Format: `uuid`. |
| `result.data.data[].relationships.company.data.type` | `"company"` | Yes | — | Type of the included `CompanyLite` object. |
| `result.data.data[].relationships.timeseries_datapoints` | `object` | Yes | — | The data contains references to related `TimeseriesDatapointGithubRepository` objects listed in the `included` property. |
| `result.data.data[].relationships.timeseries_datapoints.data` | `array` | Yes | — | — |
| `result.data.data[].relationships.timeseries_datapoints.data[].id` | `string` | Yes | — | ID of the included `TimeseriesDatapointGithubRepository` object. Format: `uuid`. |
| `result.data.data[].relationships.timeseries_datapoints.data[].type` | `"timeseries_datapoint"` | Yes | — | Type of the included `TimeseriesDatapointGithubRepository` object. |
| `result.data.included` | `array` | Yes | — | Contains objects referenced in property `relationships`. |
| `result.data.included[].id` | `string` | Yes | — | ID of the `CompanyLite` object. |
| `result.data.included[].type` | `"company"` | Yes | — | Type of the `CompanyLite` object. |
| `result.data.included[].attributes` | `object` | Yes | — | Attributes of the `CompanyLite` object. |
| `result.data.included[].attributes.domain` | `string` | Yes | — | Company domain name. |
| `result.data.included[].attributes.company_name` | `string \| null` | Yes | — | Company name if available. |
| `result.data.included[].attributes.ticker` | `string \| null` | Yes | — | Company stock symbol (ticker) if available. |
| `result.data.included[].attributes.data` | `object` | No | — | — |
| `result.data.included[].attributes.data.forks` | `integer` | Yes | — | Number of times this repository was forked at the creation of this datapoint. |
| `result.data.included[].attributes.data.stars` | `integer` | Yes | — | Number of times this repository was starred at the creation of this datapoint. |
| `result.data.included[].attributes.data.watches` | `integer` | Yes | — | Number of GitHub profiles that were watching this repository at the creation of this datapoint. |
| `result.data.included[].attributes.data.last_update_at` | `string` | Yes | — | Date & time (ISO 8601) of the last update to the repository at the creation of this datapoint. |
| `result.data.meta` | `object` | No | — | Meta information about `GithubRepositoriesDataset` object. |
| `result.data.meta.schema_version` | `string` | Yes | — | Represents schema version of objects. |
| `result.data.meta.record_state` | `"active"` | Yes | — | Represents record state of objects. |
| `result.data.meta.count` | `integer` | No | — | Total number of results. **NOTE**: Only included in API responses when the request parameter `page` is provided, for performance reasons. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Since 2021, PredictLeads has detected some 380,000 public GitHub repositories. GitHub Repositories Dataset covers about 74,000 companies, and provides insight into the frequency of their contribution into their public GitHub repository.",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "The `GithubRepository` object.",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "ID of the `GithubRepository` object.",
                  "format": "uuid"
                },
                "type": {
                  "description": "Type of the `GithubRepository` object.",
                  "const": "github_repository"
                },
                "attributes": {
                  "type": "object",
                  "description": "Attributes of the `GithubRepository` object.",
                  "properties": {
                    "url": {
                      "type": "string",
                      "description": "URL to GitHub repository.",
                      "format": "uri"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Description of GitHub repository."
                    },
                    "first_seen_at": {
                      "type": "string",
                      "description": "Date & time (ISO 8601) when the GitHub repository was discovered.",
                      "format": "date-time"
                    }
                  },
                  "required": [
                    "url",
                    "description",
                    "first_seen_at"
                  ],
                  "additionalProperties": false
                },
                "relationships": {
                  "type": "object",
                  "description": "The data contains references to related objects listed in the `included` property.",
                  "properties": {
                    "company": {
                      "type": "object",
                      "description": "The data contains a reference to related `CompanyLite` object listed in the `included` property.",
                      "properties": {
                        "data": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "ID of the included `CompanyLite` object.",
                              "format": "uuid"
                            },
                            "type": {
                              "description": "Type of the included `CompanyLite` object.",
                              "const": "company"
                            }
                          },
                          "required": [
                            "id",
                            "type"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "data"
                      ],
                      "additionalProperties": false
                    },
                    "timeseries_datapoints": {
                      "type": "object",
                      "description": "The data contains references to related `TimeseriesDatapointGithubRepository` objects listed in the `included` property.",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "ID of the included `TimeseriesDatapointGithubRepository` object.",
                                "format": "uuid"
                              },
                              "type": {
                                "description": "Type of the included `TimeseriesDatapointGithubRepository` object.",
                                "const": "timeseries_datapoint"
                              }
                            },
                            "required": [
                              "id",
                              "type"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "data"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "company",
                    "timeseries_datapoints"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "id",
                "type",
                "attributes",
                "relationships"
              ],
              "additionalProperties": false
            }
          },
          "included": {
            "type": "array",
            "description": "Contains objects referenced in property `relationships`.",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "description": "The `CompanyLite` object.",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "ID of the `CompanyLite` object.",
                      "format": "uuid"
                    },
                    "type": {
                      "description": "Type of the `CompanyLite` object.",
                      "const": "company"
                    },
                    "attributes": {
                      "type": "object",
                      "description": "Attributes of the `CompanyLite` object.",
                      "properties": {
                        "domain": {
                          "type": "string",
                          "description": "Company domain name."
                        },
                        "company_name": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Company name if available."
                        },
                        "ticker": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Company stock symbol (ticker) if available."
                        }
                      },
                      "required": [
                        "domain",
                        "company_name",
                        "ticker"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "attributes"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "description": "The `TimeseriesDatapointGithubRepository` object.",
                  "properties": {
                    "attributes": {
                      "properties": {
                        "data": {
                          "type": "object",
                          "properties": {
                            "forks": {
                              "type": "integer",
                              "description": "Number of times this repository was forked at the creation of this datapoint."
                            },
                            "stars": {
                              "type": "integer",
                              "description": "Number of times this repository was starred at the creation of this datapoint."
                            },
                            "watches": {
                              "type": "integer",
                              "description": "Number of GitHub profiles that were watching this repository at the creation of this datapoint."
                            },
                            "last_update_at": {
                              "type": "string",
                              "description": "Date & time (ISO 8601) of the last update to the repository at the creation of this datapoint.",
                              "format": "date-time"
                            }
                          },
                          "required": [
                            "forks",
                            "stars",
                            "watches",
                            "last_update_at"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            }
          },
          "meta": {
            "type": "object",
            "description": "Meta information about `GithubRepositoriesDataset` object.",
            "properties": {
              "schema_version": {
                "type": "string",
                "description": "Represents schema version of objects."
              },
              "record_state": {
                "type": "string",
                "description": "Represents record state of objects.",
                "const": "active"
              },
              "count": {
                "type": "integer",
                "description": "Total number of results. **NOTE**: Only included in API responses when the request parameter `page` is provided, for performance reasons."
              }
            },
            "required": [
              "schema_version",
              "record_state"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "included"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0.56` per pricing unit.

## Related documentation

* [PredictLeads provider guide](https://deepline.com/docs/providers/predictleads/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.