Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

How to use the API ?

Skid edited this page Feb 24, 2018 · 17 revisions

It is really simple.

Every request will return a json file.

If you want a random picture from all languages, just call https://rcgp.nsa.ovh/api If you need a specific language, you can check the list of languages by calling https://rcgp.nsa.ovh/api/?listlanguages And with that you can specify the language you want by calling https://rcgp.nsa.ovh/api/?language=

If a want C++ for exemple : https://rcgp.nsa.ovh/api/?language=cpp

cpp

If json isn't your thing and you want a picture directly, you can use the raw api.

If you want a random picture from all languages, just call https://rcgp.nsa.ovh/raw.php If you need a specific language, you can check the list of languages by calling https://rcgp.nsa.ovh/raw.php?listlanguages And with that you can specify the language you want by calling https://rcgp.nsa.ovh/raw.php?language=

If a want JavaScript for exemple : https://rcgp.nsa.ovh/api/?language=js

js

Clone this wiki locally