GetLensPubIds

API

API/v2/lens_pubid

Title

GetLensPubIds

Description

Retrieve all matching complete Lens publication IDs based on the full or partial Lens publication ID provided.

Authorization

Not required

Method

GET

Request Parameters

NameTypeRequiredDescription

id

string

YES

The full or partial Lens publication ID, such as 0x86f6-0x04-DA-defa9a6f

pubType

string

NO

“post”, “mirror”, “comment”, default to “post”. Only retrieve data of the specified pubType.

Request and Response Example

Request

cURL Code

curl -X 'GET' \
  'https://api.tako.so/v2/lens_pubid?id=0x8&pubType=comment'

Request URL

https://api.tako.so/v2/lens_pubid?id=0x8&pubType=comment

Response

{
  "status": "success",
  "data": {
    "pubIds": [
      "0x8642-0x18-DA-6bb6ef57",
      "0x09ad-0x8d",
      "0x09ad-0x8b",
      "0x09ad-0x89",
      "0x8642-0x17",
      "0x86f6-0x1b",
      "0x8a15-0x02",
      "0x87a8-0x0e",
      "0x8a60-0x45",
      "0x8a60-0x44",
      "0x8a60-0x43",
      "0x09ad-0x87",
      "0x8c25-0x04",
      "0x86f6-0x12",
      "0x09ad-0x85",
      "0x09ad-0x82",
      "0x88cc-0x10",
      "0x8c68-0x10",
      "0x8c68-0x0f",
      "0x8a60-0x41"
    ]
  }
}

Last updated