API Documentation
Interactive REST API for NetCores network analysis
https://netcores.fi.uba.ar/api
Quick Start
The NetCores API provides programmatic access to network analysis functionality. All endpoints return JSON responses with standardized error handling.
Authentication
All read endpoints are public and need no authentication. The two endpoints that start data updates (POST /api/refresh, POST /api/scheduler/update) require Authorization: Bearer <ADMIN_TOKEN> and are disabled on the public server. GET responses carry an ETag and may be cached for an hour; data changes monthly.
Common Response Codes
200- Success400- Bad Request (validation error)404- Not Found304- Not Modified (your cached copy is current)401/403- Admin token missing or admin endpoints disabled500- Internal Server Error
Check the health status of the NetCores application and data availability.
Response
Get a summary of available data across all IP versions.
Response
Get k-core trend analysis for a specific ASN over time.
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
asn |
integer | Yes | Autonomous System Number | 3356 |
ip_version |
string | No | IP version (ipv4 or ipv6) | ipv4 |
start_date |
string | No | Start date (YYYY-MM-DD) | 2020-01-01 |
end_date |
string | No | End date (YYYY-MM-DD) | 2024-01-01 |
Example Request
Response
Get k-core trend analysis for multiple ASNs with comparative data.
Request Body
Example Request
Response
Trigger a refresh of AS-relationship data from CAIDA sources.
Authorization: Bearer <ADMIN_TOKEN>. On the public server this returns 403 admin_disabled: data updates run automatically every month.Request Body
Response
Get the current status of the automatic update scheduler.
Response
Trigger a manual check for new data and update the database if new snapshots are available.
Authorization: Bearer <ADMIN_TOKEN>. On the public server this returns 403 admin_disabled: data updates run automatically every month.Response
Get information about available network snapshots in the database.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
ip_version |
string | No | Filter by IP version (ipv4 or ipv6) |
Response
Cacheable, shareable version of the POST endpoint. Parameters: asns (comma-separated, up to 20), ip_version, start_date, end_date. The response includes names with each AS's display name, registry name, organization and country.
Example
For every snapshot: the maximum shell index, how many ASes are in the innermost core (core_size) and how many ASes are in the graph (total_asns).
Example
ASes in the innermost core of a snapshot. date (YYYY-MM-DD) picks the latest snapshot on or before it; min_normalized (0.5-1.0, default 1.0) widens the list to near-core ASes.
Example
Largest rises and falls in normalized shell index between the latest snapshot and the one months earlier. min_level (default 0.5) ignores ASes that stay below it in both snapshots. status is new or gone when an AS is absent from one snapshot.
Example
Autocomplete by AS number prefix or name, from CAIDA's AS-to-Organization data plus curated short names.
Example
Display name, registry AS name, organization and country for up to 20 ASNs.
Example
Common ASN References
Major Transit Providers
3356- Level3 (now Lumen)1299- Telia Carrier174- Cogent Communications2914- NTT Communications3257- GTT Communications
Major Content Providers
714- Apple2906- Netflix15169- Google16509- Amazon32934- Facebook (Meta)8075- Microsoft