Chuyển đến nội dung
Tất cả trang web
Data API

Github Data API

Dữ liệu JSON có cấu trúc, theo yêu cầu, tích hợp sẵn vượt anti-bot.

8 endpointRate Limit được xử lý giúp bạn
github.comGET/github/repos/…GET/github/repos/…GET/github/repos/…{ } JSON

Tổng quan Github Data API

Trích xuất dữ liệu có cấu trúc từ Github dưới dạng JSON có cấu trúc. Chọn một endpoint bên dưới, kiểm tra tham số và chạy trong playground của bảng điều khiển.

/v1/github/… Mở playground

Tính năng chính

JSON có cấu trúc

Bản ghi sạch, đã chuẩn hóa cho dữ liệu có cấu trúc. Bạn không cần phân tích HTML.

8 endpoint

Trên 3 danh mục, tất cả dưới cùng một base path.

Anti-bot được xử lý

Rate Limit được vượt qua giúp bạn ở phía sau.

Dữ liệu trực tiếp ở mỗi lần chạy

Mỗi yêu cầu đều thu thập trực tiếp từ nguồn, nên kết quả luôn mới nhất.

Khu vực và ngôn ngữ

Phủ sóng toàn cầu. Kết quả được trả về theo locale mặc định.

Phân trang

Duyệt qua các trang kết quả bằng page.

Bắt đầu nhanh

Dùng Data API key chuyên dụng của bạn. Làm theo phương thức và tham số của endpoint này.

data_api.py
# Install: pip install requests
import json
import os
import requests

params = json.loads("{\"q\":\"machine learning\",\"sort\":\"stars\",\"limit\":30}")
response = requests.request(
    "GET", "https://api.capzy.ai/v1/github/search/repositories",
    headers={"X-API-Key": os.environ["CAPZY_DATA_API_KEY"]},
    params=params,
    timeout=120,
)
response.raise_for_status()
print(response.json())

Giá theo lượt chạy

request thất bại được miễn phí
EndpointDanh mụcGiá / 1k kết quả
/v1/data/github/repos/{owner}/{repo}RepositoryRepositories1 tín dụng / lượt chạy
/v1/data/github/repos/{owner}/{repo}/commitsRepository CommitsRepositories1 tín dụng / lượt chạy
/v1/data/github/repos/{owner}/{repo}/contributorsRepository ContributorsRepositories1 tín dụng / lượt chạy
/v1/data/github/repos/{owner}/{repo}/issuesRepository IssuesRepositories1 tín dụng / lượt chạy
/v1/data/github/search/repositoriesSearch RepositoriesSearch1 tín dụng / lượt chạy
/v1/data/github/search/usersSearch UsersSearch1 tín dụng / lượt chạy
/v1/data/github/users/{username}User ProfileUsers1 tín dụng / lượt chạy
/v1/data/github/users/{username}/reposUser RepositoriesUsers1 tín dụng / lượt chạy