Skip to main content

The LIR Portal "My Resources" API


The LIR Portal offers an API that allows you to fetch all information available about your Internet number resources in JSON and XML format. These are the data sets that are available:

  • Autonoumous System Numbers (ASNs)
  • IPv4 Allocations
  • IPv4 Assignments
  • IPv4 Legacy Resources
  • IPv6 Allocations
  • IPv6 Assignments

It is also possible to fetch various data sets grouped together, such as all information related to IPv4 in one overview. The output contains various details about your resources such as registration date, status, related ticket number and the link to the relevant RIPE Database object.

Creating an API Access Key

Because the information contained in My Resources is private for your LIR, it is only accessible through the API after creating an access key. In order to this, please follow these steps:

  1. Log into the LIR Portal with a user account that has administrator credentials
  2. Click the API Access Keys link in the Tools section
  3. Create a key for the My Resources API

Please note that the value of the key is displayed only once, when it is created, and the hashed value is stored in the database. You are responsible for maintaining your keys. You can create as many keys as you like and revoke unused keys as needed.

After creating an API Access Key, the management screen will allow you to select a data set and output format. After clicking the "Show me" button, you will get a sample curl request.

Fetching the data sets

Call URL Formatting

The main service URL for the My Resources API is:

The URL is appended by the desired data set, the access key and the output format as follows:

Appending the desired data set:

Data set parameter

Autonomous System Numbers


IPv4 Allocations


IPv4 Assignments


IPv4 Legacy Resources


All IPv4 information grouped


IPv6 Allocations


IPv6 Assignments


All IPv6 information grouped


All resource information grouped

<leave empty>

 Appending the output format:


Appending the key:

They key can be passed to the request as a URL parameter or as a request header value. We strongly recommend using the header to pass the API Key, so that the key is not stored in any server logs.

--header 'ncc-api-authorization: <api-key>' 

Call URL Example

If you would like to fetch an overview of all your IPv4 Allocations in JSON format, you would use the following curl command:
curl '' \
     --header 'ncc-api-authorization: b7f6d966-f33e-4617-b4d7-3b940eded779'

Data Format Samples


    "ipv4Allocations": [
            "prefix": "",
            "registrationDate": "1993-09-01",
            "size": "2048",
            "status": "ALLOCATED_PA",
            "ticket": {
                "showTicketUrl": "",
                "ticketNumber": "NCC#2012030284"
            "whoisQueryUrl": ""
    "regid": "nl.ripencc-ts"


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<lir-resources regid="nl.ripencc-ts">
            <ticket show-ticket-url="" id="NCC#2012030284"/>