API

Api description will be here...

Base api url is https://defiteller.com

Returns a sorted list of dapps.

get

Returns a sorted list of dapps with filters by blockchain and category.

Authorizations
AuthorizationstringOptional

Token-based authentication with required prefix "Token"

Query parameters
blockchain_idarrayOptional

Array of blockchan identifiers

category_idarrayOptional

Array of category identifiers

locationstring · enumOptional

Language code

Default: enPossible values:
pageintegerOptional

Page number

Default: 1
per_pageintegerOptional

Quantity per page

Default: 10
sortstring · enumOptional

Sorting field

Default: txcountPossible values:
sort_typestring · enumOptional

Sorting type

Default: descPossible values:
timeinteger · enumRequired

Last time interval

Possible values:
Responses
200Success
application/json
get
/api/dapps/top
GET /api/dapps/top?time=1 HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
{
  "dapps": [
    {
      "id": 1,
      "name": "text",
      "logo": "text",
      "logo_white": "text",
      "link": "text",
      "blockchain": [
        {
          "id": 1,
          "name": "text",
          "logo": "text",
          "logo_white": "text",
          "is_active": true,
          "link": "text"
        }
      ],
      "categories": [
        {
          "id": 1,
          "type": "text",
          "name": "text",
          "logo": "text",
          "icon_name": "text",
          "link": "text"
        }
      ],
      "users": 1,
      "txcount": 1,
      "volumeUSD": 1,
      "tvlUSD": 1
    }
  ],
  "total_pages": 1,
  "per_page": 1,
  "page": 1
}

Returns a sorted list of dapps.

get

Returns a sorted list of dapps with filters by blockchain and category.

Authorizations
AuthorizationstringOptional

Token-based authentication with required prefix "Token"

Query parameters
blockchain_idarrayOptional

Array of blockchan identifiers

category_idarrayOptional

Array of category identifiers

locationstring · enumOptional

Language code

Default: enPossible values:
pageintegerOptional

Page number

Default: 1
per_pageintegerOptional

Quantity per page

Default: 10
sortstring · enumOptional

Sorting field

Default: txcountPossible values:
sort_typestring · enumOptional

Sorting type

Default: descPossible values:
timeinteger · enumRequired

Last time interval

Possible values:
Responses
200Success
application/json
get
/api/dapps
GET /api/dapps?time=1 HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
{
  "dapps": [
    {
      "id": 1,
      "name": "text",
      "logo": "text",
      "logo_white": "text",
      "link": "text",
      "blockchain": [
        {
          "id": 1,
          "name": "text",
          "logo": "text",
          "logo_white": "text",
          "is_active": true,
          "link": "text"
        }
      ],
      "categories": [
        {
          "id": 1,
          "type": "text",
          "name": "text",
          "logo": "text",
          "icon_name": "text",
          "link": "text"
        }
      ],
      "users": 1,
      "txcount": 1,
      "volumeUSD": 1,
      "tvlUSD": 1
    }
  ],
  "total_pages": 1,
  "per_page": 1,
  "page": 1
}

Returns a chart data for dApp.

get

Returns chart data for a dApp over a period, filtered by blockchain.

Authorizations
AuthorizationstringOptional

Token-based authentication with required prefix "Token"

Query parameters
blockchain_idintegerOptional

Blockchan identifier

csvinteger · enumOptional

download .csv file

Default: 0Possible values:
dapp_idintegerRequired

dApp identifier

timeintegerRequired

Period in days (maximum: 180 days)

typestring · enumOptional

type data in .csv file

Default: usersPossible values:
Responses
200Success
application/json
get
/api/dapp_charts
GET /api/dapp_charts?dapp_id=1&time=1 HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
{
  "dapp_name": "text",
  "blockchain_name": "text",
  "users": {
    "field": "text",
    "labels": [
      "text"
    ],
    "series": [
      [
        1
      ]
    ],
    "prev24h": 1,
    "last24h": 1,
    "total": 1,
    "percent": 1
  },
  "transactions": {
    "field": "text",
    "labels": [
      "text"
    ],
    "series": [
      [
        1
      ]
    ],
    "prev24h": 1,
    "last24h": 1,
    "total": 1,
    "percent": 1
  },
  "tvl": {
    "field": "text",
    "labels": [
      "text"
    ],
    "series": [
      [
        1
      ]
    ],
    "prev24h": 1,
    "last24h": 1,
    "total": 1,
    "percent": 1
  },
  "volume": {
    "field": "text",
    "labels": [
      "text"
    ],
    "series": [
      [
        1
      ]
    ],
    "prev24h": 1,
    "last24h": 1,
    "total": 1,
    "percent": 1
  }
}

Returns a tokens chart data for dApp.

get

Returns tokens chart data for a dApp over a period

Authorizations
AuthorizationstringOptional

Token-based authentication with required prefix "Token"

Query parameters
csvinteger · enumOptional

download .csv file

Default: 0Possible values:
dapp_idintegerRequired

dApp identifier

timeintegerRequired

Period in days (maximum: 180 days)

Responses
200Success
application/json
get
/api/dapp_tokens_chart
GET /api/dapp_tokens_chart?dapp_id=1&time=1 HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
{
  "labels": [
    "text"
  ],
  "series": [
    [
      1
    ]
  ],
  "price": 1,
  "market_cap": 1,
  "ath": 1
}

Returns a dApp identifier by token

get

Returns a dApp identifier by token. Clients should authenticate by passing the token key in the "Authorization" HTTP header, prepended with the string "Token". For example: Authorization: Token 401f7ac837da42b97f613d789819ff93537bee6a",

Header parameters
AuthorizationstringRequired

Authorization token

Responses
200Success
application/json
get
/api/whoami
GET /api/whoami HTTP/1.1
Host: 
Authorization: text
Accept: */*
{
  "status": "text",
  "dapp_id": 1
}

Returns contracts by dApp's identifier

get

Returns contracts by dApp's identifier

Authorizations
AuthorizationstringOptional

Token-based authentication with required prefix "Token"

Path parameters
dapp_idintegerRequired

dApp's identifier

Responses
200Success
application/json
get
/api/dapp_contracts/{dapp_id}
GET /api/dapp_contracts/{dapp_id} HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "blockchain_id": 1,
    "contracts": [
      "text"
    ]
  }
]

Returns a sorted list of blockchains.

get

Returns a sorted list of blockchains with filters by blockchain and category.

Authorizations
AuthorizationstringOptional

Token-based authentication with required prefix "Token"

Query parameters
category_idarrayOptional

Array of category identifiers

locationstring · enumOptional

Language code

Default: enPossible values:
pageintegerOptional

Page number

Default: 1
per_pageintegerOptional

Quantity per page

Default: 10
sortstring · enumOptional

Sorting field

Default: txcountPossible values:
sort_typestring · enumOptional

Sorting type

Default: descPossible values:
timeinteger · enumRequired

Last time interval

Possible values:
Responses
200Success
application/json
get
/api/blockchains/top
GET /api/blockchains/top?time=1 HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
{
  "chains": [
    {
      "id": 1,
      "name": "text",
      "logo": "text",
      "logo_white": "text",
      "is_active": true,
      "link": "text",
      "users": 1,
      "txcount": 1,
      "volumeUSD": 1,
      "tvlUSD": 1
    }
  ],
  "total_pages": 1,
  "per_page": 1,
  "page": 1
}

Returns a sorted list of blockchains.

get

Returns a sorted list of blockchains with filters by blockchain and category.

Authorizations
AuthorizationstringOptional

Token-based authentication with required prefix "Token"

Query parameters
category_idarrayOptional

Array of category identifiers

locationstring · enumOptional

Language code

Default: enPossible values:
pageintegerOptional

Page number

Default: 1
per_pageintegerOptional

Quantity per page

Default: 10
sortstring · enumOptional

Sorting field

Default: txcountPossible values:
sort_typestring · enumOptional

Sorting type

Default: descPossible values:
timeinteger · enumRequired

Last time interval

Possible values:
Responses
200Success
application/json
get
/api/blockchains
GET /api/blockchains?time=1 HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
{
  "chains": [
    {
      "id": 1,
      "name": "text",
      "logo": "text",
      "logo_white": "text",
      "is_active": true,
      "link": "text",
      "users": 1,
      "txcount": 1,
      "volumeUSD": 1,
      "tvlUSD": 1
    }
  ],
  "total_pages": 1,
  "per_page": 1,
  "page": 1
}

Returns a chart data for Blockchain.

get

Returns chart data for Blockchain over a period.

Authorizations
AuthorizationstringOptional

Token-based authentication with required prefix "Token"

Query parameters
blockchain_idintegerRequired

Blockchan identifier

timeintegerRequired

Period in days (maximum: 180 days)

Responses
200Success
application/json
get
/api/blockchain_charts
GET /api/blockchain_charts?blockchain_id=1&time=1 HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
{
  "dapp_name": "text",
  "blockchain_name": "text",
  "users": {
    "field": "text",
    "labels": [
      "text"
    ],
    "series": [
      [
        1
      ]
    ],
    "prev24h": 1,
    "last24h": 1,
    "total": 1,
    "percent": 1
  },
  "transactions": {
    "field": "text",
    "labels": [
      "text"
    ],
    "series": [
      [
        1
      ]
    ],
    "prev24h": 1,
    "last24h": 1,
    "total": 1,
    "percent": 1
  },
  "tvl": {
    "field": "text",
    "labels": [
      "text"
    ],
    "series": [
      [
        1
      ]
    ],
    "prev24h": 1,
    "last24h": 1,
    "total": 1,
    "percent": 1
  },
  "volume": {
    "field": "text",
    "labels": [
      "text"
    ],
    "series": [
      [
        1
      ]
    ],
    "prev24h": 1,
    "last24h": 1,
    "total": 1,
    "percent": 1
  }
}

Delete or add contracts into dApp

post

Delete or add contracts into dApp. Clients should authenticate by passing the token key in the "Authorization" HTTP header, prepended with the string "Token". For example: Authorization: Token 401f7ac837da42b97f613d789819ff93537bee6a",

Body
dapp_idintegerRequired
blockchain_idintegerRequired
del_contractsstring[]Required
add_contractsstring[]Required
Responses
200Success
application/json
post
/api/dapp_contracts
POST /api/dapp_contracts HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 81

{
  "dapp_id": 1,
  "blockchain_id": 1,
  "del_contracts": [
    "text"
  ],
  "add_contracts": [
    "text"
  ]
}
{
  "status": "text"
}

Last updated