github.com API: get_file_content
github.com via Parse · developer_tools
Retrieves file content (decoded text) or a directory listing from a repository path. Files return decoded UTF-8 text; directories return a listing of child items with their types and sizes. Extract comprehensive data from GitHub repositories and user profiles including repo details, source code, README content, releases, issues with conversations, file trees, and user profiles. Fulfilled by Parse from github.com.
- b2b-directory
- developer-tools
- github-com
- parse
- platform-key
- social-media
Price and execution
- Price
- $0.02 USD credits / call
- Trust tier
- Verified
- Execution
- Managed call
- Capability group
- developer_tools
Interface snapshot
- Protocol
- HTTP operation
- Operation
- POST /scraper/c62c5062-8f8d-4477-ba78-2b9c68a1788b/get_file_content
- Interface artifact
- sha256:46870330c89904d5d9542d7a84a1b438175e0f36809d9f3d5ce092e64cc12505
- Manifest digest
- sha256:99afad0a18115b1f68add7502f683438c165e3e28ed4ea2bdd6e6b46d4e99769
Request fields
- ref (string): Git ref (branch, tag, or commit SHA)
- path (string): File or directory path within the repo. Empty string returns root directory.
- repo (string, required): Repository name
- owner (string, required): Repository owner
Example queries
- {"path":"package.json","repo":"react","owner":"facebook"}