Repository Metadata
Returns the metadata associated with a repository.
URL
GET https://api.synodic.ai/v0/{user}/{repo}
Headers
- x-api-key:
YOUR_API_KEY
(string, optional)
Path Parameters
- {user}: username (string)
- {repo}: repository name (string)
Example Request
- Bash
- Python
- Node.js
- Rust
curl -X GET "https://api.synodic.ai/v0/{user}/{repo}" -H "x-api-key: YOUR_API_KEY"
import requests
headers = {
"x-api-key": "YOUR_API_KEY"
}
response = requests.get("https://api.synodic.ai/v0/{user}/{repo}", headers=headers)
print(response.json())
const axios = require('axios');
const headers = {
"x-api-key": "YOUR_API_KEY"
};
axios.get("https://api.synodic.ai/v0/{user}/{repo}", { headers })
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});
use reqwest;
fn main() {
let client = reqwest::blocking::Client::new();
let response = client.get("https://api.synodic.ai/v0/{user}/{repo}")
.header("x-api-key", "YOUR_API_KEY")
.send()
.expect("Failed to send request");
println!("{:?}", response.text());
}
Example Response
{
"classes": [
"apple",
"banana"
],
"description": "Detecting apples and bananas",
"images": [
"synodic.31086ot9.0Es1A1oo.jpg",
"synodic.EW2295A7.WR169wL7.jpg",
"synodic.Agm8l275.c16Q6988.jpg",
"synodic.w2847B01.493NW7s0.jpg",
],
"models": [
"fx0MVR",
"p8kHuG",
"4qPEam",
]
}