API & RSS DocumentationAccess Anime Data Programmatically
REST API Overview
Our REST API provides programmatic access to all anime data in our collection. All endpoints return JSON responses and support CORS for cross-origin requests.
Base URL
https://ans.fansub.id/api
Response Format
application/json
Available Endpoints
GET
/api/anime
- Get all animeGET
/api/anime/[slug]
- Get specific animeGET
Get All AnimeEndpoint
https://ans.fansub.id/api/anime
Description
Retrieve all anime in the collection
Example Response
{
"success": true,
"count": 5,
"data": [
{
"id": "uuid",
"title": "Attack on Titan Final Season",
"slug": "attack-on-titan-final-season",
"description": "The epic conclusion...",
"cover_image": "https://example.com/image.jpg",
"category": "TV",
"genre": ["Action", "Drama"],
"status": "Completed",
"studio": "Studio Ghibli",
"language": "Sub",
"episodes_count": 12,
"created_at": "2024-01-01T00:00:00Z",
"url": "https://ans.fansub.id/anime/attack-on-titan-final-season"
}
]
}
GET
Get Single AnimeEndpoint
https://ans.fansub.id/api/anime/[slug]
Description
Retrieve specific anime by slug
Example Response
{
"success": true,
"data": {
"id": "uuid",
"title": "Attack on Titan Final Season",
"slug": "attack-on-titan-final-season",
"description": "The epic conclusion...",
"cover_image": "https://example.com/image.jpg",
"trailer": "https://youtube.com/watch?v=...",
"category": "TV",
"genre": ["Action", "Drama"],
"status": "Completed",
"studio": "Studio Ghibli",
"season": "Fall",
"season_year": 2023,
"language": "Sub",
"episodes_count": 12,
"episodes": [
{
"episode_number": 1,
"download_link": "https://example.com/episode1"
}
],
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"url": "https://ans.fansub.id/anime/attack-on-titan-final-season"
}
}
RSS Feed
Subscribe to our RSS feed to get notified about new anime releases and updates. The feed includes full anime details, cover images, and direct links.
RSS Feed URL
https://ans.fansub.id/rss/anime.xml
Feed Features
- • Complete anime information including title, description, and studio
- • Cover images and thumbnails
- • Genre and category information
- • Episode count and language information
- • Direct links to anime pages
- • Trailer links when available
Implementation Examples
JavaScript/Fetch
// Fetch all anime
fetch('https://ans.fansub.id/api/anime')
.then(response => response.json())
.then(data => {
console.log('Anime count:', data.count);
console.log('Anime list:', data.data);
});
// Fetch specific anime
fetch('https://ans.fansub.id/api/anime/attack-on-titan-final-season')
.then(response => response.json())
.then(data => {
console.log('Anime details:', data.data);
});
cURL
# Get all anime
curl -X GET "https://ans.fansub.id/api/anime"
# Get specific anime
curl -X GET "https://ans.fansub.id/api/anime/attack-on-titan-final-season"
Python
import requests
# Fetch all anime
response = requests.get('https://ans.fansub.id/api/anime')
data = response.json()
print(f"Found {data['count']} anime")
# Fetch specific anime
response = requests.get('https://ans.fansub.id/api/anime/attack-on-titan-final-season')
anime = response.json()['data']
print(f"Title: {anime['title']}")
print(f"Episodes: {anime['episodes_count']}")
Important Notes
Rate Limits
- • No rate limits currently enforced
- • Please be respectful with request frequency
- • Cache responses when possible
CORS Support
- • All endpoints support CORS
- • Can be used from any domain
- • Suitable for client-side applications
Data Updates
API data is updated in real-time when new anime is added or existing entries are modified. RSS feed is regenerated automatically and cached for optimal performance.