CodeHub.am API Documentation

Access our repository data and resources through our RESTful API. Build amazing applications with our developer tools.

API Endpoints

All available endpoints with their parameters and responses

GET

/api/v1?repositories

Returns the complete list of repositories in JSON format

Response Example:

{
    "status": "success",
    "data": [
        {
            "id": 1,
            "name": "KamurJ.Core",
            "description": "Core framework for .NET applications",
            "url": "https://github.com/codehub-am/KamurJ.Core"
        },
        ...
    ]
}
GET

/api/v1?stories

Returns development stories and changelogs in JSON format

Response Example:

{
    "status": "success",
    "data": [
        {
            "id": 1,
            "title": "Version 2.0 Release",
            "date": "2023-11-15",
            "content": "Complete rebranding to CodeHub.am"
        },
        ...
    ]
}

Authentication

How to authenticate with our API

vpn_key

API Keys

Currently no authentication required for public endpoints. Future versions may implement API keys for advanced features.

https

HTTPS Required

All API requests must be made over HTTPS. HTTP requests will be redirected.

speed

Rate Limiting

60 requests per minute per IP address. Exceeding this limit will result in temporary restrictions.

Code Examples

How to use our API in different languages

JavaScript
PHP
Python
cURL
fetch('https://codehub.am/api/v1?repositories')
  .then(response => response.json())
  .then(data => {
    console.log('Repositories:', data);
  })
  .catch(error => {
    console.error('Error:', error);
  });
$response = file_get_contents('https://codehub.am/api/v1?repositories');
$data = json_decode($response, true);

if ($data) {
    echo "Repositories:";
    print_r($data);
} else {
    echo "Error fetching data";
}
import requests

response = requests.get('https://codehub.am/api/v1?repositories')
data = response.json()

print("Repositories:", data)
curl -X GET "https://codehub.am/api/v1?repositories" \
  -H "Accept: application/json"

Ready to Build Something Amazing?

Start integrating with our API today and unlock the power of CodeHub.am

api Explore API
Join CodeHub Pro
diamond
Unlock premium features and support our development
Upgrade Now
no located no located