# Using API to get pairwise latencies from nodes?

**URL:** <https://forum.ripe.net/t/using-api-to-get-pairwise-latencies-from-nodes/531>\
**Category:** RIPE Atlas\
**Created:** [12 June 2023 10:20 UTC](https://forum.ripe.net/t/using-api-to-get-pairwise-latencies-from-nodes/531 "2023-06-12T10:20:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mustafa\_Gezer](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.ripe.net/mustafa_gezer/32/283_2.png) [@Mustafa\_Gezer](https://forum.ripe.net/u/Mustafa_Gezer)\
**Post date:** [12 June 2023 10:20 UTC](https://forum.ripe.net/t/using-api-to-get-pairwise-latencies-from-nodes/531/1 "2023-06-12T10:20:42Z")

</div>

How can I use the API from RIPE to collect latency data for a set of nodes (or all maybe)? I need the pairwise latencies. So each latency to all other nodes for a given node. Do I have to measure this myself using credits or is this kind of data already available? My understanding is that if I had to measure myself I would need to use credits. As I am a student at the Technical Universitsy of Berlin and need this dataset for my bachelor thesis could there be a possibility to not spend money?

---

<div class="post-metadata">

**Author:** ![robertk](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.ripe.net/robertk/32/413_2.png) [@robertk](https://forum.ripe.net/u/robertk)\
**Post date:** [12 June 2023 12:44 UTC](https://forum.ripe.net/t/using-api-to-get-pairwise-latencies-from-nodes/531/2 "2023-06-12T12:44:15Z")

</div>

Measuring _towards_ probes is usually hard, mostly because many probes are behind NATs.

I suggest you look at “anchoring measurements” - where anchors are in a full mesh, pinging and tracing each other. This likely has what you’re after.

---

<div class="post-metadata">

**Author:** ![geryescalier](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.ripe.net/geryescalier/32/305_2.png) [@geryescalier](https://forum.ripe.net/u/geryescalier)\
**Post date:** [29 June 2023 09:28 UTC](https://forum.ripe.net/t/using-api-to-get-pairwise-latencies-from-nodes/531/3 "2023-06-29T09:28:54Z")

</div>

Hello @Mustafa_Gezer I comment with some information, I hope it helps:

API :  
It is possible that the documentation web will help a little in case you did not see it before [RIPE Atlas docs | REST API Manual | Docs](https://atlas.ripe.net/docs/apis/rest-api-manual/)

Latency data:  
At the moment I have no data if this has been done before, and the data is up to date.  
In the following link you can see information about the probes and anchors [Atlas Console](https://atlas.ripe.net/results/maps/network-coverage/)

Credits:  
In case you require credits, you do not currently have them, because you have little time to acquire them (you can generate your credits by adopting a physical or software probe or several [RIPE Atlas docs | Credits | Docs](https://atlas.ripe.net/docs/getting-started/credits.html)) you can request donations from the community, explaining your project, I have read on the mailing list cases similar to yours, requesting donations of credits.

A good option is also to ask on the mailing list.  
[The ripe-atlas June 2023 Archive by thread — RIPE Network Coordination Centre](https://www.ripe.net/ripe/mail/archives/ripe-atlas/2023-June/thread.html) there are many users who can also help you with your doubts and credit requirements for your project.

Greetings!

---

<div class="post-metadata">

**Author:** ![BrianBryan](https://avatars.discourse-cdn.com/v4/letter/b/eb9ed0/32.png) [@BrianBryan](https://forum.ripe.net/u/BrianBryan)\
**Post date:** [24 July 2023 13:56 UTC](https://forum.ripe.net/t/using-api-to-get-pairwise-latencies-from-nodes/531/4 "2023-07-24T13:56:56Z")

</div>

I am currently working on my research [project](https://dailysportsupdates.com/) that involves collecting latency data for a set of nodes using the RIPE API. I need to obtain pairwise latencies between nodes, which will be crucial for my analysis. I am concerned about the costs involved in conducting these measurements as they require credits. As a student at the Technical University of Berlin, budget constraints are a concern for me. I was wondering if there is any possibility of obtaining credits or any special academic initiatives from RIPE. I really value the RIPE Atlas platform and the data it provides, and it would be incredibly beneficial for my project.

---

<div class="post-metadata">

**Author:** ![jterbeest](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.ripe.net/jterbeest/32/30_2.png) [@jterbeest](https://forum.ripe.net/u/jterbeest)\
**Post date:** [25 July 2023 12:45 UTC](https://forum.ripe.net/t/using-api-to-get-pairwise-latencies-from-nodes/531/5 "2023-07-25T12:45:03Z")

</div>

If you need credits for your research, you can send a request to [atlas@ripe.net](mailto:atlas@ripe.net) and we will happily help you out. You can also ask on the atlas mailing list: [ripe-atlas@ripe.net](mailto:ripe-atlas@ripe.net). Many people will give you credits if you explain what it is you’re trying to do.

For measurements between probes, you can also look at IXP country jedi which has ways to do measurements between probes. It’s a good source for how to script something like this. You can find the source code here: [GitHub - emileaben/ixp-country-jedi: Set of scripts to measure and analyse countries and/or IXPs using RIPE Atlas](https://github.com/emileaben/ixp-country-jedi)

If any probes will do then the anchoring measurements are your best bet as already suggested.

Good luck with your research,  
Johan

---

<div class="post-metadata">

**Author:** ![denizcan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.ripe.net/denizcan/32/463_2.png) [@denizcan](https://forum.ripe.net/u/denizcan)\
**Post date:** [24 May 2024 09:56 UTC](https://forum.ripe.net/t/using-api-to-get-pairwise-latencies-from-nodes/531/6 "2024-05-24T09:56:58Z")

</div>

Thanks @geryescalier
