खुला डेटा
डेटा और API, किसी के भी पुन: उपयोग के लिए
Scoring rules 0.4 (14 Nov 2026), scores built 2026-11-14 21:20 UTC. Use them in a classroom, a newsroom or a paper; cite the version.
फ़ाइलें
nationsrelations-pairs.csv: the scores and key facts of all 18,721 pairs (one row per pair, codes in alphabetical order).nationsrelations-countries.csv: the 194 countries with ISO codes and UN regional group./api/v1/meta: नियमों का संस्करण, बिल्ड की तारीख़, डेटा की अवधियाँ, स्रोत, लाइसेंस।/api/v1/votemap: 1946 से हर वर्ष का संयुक्त राष्ट्र मतदान मानचित्र और हर अवधि के मतदान गुट (Nations on Record)। जोड़ी के उत्तरों मेंtrade_agreements_and_sanctionsभी होता है; देश के उत्तरों मेंvoting_blocऔरsanctions_regimesहोते हैं।
जोड़ियों वाली फ़ाइल के कॉलम
| कॉलम | अर्थ |
|---|---|
a | ISO 3166-1 alpha-3 code of the country that comes first alphabetically |
b | code of the other country |
a_name | name of a |
b_name | name of b |
index | relationship index, -100 to +100; empty when votes or trade are missing |
label | Very close, Close, Neutral, Distant, Opposed or Not enough data |
votes | UN votes score, -100 to +100 (how close b stands among a's voting partners, and a among b's) |
trade | trade score, 0 to 100 (dependence of the more dependent side, log scale) |
security | security score, -100 to +100 (UCDP: fighting on opposite sides pulls down, NATO and fighting side by side push up) |
clubs | shared clubs score, 0 to 100 |
same_vote | share of recorded General Assembly votes cast the same way, last three years with data (0 to 1) |
trade_usd_per_year | goods trade both ways, US dollars a year, last three years with data |
trade_share_a | that trade as a share of all of a's trade (0 to 1) |
trade_share_b | that trade as a share of all of b's trade (0 to 1) |
shared_groups | tracked groups both belong to, separated by semicolons |
opposed_last_year | latest year UCDP records them on opposite sides as main parties or with troops; empty if never |
sentences_a_to_b | sentences in General Debate speeches, 1946 on, in which a names b |
sentences_b_to_a | sentences in which b names a |
topic_all_votes | vote agreement on all roll-call votes since 2010 (same measure as the topic columns) |
topic_disarmament | the same on disarmament votes |
topic_middle_east | the same on middle east votes |
topic_human_rights | the same on human rights votes |
topic_colonialism | the same on colonialism votes |
topic_nuclear_weapons | the same on nuclear weapons votes |
topic_economic_development | the same on economic development votes |
shared_votes_headline | shared whole-text roll-call votes in the years the headline vote agreement covers |
confidence_votes | how much data the votes score stands on: high, medium, low or none (see /method#confidence) |
API
केवल पढ़ने के लिए JSON, किसी भी वेबसाइट के लिए खुला (CORS)। न कुंजी, न खाता। कृपया संयम रखें: जोड़ी वाला एंडपॉइंट सस्ता है, पर जो आप लाते हैं उसे कैश करें।
curl https://nationsrelations.org/api/v1/pair/irn-usa # either order of the codes works: irn-usa or usa-irn
curl https://nationsrelations.org/api/v1/country/deu
curl https://nationsrelations.org/api/v1/meta
curl https://nationsrelations.org/api/v1/changes # what moved in the last rebuilds of the scores
जोड़ी के उत्तर में सूचकांक, चारों स्कोर, उनके पीछे के तथ्य, वार्षिक शृंखला (मतदान सहमति, दोनों दिशाओं में निर्यात, एक-दूसरे का नाम लेने वाले वाक्य), पन्ने, PDF तथ्य-पत्र और शेयर कार्ड के लिंक, और नियमों के संस्करण के साथ meta खंड होता है। कोड हमेशा वर्णानुक्रम में होते हैं (a पहले, फिर b), इसलिए exports_a_to_b का अर्थ हर उत्तर में एक ही होता है।
एक जोड़ी एम्बेड करें
हर जोड़ी को एक छोटे कार्ड के रूप में एम्बेड किया जा सकता है: दोनों देश, सूचकांक और चारों स्कोर, साथ में वापसी का लिंक। जोड़ी पन्ने के ऊपर की पट्टी में एम्बेड का उपयोग करें, या यह चिपकाएँ:
<iframe src="https://nationsrelations.org/embed/p/irn-usa" width="520" height="330" style="border:0;max-width:100%" loading="lazy" title="NationsRelations: Iran and United States"></iframe>
The card updates when the scores do and carries the rules version and build date. Editors and chat tools that speak oEmbed can take the plain page address: https://nationsrelations.org/oembed?url=https://nationsrelations.org/p/irn-usa (JSON only). Same licence as everything else here. Embed pages are not indexed by search engines.
लाइसेंस
हमारे स्कोर और पाठ: CC BY-NC 4.0 (श्रेय देकर पुन: उपयोग करें, व्यावसायिक उद्देश्यों के लिए नहीं)। स्रोत डेटा के अपने लाइसेंस हैं:
- Country context (not scored, not in the downloads): World Bank World Development Indicators (CC BY 4.0), IMF World Economic Outlook, SIPRI Military Expenditure Database, V-Dem electoral democracy index (CC BY-SA 4.0, via Our World in Data), all through Nations on Record
- Nations on Record: UN General Assembly votes (Voeten et al.; UN Digital Library), General Debate speeches (Harvard Dataverse), IMF International Trade in Goods
- Uppsala Conflict Data Program, Dyadic and Battle-Related Deaths datasets, version 26.1 (CC BY 4.0)
- UN DESA International Migrant Stock 2024 (CC BY 3.0 IGO)
- UNHCR Refugee Population Statistics (CC BY 4.0)
- International football results 1872 to present, Mart Jürisoo (CC0)
- WTO Regional Trade Agreements database (trade agreements; reuse with attribution)
- EU Sanctions Map (EU and UN regimes, (c) European Union), OFAC (US Treasury, public domain), gov.uk (UK, Open Government Licence v3.0)
कैसे उद्धृत करें
NationsRelations. (2026). Pair scores of 18,721 country pairs [scoring rules 0.4 (14 Nov 2026), scores built 2026-11-14]. https://nationsrelations.org/data
संदर्भ प्रबंधकों के लिए: CITATION.cff (Citation File Format)।
स्थिरता
- पन्नों के पते नहीं बदलते: जोड़ियों के लिए
/p/<iso3>-<iso3>, देशों के लिए/c/<iso3>। पन्ने पर कोई स्कोर तब बदल सकता है जब डेटा या नियम बदलें; पन्ने पर, हर फ़ाइल में और हर PDF में दिए नियमों के संस्करण और बिल्ड की तारीख़ बताते हैं कि कौन-सा। - नियमों या डेटा के हर बदलाव की तारीख़ क्या बदला पर दर्ज है, साथ में Atom फ़ीड। सुधार भी वहीं सूचीबद्ध हैं।
- API का संस्करण 1 फ़ील्ड नहीं हटाएगा और उनके नाम नहीं बदलेगा; नए फ़ील्ड जोड़े जा सकते हैं।