GitHub Trends (Official GitHub API snapshots)
Pricing
Pay per event
GitHub Trends (Official GitHub API snapshots)
Pricing
Pay per event
You can access the GitHub Trends (Official GitHub API snapshots) programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in API & Integrations in Apify Console.
{ "openapi": "3.0.1", "info": { "version": "0.1", "x-build-id": "AlwSZisevupwT6RTV" }, "servers": [ { "url": "https://api.apify.com/v2" } ], "paths": { "/acts/shadowell~github-trends/run-sync-get-dataset-items": { "post": { "operationId": "run-sync-get-dataset-items-shadowell-github-trends", "x-openai-isConsequential": false, "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.", "tags": [ "Run Actor" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/inputSchema" } } } }, "parameters": [ { "name": "token", "in": "query", "required": true, "schema": { "type": "string" }, "description": "Enter your Apify token here" } ], "responses": { "200": { "description": "OK" } } } }, "/acts/shadowell~github-trends/runs": { "post": { "operationId": "runs-sync-shadowell-github-trends", "x-openai-isConsequential": false, "summary": "Executes an Actor and returns information about the initiated run in response.", "tags": [ "Run Actor" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/inputSchema" } } } }, "parameters": [ { "name": "token", "in": "query", "required": true, "schema": { "type": "string" }, "description": "Enter your Apify token here" } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/runsResponseSchema" } } } } } } }, "/acts/shadowell~github-trends/run-sync": { "post": { "operationId": "run-sync-shadowell-github-trends", "x-openai-isConsequential": false, "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.", "tags": [ "Run Actor" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/inputSchema" } } } }, "parameters": [ { "name": "token", "in": "query", "required": true, "schema": { "type": "string" }, "description": "Enter your Apify token here" } ], "responses": { "200": { "description": "OK" } } } } }, "components": { "schemas": { "inputSchema": { "type": "object", "properties": { "mode": { "title": "Mode", "enum": [ "query", "snapshot" ], "type": "string", "description": "snapshot: scheduled daily job that records current stargazers_count/forks_count of all tracked repos. query: computes exact stars/forks gained per category between stored snapshots.", "default": "query" }, "window": { "title": "Window", "enum": [ "7d", "30d", "custom" ], "type": "string", "description": "Query window ending today (UTC). 'custom' uses startDate/endDate.", "default": "7d" }, "startDate": { "title": "Start date (custom)", "type": "string", "description": "Baseline UTC day (YYYY-MM-DD) for a custom window." }, "endDate": { "title": "End date (custom)", "type": "string", "description": "End UTC day (YYYY-MM-DD) for a custom window; default today." }, "comparePrevious": { "title": "Compare to previous period", "type": "boolean", "description": "Also compute the previous equal-length period (needs older snapshots) and report change %.", "default": true }, "categories": { "title": "Categories subset", "type": "array", "description": "Only use these category names (built-in or custom). Empty = all.", "items": { "type": "string" } }, "customCategories": { "title": "Custom categories", "type": "array", "description": "List of {\"name\", \"topics\": [...], \"keywords\": [...], \"languages\": [...]}. Topics are also used to discover repos via the Search API." }, "topN": { "title": "Top N per category", "minimum": 1, "maximum": 200, "type": "integer", "description": "Repo rows per category in query mode.", "default": 10 }, "minStarsGained": { "title": "Min stars gained", "type": "integer", "description": "Repo rows need at least this many stars gained.", "default": 1 }, "githubToken": { "title": "GitHub token", "type": "string", "description": "Personal access token (no scopes needed for public data). Effectively required for snapshot mode: enables GraphQL batching and 5,000 points/requests per hour vs 60 REST requests/hour without." }, "maxReposPerCategory": { "title": "Max repos per category", "minimum": 10, "maximum": 1000, "type": "integer", "description": "Cap on repos discovered per category when building the tracked universe.", "default": 200 }, "universeMinStars": { "title": "Universe min stars", "minimum": 0, "type": "integer", "description": "Minimum total stars for the 'top by stars' search queries.", "default": 100 }, "searchTopicsPerCategory": { "title": "Search topics per category", "minimum": 1, "maximum": 10, "type": "integer", "description": "How many of a category's topics are used as Search API queries.", "default": 3 }, "risersCreatedWithinDays": { "title": "Fast risers: created within days", "minimum": 7, "type": "integer", "description": "Also search repos created within this many days with >=50 stars (newly popular projects).", "default": 90 }, "universeRefreshDays": { "title": "Universe refresh interval (days)", "minimum": 1, "type": "integer", "description": "Rebuild the tracked universe via Search API when older than this.", "default": 7 }, "forceUniverseRefresh": { "title": "Force universe refresh", "type": "boolean", "description": "Rebuild the tracked universe on this run.", "default": false }, "keepPreviouslyTracked": { "title": "Keep previously tracked repos", "type": "boolean", "description": "When rebuilding, keep repos tracked before so their history continues.", "default": true }, "extraRepos": { "title": "Extra repos to track", "type": "array", "description": "Additional owner/name repos to always snapshot.", "items": { "type": "string" } }, "graphqlBatchSize": { "title": "GraphQL batch size", "minimum": 1, "maximum": 100, "type": "integer", "description": "Repositories per GraphQL query (token only).", "default": 50 }, "snapshotStoreName": { "title": "Snapshot store name", "type": "string", "description": "Named key-value store for daily snapshots (snap-YYYY-MM-DD).", "default": "github-trends-snapshots" }, "metaStoreName": { "title": "Metadata store name", "type": "string", "description": "Named key-value store for the tracked universe and repo metadata.", "default": "github-trends-meta" } } }, "runsResponseSchema": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "actId": { "type": "string" }, "userId": { "type": "string" }, "startedAt": { "type": "string", "format": "date-time", "example": "2025-01-08T00:00:00.000Z" }, "finishedAt": { "type": "string", "format": "date-time", "example": "2025-01-08T00:00:00.000Z" }, "status": { "type": "string", "example": "READY" }, "meta": { "type": "object", "properties": { "origin": { "type": "string", "example": "API" }, "userAgent": { "type": "string" } } }, "stats": { "type": "object", "properties": { "inputBodyLen": { "type": "integer", "example": 2000 }, "rebootCount": { "type": "integer", "example": 0 }, "restartCount": { "type": "integer", "example": 0 }, "resurrectCount": { "type": "integer", "example": 0 }, "computeUnits": { "type": "integer", "example": 0 } } }, "options": { "type": "object", "properties": { "build": { "type": "string", "example": "latest" }, "timeoutSecs": { "type": "integer", "example": 300 }, "memoryMbytes": { "type": "integer", "example": 1024 }, "diskMbytes": { "type": "integer", "example": 2048 } } }, "buildId": { "type": "string" }, "defaultKeyValueStoreId": { "type": "string" }, "defaultDatasetId": { "type": "string" }, "defaultRequestQueueId": { "type": "string" }, "buildNumber": { "type": "string", "example": "1.0.0" }, "containerUrl": { "type": "string" }, "usage": { "type": "object", "properties": { "ACTOR_COMPUTE_UNITS": { "type": "integer", "example": 0 }, "DATASET_READS": { "type": "integer", "example": 0 }, "DATASET_WRITES": { "type": "integer", "example": 0 }, "KEY_VALUE_STORE_READS": { "type": "integer", "example": 0 }, "KEY_VALUE_STORE_WRITES": { "type": "integer", "example": 1 }, "KEY_VALUE_STORE_LISTS": { "type": "integer", "example": 0 }, "REQUEST_QUEUE_READS": { "type": "integer", "example": 0 }, "REQUEST_QUEUE_WRITES": { "type": "integer", "example": 0 }, "DATA_TRANSFER_INTERNAL_GBYTES": { "type": "integer", "example": 0 }, "DATA_TRANSFER_EXTERNAL_GBYTES": { "type": "integer", "example": 0 }, "PROXY_RESIDENTIAL_TRANSFER_GBYTES": { "type": "integer", "example": 0 }, "PROXY_SERPS": { "type": "integer", "example": 0 }, "PROXY_UNBLOCKER_UNITS": { "type": "integer", "example": 0 } } }, "usageTotalUsd": { "type": "number", "example": 0.00005 }, "usageUsd": { "type": "object", "properties": { "ACTOR_COMPUTE_UNITS": { "type": "integer", "example": 0 }, "DATASET_READS": { "type": "integer", "example": 0 }, "DATASET_WRITES": { "type": "integer", "example": 0 }, "KEY_VALUE_STORE_READS": { "type": "integer", "example": 0 }, "KEY_VALUE_STORE_WRITES": { "type": "number", "example": 0.00005 }, "KEY_VALUE_STORE_LISTS": { "type": "integer", "example": 0 }, "REQUEST_QUEUE_READS": { "type": "integer", "example": 0 }, "REQUEST_QUEUE_WRITES": { "type": "integer", "example": 0 }, "DATA_TRANSFER_INTERNAL_GBYTES": { "type": "integer", "example": 0 }, "DATA_TRANSFER_EXTERNAL_GBYTES": { "type": "integer", "example": 0 }, "PROXY_RESIDENTIAL_TRANSFER_GBYTES": { "type": "integer", "example": 0 }, "PROXY_SERPS": { "type": "integer", "example": 0 }, "PROXY_UNBLOCKER_UNITS": { "type": "integer", "example": 0 } } } } } } } } }}OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.
OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.
By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.
You can download the OpenAPI definitions for GitHub Trends (Official GitHub API snapshots) from the options below:
If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.
You can also check out our other API clients: