Mobility API
o2 · Company
Transit API can be used to obtain time-aggregated data representing moving the people between various spatial points within the Czech Republic. Having A - 'from' and B - 'to' points, the API can return count of people traveling from A to B or people that are from A and traveling to B, etc. The mobility data is based on moving mobile stations in O2 mobile network.
Authentication
Sample Requests
Information about versions of application and data.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/o2.cz/mobility/1.2.0/info"
import requests
response = requests.get(
"https://api.apis.guru/v2/specs/o2.cz/mobility/1.2.0/info",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/o2.cz/mobility/1.2.0/info'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/o2.cz/mobility/1.2.0/info"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/o2.cz/mobility/1.2.0/info")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/o2.cz/mobility/1.2.0/info";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Get count of objects that were moving between basic residential units or objects that were visiting these basic residential units. Specific object's occurence type in the base residential unit can be requested. If none occurence type is present in the request or both occurence types are zero, the re
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/o2.cz/mobility/1.2.0/transit/{from}/{to}?toType=example&uniques=example&fromType=example"import requests
params = {
"toType": "example",
"uniques": "example",
"fromType": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/o2.cz/mobility/1.2.0/transit/{from}/{to}",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/o2.cz/mobility/1.2.0/transit/{from}/{to}');
url.searchParams.set('toType', 'example');
url.searchParams.set('uniques', 'example');
url.searchParams.set('fromType', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/o2.cz/mobility/1.2.0/transit/{from}/{to}")
q := baseURL.Query()
q.Set("toType", "example")
q.Set("uniques", "example")
q.Set("fromType", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/o2.cz/mobility/1.2.0/transit/{from}/{to}")
uri.query = URI.encode_www_form({
"toType" => "example",
"uniques" => "example",
"fromType" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/o2.cz/mobility/1.2.0/transit/{from}/{to}?" . http_build_query([
"toType" => "example",
"uniques" => "example",
"fromType" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Mobility API?
Mobility API is a Company API. Developers commonly use company APIs for:
- enriching CRM records with company firmographics
- building lead-generation and prospecting tools
- verifying business identity and registration details
- monitoring competitors and market intelligence
- powering B2B data enrichment pipelines
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Mobility API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?