-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.html
470 lines (441 loc) · 22.6 KB
/
api.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-119769091-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "UA-119769091-1");
</script>
<!-- Hotjar Tracking Code for https://cryptofonts.com/ -->
<script>
(function (h, o, t, j, a, r) {
h.hj =
h.hj ||
function () {
(h.hj.q = h.hj.q || []).push(arguments);
};
h._hjSettings = { hjid: 1835372, hjsv: 6 };
a = o.getElementsByTagName("head")[0];
r = o.createElement("script");
r.async = 1;
r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv;
a.appendChild(r);
})(window, document, "https://static.hotjar.com/c/hotjar-", ".js?sv=");
</script>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="Crypto token API for developers and designers. " />
<meta name="keywords" content="token, api, logos, crypto icons, vector icons, svg icons, free icons, icon font, webfont, desktop icons, svg, font awesome, font awesome free, font awesome pro" />
<meta name="author" content="Fabio Monzani" />
<meta name="theme-color" content="#f2f2f2" />
<meta property="og:site_name" content="Cryptofonts" />
<meta property="og:type" content="website" />
<meta property="og:image" content="http://www.cryptofonts.com/img/card.png" />
<meta property="og:url" content="https://cryptofonts.com" />
<meta property="og:title" content="Cryptofonts" />
<meta property="og:description" content="Crypto token API for developers and designers. " />
<title>CryptoFont - Cryptocurrency icons API and webfont</title>
<link rel="apple-touch-icon" sizes="180x180" href="favicons/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="favicons/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="favicons/favicon-16x16.png" />
<link rel="manifest" href="favicons/site.webmanifest" />
<link rel="mask-icon" href="favicons/safari-pinned-tab.svg" color="#5bbad5" />
<link rel="shortcut icon" href="favicons/favicon.ico" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="msapplication-config" content="favicons/browserconfig.xml" />
<meta name="theme-color" content="#ffffff" />
<!-- Facebook Open Graph -->
<meta property="og:site_name" content="CryptoFonts" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://www.cryptofonts.com/img/card.png" />
<meta property="og:url" content="https://www.cryptofonts.com/" />
<meta property="og:title" content="CryptoFonts" />
<meta property="og:description" content="We create beautiful and crisp cryptocurrency webfonts, icons and SVG " />
<!-- Twitter Card -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@CryptoFonts" />
<meta property="og:url" content="https://www.cryptofonts.com/" />
<meta property="og:title" content="CryptoFonts" />
<meta property="og:description" content="We create beautiful and crisp cryptocurrency webfonts, icons and SVG " />
<meta property="og:image" content="https://www.cryptofonts.com/img/card.png" />
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css?v=1.0" />
<!-- Custom CSS -->
<link rel="stylesheet" href="css/style.min.css?v=1.0" />
<!-- Highlight JS -->
<link rel="stylesheet" href="css/atom-one-dark.css" />
<!-- Inter font -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;500;600&display=swap" rel="stylesheet" />
</head>
<body>
<nav class="navbar navbar-expand-lg fixed-top">
<div class="container-fluid">
<a class="navbar-brand" href="index.html">
<img src="img/logo-squircle.svg" width="36" height="36" class="d-inline-block align-top mr-2" alt="" loading="lazy" />
<strong class="align-text-top">Cryptofonts</strong>
</a>
<button class="navbar-toggler border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link d-flex align-items-center" href="api.html">
<img class="me-2" src="img/icon-api.svg" width="24" height="24" alt="" />
API</a
>
</li>
<li class="nav-item">
<a class="nav-link d-flex align-items-center" href="icons.html">
<img class="me-2" src="img/icon-icons.svg" width="24" height="24" alt="" />
Icons</a
>
</li>
<li class="nav-item">
<a class="nav-link d-flex align-items-center" href="brands.html">
<img class="me-2" src="img/icon-brands.svg" width="24" height="24" alt="" />
Brand</a
>
</li>
<li class="nav-item">
<a class="nav-link d-flex align-items-center" href="font.html">
<img class="me-2" src="img/icon-webfont.svg" width="20" height="20" alt="" />
Webfont</a
>
</li>
</ul>
</div>
</div>
</nav>
<section class="d-flex align-items-center">
<div class="container-fluid text-center">
<div>
<h1 class="display-4 fw-semibold">Get data for more than 50k tokens with an API call</h1>
<h2 class="fs-4 text-secondary fw-medium">Empowering Developers and Designers to build better applications faster.</h2>
<a href="https://rapidapi.com/cryptofonts/api/cryptofonts-token-icon-api1" class="btn btn-primary btn-lg mr-3 mt-3 rounded-1" target="_blank">Get API key</a>
<a href="https://docs.cryptofonts.com/api/how-to-use-the-api" class="btn btn-link btn-lg mt-3 link-offset-2" target="_blank">Read the docs</a>
</div>
<div class="d-flex justify-content-center position-relative my-5">
<img class="z-3 card-front img-fluid" src="img/api-feature-2-front.svg" alt="" />
<img class="z-2 card-mid img-fluid" src="img/api-feature-2-mid.svg" alt="" />
<img class="z-1 card-back img-fluid" src="img/api-feature-2-back.svg" alt="" />
</div>
<div>
<p class="mb-2">Supported chains</p>
<div class="d-flex flex-wrap justify-content-center">
<img class="m-1" src="img/ethereum.svg" alt="" width="24" height="24" />
<img class="m-1" src="img/polygon.svg" alt="" width="24" height="24" />
<img class="m-1" src="img/arbitrum.svg" alt="" width="24" height="24" />
<img class="m-1" src="img/zksync.svg" alt="" width="24" height="24" />
<img class="m-1" src="img/linea.svg" alt="" width="24" height="24" />
<img class="m-1" src="img/cronos.svg" alt="" width="24" height="24" />
<img class="m-1" src="img/fantom.svg" alt="" width="24" height="24" />
<img class="m-1" src="img/gnosis.svg" alt="" width="24" height="24" />
<img class="m-1" src="img/solana.svg" alt="" width="24" height="24" />
<img class="m-1" src="img/op.svg" alt="" width="24" height="24" />
<img class="m-1" src="img/canto.svg" alt="" width="24" height="24" />
<img class="m-1" src="img/avax.svg" alt="" width="24" height="24" />
<img class="m-1" src="img/bsc.svg" alt="" width="24" height="24" />
<img class="m-1" src="img/base.svg" alt="" width="24" height="24" />
<img class="m-1" src="img/aurora.svg" alt="" width="24" height="24" />
</div>
</div>
</div>
</section>
<div class="bg-blur">
<div class="bg-light-blue py-3">
<div class="container">
<div class="row">
<div class="col-md-6 text-center">
<p class="text-secondary">Tokens</p>
<p class="display-4 fw-light">50,000+</p>
</div>
<div class="col-md-6 text-center">
<p class="text-secondary">Supported chains</p>
<p class="display-4 fw-light">15</p>
</div>
</div>
</div>
</div>
<div class="container">
<section>
<div class="text-center mb-5">
<h2 class="display-4 fw-semibold">Simple modern API</h2>
<p class="text-secondary fs-5">Leverage our simple API to build your applications</p>
</div>
<div class="row">
<div class="col-md-6 mb-4">
<div class="col-md-12 mb-5">
<img src="img/icon-plug.svg" width="24" height="24" alt="" />
<h5>Integrate with your stack</h5>
<p>Just a simple plug and play API that works with any project.</p>
</div>
<div class="col-md-12 mb-5">
<img src="img/icon-webhook.svg" width="24" height="24" alt="" />
<h5>Simple endpoints</h5>
<p>Token address and chain id is all you need to get a response.</p>
</div>
<div class="col-md-12 mb-5">
<img src="img/icon-magic.svg" width="24" height="24" alt="" />
<h5>Build UIs in seconds</h5>
<p>Accurate data and token icons with a single API call is all you need to build UIs at lightning speed.</p>
</div>
<a href="https://rapidapi.com/cryptofonts/api/cryptofonts-token-icon-api1" class="btn btn-primary rounded-1" target="_blank">Try API -></a>
<a href="https://docs.cryptofonts.com/api/how-to-use-the-api" class="btn btn-link rounded-1" target="_blank">Read the docs</a>
</div>
<div class="col-md-6">
<div class="card card-terminal">
<div class="card-header d-flex align-items-center border-top-0 border-start-0 border-end-0">
<img class="me-2" src="img/icon-filejs.svg" width="24" height="24" alt="" />
REST - API call
</div>
<div class="card-body">
<pre class="m-0"><code id="codejs" class="language-javascript">const url ="https://cryptofonts-token-icon-api1.p.rapidapi.com/1/0xb50721bcf8d664c30412cfbc6cf7a15145234ad1";
try {
const response = await fetch(url, options);
const result = await response.text();
console.log(result);
} catch (error) {
console.error(error);
}</code></pre>
</div>
<div class="card-header border-start-0 border-end-0">JSON - API response</div>
<div class="card-body">
<pre class="m-0"><code id="codejson" class="language-json">[
{
"name": "Arbitrum",
"logoURI": "arb_67460.png",
"symbol": "arb",
"chainId": 1,
"decimals": 18,
"address": "0xb50721bcf8d664c30412cfbc6cf7a15145234ad1",
"chain": "ethereum"
}
]</code></pre>
</div>
</div>
</div>
</div>
</section>
<section class="text-center">
<h2 class="display-4 fw-semibold mb-5">Best in class performance</h2>
<div class="row">
<div class="col-md-6">
<p class="display-4 fw-light">99.9%</p>
<p class="text-secondary">Uptime</p>
</div>
<div class="col-md-6">
<p class="display-4 fw-light">~445ms</p>
<p class="text-secondary">Avg. response time</p>
</div>
</div>
</section>
<section class="text-center">
<div class="text-center mb-5">
<h2 class="display-4 fw-semibold">Number go up</h2>
<p class="text-secondary fs-5">New tokens are added daily from trusted sources to guarantee you always have the latest tokens.</p>
</div>
<div id="api-stats" class="d-flex flex-row flex-wrap"></div>
<button id="viewMoreChains" class="btn btn-link text-decoration-none">View more <img class="align-middle" src="img/plus-circle.svg" height="18" alt="" /></button>
</section>
<section class="text-center">
<h2 class="display-4 fw-semibold">Simple pricing for all</h2>
<p class="text-secondary fs-5">We offer a simple pricing structure, with no hidden fees or charges.</p>
<div class="row d-flex justify-content-center mt-5">
<div class="col-lg-4 col-md-6 col-sm-6">
<div class="card card-empty text-start">
<div class="card-body">
<p class="display-4 fw-light">$1</p>
<p class="text-secondary">Starter</p>
<p class="text-secondary">Perfect for getting started</p>
<div class="d-flex mt-5">
<img class="me-2" src="img/icon-check-circle.svg" alt="" width="24" height="24" />
<div>
<p class="mb-0 text-secondary">15,000 requests/day</p>
<p class="small text-secondary">hard cap</p>
</div>
</div>
<div class="d-flex mt-3">
<img class="me-2" src="img/icon-check-circle.svg" alt="" width="24" height="24" />
<p class="text-secondary">Support</p>
</div>
<div class="d-grid">
<a class="btn btn-outline-primary btn-block" href="https://rapidapi.com/cryptofonts/api/cryptofonts-token-icon-api1" target="_blank">Get started</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-6">
<div class="card card-accent text-start">
<div class="card-body">
<p class="display-4 fw-light">$47</p>
<p class="text-secondary">Pro</p>
<p class="text-secondary">For projects that needs more</p>
<div class="d-flex mt-5">
<img class="me-2" src="img/icon-check-circle.svg" alt="" width="24" height="24" />
<div>
<p class="mb-0 text-secondary">100,000 requests/day</p>
<p class="small text-secondary">then $0.01 each</p>
</div>
</div>
<div class="d-flex mt-3">
<img class="me-2" src="img/icon-check-circle.svg" alt="" width="24" height="24" />
<p class="text-secondary">Customer support</p>
</div>
<div class="d-grid">
<a class="btn btn-primary btn-block" href="https://rapidapi.com/cryptofonts/api/cryptofonts-token-icon-api1" target="_blank">Get started</a>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
<footer>
<div class="container">
<div class="row mb-5">
<div class="col-md-3 text-center mb-4">
<img class="opacity-50" src="img/logo.svg" height="60px" />
</div>
<div class="col-md-3 col-12 text-center text-md-start mb-4">
<ul class="footer-list p-0">
<li>Social</li>
<li><a href="https://twitter.com/cryptofonts?lang=en" target="_blank">Twitter</a></li>
<li><a href="https://t.me/cryptofonts" target="_blank">Telegram</a></li>
</ul>
</div>
<div class="col-md-3 col-12 text-center text-md-start mb-4">
<ul class="footer-list p-0">
<li>Legal</li>
<li><a href="license.html">License</a></li>
</ul>
</div>
<div class="col-md-3 col-12 text-center text-md-start mb-4">
<ul class="footer-list p-0">
<li>Developers</li>
<li><a href="https://docs.cryptofonts.com/" target="_blank">Documentation</a></li>
<li><a href="https://github.com/Cryptofonts" target="_blank">Github</a></li>
</ul>
</div>
</div>
<div class="row">
<div class="col text-center">
<p class="small opacity-50">Made by <a class="fabiomonzani" href="https://fabiomonzani.com" target="_blank">Fabio Monzani</a> and other people around the world</p>
</div>
</div>
<div class="row">
<div class="col text-center">
<p class="tiny opacity-50">All product and company names are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.</p>
</div>
</div>
</div>
</footer>
<!-- Donate Modal -->
<div class="modal fade" id="donateModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Cryptofonts is a one man project.</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<img src="img/icon-close.svg" height="30" alt="icon close" />
</button>
</div>
<div class="modal-body">
<p class="mb-5">
Creating all these beautiful icons takes time and money.<br />
If you think that my work has any value to you, or you like my icons, a small donation would be really appreciated. This would motivate me to create more icons and keep the project going.
</p>
<ul class="nav nav-pills nav-justified" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">Wallet</a>
</li>
<li class="nav-item">
<a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="false">Gitcoin</a>
</li>
<!-- <li class="nav-item">
<a class="nav-link" id="contact-tab" data-toggle="tab" href="#contact" role="tab" aria-controls="contact" aria-selected="false"><i class="cf cf-btc"></i> Bitcoin</a>
</li> -->
</ul>
<div class="tab-content text-center" id="myTabContent">
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
<p class="mt-4">Even 1 DAI would make the difference</p>
<img class="qrcode" src="img/eth-address.svg" width="150" />
<p><span class="badge badge-pill badge-light">0xFC72b32F2f7caFCa4d5d99c031f4B8F9579c18b6</span></p>
<span class="badge badge-light"><i class="cf cf-eth"></i> Ethereum</span>
<span class="badge badge-light"><i class="cf cf-bnb"></i> BSC</span>
<span class="badge badge-light"><i class="cf cf-matic"></i> Polygon</span>
</div>
<div class="tab-pane fade text-center" id="profile" role="tabpanel" aria-labelledby="profile-tab">
<p class="mt-4"><a href="https://gitcoin.co/grants/720/crypto-fonts">Donate on Gitcoin by sponsoring my grant</a></p>
<img src="img/gitcoin-logo.svg" height="150" />
</div>
<!-- <div class="tab-pane fade text-center" id="contact" role="tabpanel" aria-labelledby="contact-tab">
<p class="mt-4">I know transactions cost are high, but if you feel generous here's my Bitcoin address</p>
</div> -->
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Nah, thanks</button>
</div>
</div>
</div>
</div>
<script src="vendors/bootstrap-5.3.1/js/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
<script>
hljs.highlightAll();
const btnViewMore = document.getElementById("viewMoreChains");
document.addEventListener("DOMContentLoaded", function () {
// FETCHING DATA FROM JSON FILE
fetch("json/api.json")
.then((response) => response.json())
.then((data) => {
var stats = "";
var first6Results = data.slice(0, 6);
// ITERATING THROUGH OBJECTS
first6Results.forEach(function (value) {
// CONSTRUCTION OF ROWS HAVING
// DATA FROM JSON OBJECT
stats += '<div class="col-md-2 col-6 text-center mb-5">';
stats += '<img loading="lazy" src="img/chains/' + value.logo + '" height="60" alt="' + value.ticker + '">';
stats += '<p class="text-secondary">' + value.chain + "</p>";
stats += '<p class="display-4 fw-light">' + value.counter + "</p>";
stats += "</div>";
});
// INSERTING ROWS INTO TABLE
document.getElementById("api-stats").insertAdjacentHTML("beforeend", stats);
});
});
btnViewMore.addEventListener("click", function () {
fetch("json/api.json")
.then((response) => response.json())
.then((data) => {
var stats = "";
var lastResults = data.slice(6, 20);
// ITERATING THROUGH OBJECTS
lastResults.forEach(function (value) {
// CONSTRUCTION OF ROWS HAVING
// DATA FROM JSON OBJECT
stats += '<div class="col-md-2 col-6 text-center mb-5">';
stats += '<img loading="lazy" src="img/chains/' + value.logo + '" height="48" alt="' + value.ticker + '">';
stats += '<p class="text-secondary">' + value.chain + "</p>";
stats += '<p class="display-6 fw-light">' + value.counter + "</p>";
stats += "</div>";
});
// INSERTING ROWS INTO TABLE
document.getElementById("api-stats").insertAdjacentHTML("beforeend", stats);
btnViewMore.hidden = true;
});
});
</script>
</body>
</html>