Skip to content

Soraclee/riotgames-news-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

League of Legends News

A free API returning League of Legends news.

The information is updated automatically every day at 00:00.

API Endpoints (LOL)

All News :

English : https://soraclee.github.io/riotgames-news-api/data/lol/allNewsEn.json

Français : https://soraclee.github.io/riotgames-news-api/data/lol/allNewsFr.json

Dev News :

English : https://soraclee.github.io/riotgames-news-api/data/lol/devEn.json

Français : https://soraclee.github.io/riotgames-news-api/data/lol/devFr.json

Esports News :

English : https://soraclee.github.io/riotgames-news-api/data/lol/esportsEn.json

Français : https://soraclee.github.io/riotgames-news-api/data/lol/esportsFr.json

Game Updates :

English : https://soraclee.github.io/riotgames-news-api/data/lol/gameUpdatesEn.json

Français : https://soraclee.github.io/riotgames-news-api/data/lol/gameUpdatesFr.json

Lore :

English : https://soraclee.github.io/riotgames-news-api/data/lol/loreEn.json

Français : https://soraclee.github.io/riotgames-news-api/data/lol/loreFr.json

Media :

English : https://soraclee.github.io/riotgames-news-api/data/lol/mediaEn.json

Français : https://soraclee.github.io/riotgames-news-api/data/lol/mediaFr.json

Patch Notes :

English : https://soraclee.github.io/riotgames-news-api/data/lol/patchNoteEn.json

Français : https://soraclee.github.io/riotgames-news-api/data/lol/patchNoteFr.json

API Endpoints (VALORANT)

All News :

English : https://soraclee.github.io/riotgames-news-api/data/valorant/allNewsEn.json

Français : https://soraclee.github.io/riotgames-news-api/data/valorant/allNewsFr.json

Patch Notes :

English : https://soraclee.github.io/riotgames-news-api/data/valorant/patchNoteEn.json

Français : https://soraclee.github.io/riotgames-news-api/data/valorant/patchNoteFr.json

Dev News :

English : https://soraclee.github.io/riotgames-news-api/data/valorant/devEn.json

Français : https://soraclee.github.io/riotgames-news-api/data/valorant/devFr.json

Esports News :

English : https://soraclee.github.io/riotgames-news-api/data/valorant/esportsEn.json

Français : https://soraclee.github.io/riotgames-news-api/data/valorant/esportsFr.json

Community News :

English : https://soraclee.github.io/riotgames-news-api/data/valorant/communityEn.json

Français : https://soraclee.github.io/riotgames-news-api/data/valorant/communityFr.json

Example Response

[
    {
        "title": "TFT Macao Open Finals Ceremony",
        "publishedAt": "2024-12-17T05:00:00.000Z",
        "action": {
            "type": "youtube_video",
            "payload": {
                "youtubeId": "WTXErU9aYz0",
                "url": "https://www.youtube.com/watch?v=WTXErU9aYz0"
            }
        },
        "product": {
            "title": "League of Legends (en-gb)",
            "machineName": "league_of_legends",
            "id": "product.league_of_legends.en-gb",
            "media": {
                "provider": "sanity",
                "type": "image",
                "dimensions": {
                    "height": 24,
                    "width": 24,
                    "aspectRatio": 1
                },
                "url": "https://cmsassets.rgpub.io/sanity/images/dsfx7636/content_organization_live/b9cd574bddb9469fdf95f753ddf0c6b13501a247-24x24.svg",
                "colors": {
                    "primary": "#c89b3c",
                    "secondary": "#1f1f1f",
                    "label": "#1f1f1f"
                },
                "mimeType": "image/svg+xml"
            }
        },
        "media": {
            "provider": "sanity",
            "type": "image",
            "dimensions": {
                "height": 1080,
                "width": 1920,
                "aspectRatio": 1.7777777777777777
            },
            "url": "https://cmsassets.rgpub.io/sanity/images/dsfx7636/news/0b0ec597be654aa0f2f02a5af6b028cf0ea867f5-1920x1080.jpg",
            "colors": {
                "primary": "#29254A",
                "secondary": "#F3DCF9",
                "label": "#0A0820"
            },
            "mimeType": "image/jpeg"
        },
        "description": {
            "type": "html",
            "body": "Watch Now"
        },
        "category": {
            "title": "Esports",
            "description": "The world stage for professional League of Legends.",
            "machineName": "esports"
        },
        "analytics": {
            "contentId": "0514347d-750d-4af0-ad51-71f91d890e4f.en-gb",
            "contentLocale": "en-gb",
            "rev": "Qw0TwPQaQ8aBM3BST8L7Lh",
            "publishDate": "2024-12-17T05:00:00.000Z"
        }
    },
    ...