|
@@ -30,7 +30,7 @@ class subreq(BaseModel):
|
|
|
email:str
|
|
|
|
|
|
@app.get("/showdata/{limit}")
|
|
|
-async def showdata(limit: int = 5):
|
|
|
+async def showdata(limit):
|
|
|
url = 'https://api.coinmarketcap.com/data-api/v3/nft/collections?start=0&limit=' + limit
|
|
|
r = urllib.request.urlopen(url)
|
|
|
collections = json.loads(r.read())['data']['collections']
|