What is P's API?

P's API is an Web Application Programming Interface made by AlexP_. It contains Frolov's Cipher API, Countries API and P's ID API (Soon)

The API is free-to-use, but if You want to use it, please live the following HTML code on Your web-site:

<a href="http://alexp.su/" target="_blank"><img src="http://alexp.su/api/credit.svg" alt="Thanks to AlexP_ for his API"></a>

Thanks to AlexP_ for his API

Current P's API Version is 1.0

Frolov's Cipher API

The Web API of my Cipher (Frolov's Cipher). It accepts GET requests and returns a JSON-encoded data.

The main article: Frolov's Cipher

Encrypting the Phrase:


PHP Example

<?php json_decode(file_get_contents('http://alexp.su/api/frolovcipher/encrypt/?str=Twoja%20Linia&k1=3&lang=pl')); ?>



Tag Example Description
str Twoja Linia The string You need to encrypt
k1 3 The multiplier ((so called) public key), that used only to encrypt Your Phrase
lang pl The alphabet, that You are using in Your Phrase. The available alphabets are: English, Russian, Polish


Tag Example Description
str FĄGAEACGC ĆDCEDĆCEC The encrypted String
key 3-2-2-2-2-1-2-2-2-2-1 The (so called) private key, that used only to decrypt Your Phrase

Decrypting the Phrase:




Tag Example Description
str Twoja Linia The string You need to decrypt
key 3-2-2-2-2-1-2-2-2-2-1 The divider ((so called) private key), that used only to decrypt Your Phrase
lang pl The alphabet, that You are using in Your Phrase. The available alphabets are: English, Russian, Polish


Tag Example Description
str TWOJA LINIA The decrypted String

Countries API

The Web API that contains data about most of the Countries. It accepts GET requests and returns files.

The main article: Countries API



Available files:

Some files may be missing, due to my laziness 😅. But there always will be info.json file

File Name Description
flag.svg The Flag of the Country (Mostly taken from Wikipedia)
anthem.mp3 The National Anthem of the Country
info.json See the following table


The structure of info.json file

Parameter Description
official_name The Official Name of The Country
short_name The Short Name of The Country
nativelang_name The Official Name of The Country on The Official Language(s) of The Country

Available Countries (I will soon add more):

Flag Country's Official Name Country's Short Name Country's Official Name on this Country's Language(s) Country's Abbreviation Country's National Anthem
Republic of AbkhaziaRepublic of AbkhaziaAbkhaziaАԥсны Аҳәынҭқарраab
Principality of AndorraPrincipality of AndorraAndorraPrincipat d'Andorraad
Islamic Republic of AfghanistanIslamic Republic of AfghanistanAfghanistanجمهوری اسلامی افغانستانaf
Antigua and BarbudaAntigua and BarbudaAntigua and BarbudaAntigua and Barbudaag
Republic of AlbaniaRepublic of AlbaniaAlbaniaRepublika e Shqipërisëal
Republic of ArmeniaRepublic of ArmeniaArmeniaՀայաստանի Հանրապետությունam
Republic of AngolaRepublic of AngolaAngolaRepública de Angolaao
Argentine RepublicArgentine RepublicArgentinaRepública Argentinaar
Republic of AustriaRepublic of AustriaAustriaRepublik Österreichat
Commonwealth of AustraliaCommonwealth of AustraliaAustraliaCommonwealth of Australiaau
Republic of AzerbaijanRepublic of AzerbaijanAzerbaijanAzərbaycanaz
Bosnia and HerzegovinaBosnia and HerzegovinaBosnia and HerzegovinaBosna i Hercegovinaba
People's Republic of BangladeshPeople's Republic of BangladeshBangladeshগণপ্রজাতন্ত্রী বাংলাদেশbd
Kingdom of BelgiumKingdom of BelgiumBelgiumKoninkrijk Belgiëbe
Burkina FasoBurkina FasoBurkina FasoBurkina Fasobf
Republic of BulgariaRepublic of BulgariaBulgariaРепублика Българияbg
Kingdom of BahrainKingdom of BahrainBahrainمملكة البحرينbh
Republic of BurundiRepublic of BurundiBurundiRepubulika y’u Burundibi
Republic of BeninRepublic of BeninBeninRépublique du Béninbj
Nation of Brunei, the Abode of PeaceNation of Brunei, the Abode of PeaceBruneiNegara Brunei Darussalambn
Plurinational State of BoliviaPlurinational State of BoliviaBoliviaEstado Plurinacional de Boliviabo
Federative Republic of BrazilFederative Republic of BrazilBrazilRepública Federativa do Brasilbr
Commonwealth of The BahamasCommonwealth of The BahamasThe BahamasCommonwealth of The Bahamasbs
Kingdom of BhutanKingdom of BhutanBhutanའབྲུག་རྒྱལ་ཁབ་bt
Republic of BotswanaRepublic of BotswanaBotswanaLefatshe la Botswanabw
Republic of BelarusRepublic of BelarusBelarusРэспубліка Беларусьby
Democratic Republic of the CongoDemocratic Republic of the CongoDRCRépublique démocratique du Congocd
Central African RepublicCentral African RepublicCARKödörösêse tî Bêafrîkacf
Republic of the CongoRepublic of the CongoCongoRépublique du Congocg
Republic of ChileRepublic of ChileChileRepública de Chilecl
Republic of CameroonRepublic of CameroonCameroonRépublique du Camerouncm
People's Republic of ChinaPeople's Republic of ChinaChina中华人民共和国cn
Republic of ColombiaRepublic of ColombiaColombiaRepública de Colombiaco
Republic of Cabo VerdeRepublic of Cabo VerdeCape VerdeRepública de Cabo Verdecv
Federal Republic of GermanyFederal Republic of GermanyGermanyBundesrepublik Deutschlandde
People's Democratic Republic of AlgeriaPeople's Democratic Republic of AlgeriaAlgeriaالجمهورية الجزائرية الديمقراطية الشعبيةdz
European UnionEuropean UnionEUEuropäische Unioneu
French RepublicFrench RepublicFranceRépublique Françaisefr
Hong Kong Special Administrative Region of the People's Republic of ChinaHong Kong Special Administrative Region of the People's Republic of ChinaHong Kong中華人民共和國香港特別行政區hk
Italian RepublicItalian RepublicItalyRepubblica Italianait
Kingdom of CambodiaKingdom of CambodiaCambodiaព្រះរាជាណាចក្រកម្ពុជាkh
Union of the ComorosUnion of the ComorosComorosUmoja wa Komorikm
Democratic People's Republic of KoreaDemocratic People's Republic of KoreaNorth Korea조선민주주의인민공화국kp
Republic of KoreaRepublic of KoreaSouth Korea대한민국kr
Republic of PolandRepublic of PolandPolandRzeczpospolita Polskapl
Russian FederationRussian FederationRussiaРоссийская Федирацияru
Union of Soviet Socialist RepublicsUnion of Soviet Socialist RepublicsSoviet UnionСоюз Советских Социалистических Республикsu
Republic of ChadRepublic of ChadChadجمهورية تشادtd
Republic of ChinaRepublic of ChinaTaiwan中華民國tw
United Kingdom of Great Britain and Northern IrelandUnited Kingdom of Great Britain and Northern IrelandUnited KingdomUnited Kingdom of Great Britain and Northern Irelanduk
United States of AmericaUnited States of AmericaUnited StatesUnited States of Americaus