References
List Licenses
Retrieve a paginated list of open access licenses.
GET
/
references
/
licenses
curl -X GET "https://api.hexagraph.in/references/licenses?page=1&per_page=25"
fetch("https://api.hexagraph.in/references/licenses?page=1&per_page=25")
.then(response => response.json())
.then(data => console.log(data));
import requests
response = requests.get(
"https://api.hexagraph.in/references/licenses",
params={"page": 1, "per_page": 25}
)
print(response.json())
{
"meta": {
"count": 14,
"page": 1,
"per_page": 25
},
"results": [
{
"id": 11,
"code": "apache-2-0",
"name": "Apache License 2.0",
"url": "https://spdx.org/licenses/Apache-2.0.html",
"description": "A permissive license requiring copyright notices and providing patent rights.",
"outputs_count": null,
"cited_by_count": null,
"created_date": "2024-04-12T17:15:12.000Z",
"updated_date": "2024-04-12T17:15:17.000Z"
}
]
}
{
"statusCode": 400,
"message": "Bad Request - Invalid query parameters",
"error": "Bad Request"
}
{
"statusCode": 429,
"message": "Rate limit exceeded. Maximum 30 requests per minute.",
"error": "Too Many Requests"
}
Retrieves a paginated list of licenses.
Query Parameters
integer
default:"1"
Page number for pagination. Default is
1.integer
default:"25"
Results per page. Allowed values:
10, 25, 50, 100.Response Fields
object
required
array
required
Array of license records.
Show results item attributes
Show results item attributes
integer
License ID.
string
License identifier code (e.g.,
apache-2-0).string
License display name.
string
Official license documentation URL.
string
Brief summary of license permissions and requirements.
integer
Total research outputs count using this license.
integer
Total citations count.
string
Creation timestamp.
string
Last updated timestamp.
curl -X GET "https://api.hexagraph.in/references/licenses?page=1&per_page=25"
fetch("https://api.hexagraph.in/references/licenses?page=1&per_page=25")
.then(response => response.json())
.then(data => console.log(data));
import requests
response = requests.get(
"https://api.hexagraph.in/references/licenses",
params={"page": 1, "per_page": 25}
)
print(response.json())
{
"meta": {
"count": 14,
"page": 1,
"per_page": 25
},
"results": [
{
"id": 11,
"code": "apache-2-0",
"name": "Apache License 2.0",
"url": "https://spdx.org/licenses/Apache-2.0.html",
"description": "A permissive license requiring copyright notices and providing patent rights.",
"outputs_count": null,
"cited_by_count": null,
"created_date": "2024-04-12T17:15:12.000Z",
"updated_date": "2024-04-12T17:15:17.000Z"
}
]
}
{
"statusCode": 400,
"message": "Bad Request - Invalid query parameters",
"error": "Bad Request"
}
{
"statusCode": 429,
"message": "Rate limit exceeded. Maximum 30 requests per minute.",
"error": "Too Many Requests"
}
⌘I
curl -X GET "https://api.hexagraph.in/references/licenses?page=1&per_page=25"
fetch("https://api.hexagraph.in/references/licenses?page=1&per_page=25")
.then(response => response.json())
.then(data => console.log(data));
import requests
response = requests.get(
"https://api.hexagraph.in/references/licenses",
params={"page": 1, "per_page": 25}
)
print(response.json())
{
"meta": {
"count": 14,
"page": 1,
"per_page": 25
},
"results": [
{
"id": 11,
"code": "apache-2-0",
"name": "Apache License 2.0",
"url": "https://spdx.org/licenses/Apache-2.0.html",
"description": "A permissive license requiring copyright notices and providing patent rights.",
"outputs_count": null,
"cited_by_count": null,
"created_date": "2024-04-12T17:15:12.000Z",
"updated_date": "2024-04-12T17:15:17.000Z"
}
]
}
{
"statusCode": 400,
"message": "Bad Request - Invalid query parameters",
"error": "Bad Request"
}
{
"statusCode": 429,
"message": "Rate limit exceeded. Maximum 30 requests per minute.",
"error": "Too Many Requests"
}