api.onchain.industries/beta/query-one

/query-one

This endpoint accepts a wallet, a username, or an email and returns a streams of module responses.


The request

Your request to this endpoint must adhere to this schema.

query

Wallet, username, or email to generate a report on. Must be three or more characters long, have no spaces, nor special characters besides dashes, dots, and underscores. Not recommended to search wallets other than ones from chains we currently support.

string

options

Optional configuration fields.

optional

object Options

curl --request POST \
    --url 'https://api.onchain.industries/beta/query-one' \
    --header 'key: <your-key>' \
    --header 'Content-Type: application/json' \
    --data '{
  "query": "<wallet or username>",
  "options": {
    "skip_maintenance": "true"
  }
}'

The response

This endpoint response is a stream of ModuleResponse, a collection of all of the data found linked to any given platform.

data

The main content of the response, containing detailed information related to the profile.

object Data

platform

Details about the platform associated with the response data.

object Platform

data_type

Specifies the module type, which can either check account existence (checker), check and return data (checker+data), or check and return obfuscated information (checker+obfuscated).

object DataType

search_type

The type of search conducted to generate the response (e.g., username search, email search, etc.).

string

status

Current status of this module. Could be operational or under maintenance. By default, modules under maintenance are not returned by the API.

string

version

Indicates whether the platform data was obtained through stable(released) or experimental(beta) methods.

string

error

A string that contains any error messages encountered during the request, if applicable.

optional

string

{
  "platform": {
    "name": "Lens",
    "url": "https://lens.xyz/",
    "description": "An open social network enabling users to own their content and connections, with a platform for developers to build decentralised applications.",
    "attributes": []
  },
  "search_type": "evm",
  "version": "released",
  "status": "operational",
  "data_type": {
    "label": "checker+data",
    "description": "Checker+Data modules check if an account exists on a given platform and also return some information"
  },
  "data": {
    "exists": true,
    "profile_url": null,
    "original": {
      "data": {
        "result": {
          "__typename": "Profile",
          "id": "0x0187b3",
          "ownedBy": {
            "__typename": "NetworkAddress",
            "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
            "chainId": 137
          },
          "txHash": "0xea49fbc5f55f08fc678b22ac861482c366941a19b87403dff7315f15d4c0ffee",
          "createdAt": "2022-11-12T11:05:35.000Z",
          "operations": {
            "__typename": "ProfileOperations",
            "id": "0x0187b3",
            "isBlockedByMe": {
              "__typename": "OptimisticStatusResult",
              "value": false,
              "isFinalisedOnchain": true
            },
            "isFollowedByMe": {
              "__typename": "OptimisticStatusResult",
              "value": false,
              "isFinalisedOnchain": true
            },
            "isFollowingMe": {
              "__typename": "OptimisticStatusResult",
              "value": false,
              "isFinalisedOnchain": true
            },
            "canBlock": false,
            "canUnblock": false,
            "canFollow": "NO",
            "canUnfollow": false
          },
          "interests": [],
          "guardian": null,
          "invitesLeft": 0,
          "onchainIdentity": {
            "proofOfHumanity": false,
            "ens": {
              "name": "vitalik.eth"
            },
            "sybilDotOrg": {
              "verified": false,
              "source": null
            },
            "worldcoin": {
              "isHuman": false
            }
          },
          "followNftAddress": {
            "__typename": "NetworkAddress",
            "address": "0xf12D31b798dB234C55d9b50c3854F99dB6BddAea",
            "chainId": 137
          },
          "followModule": null,
          "metadata": null,
          "handle": {
            "__typename": "HandleInfo",
            "id": "0xaf2caa1c2ca1d027f1ac823b529d0a67cd144264b2789fa2ea4d63a67c7103cc",
            "fullHandle": "lens/vitalik",
            "namespace": "lens",
            "localName": "vitalik",
            "suggestedFormatted": {
              "full": "lens/@vitalik",
              "localName": "@vitalik"
            },
            "linkedTo": {
              "contract": {
                "__typename": "NetworkAddress",
                "address": "0xDb46d1Dc155634FbC732f92E853b10B288AD5a1d",
                "chainId": 137
              },
              "nftTokenId": "0x0187b3"
            },
            "ownedBy": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
          },
          "sponsor": true,
          "signless": true,
          "invitedBy": null,
          "stats": {
            "id": "0x0187b3",
            "followers": 38983,
            "following": 7,
            "comments": 12,
            "posts": 44,
            "mirrors": 2,
            "quotes": 0,
            "publications": 58,
            "upvotes": 60127,
            "downvotes": 2,
            "upvoted": 3,
            "downvoted": 0,
            "collects": 0,
            "countOpenActions": 0,
            "upvoteReactions": 60127,
            "downvoteReactions": 2,
            "upvoteReacted": 3,
            "downvoteReacted": 0
          }
        }
      }
    },
    "data": {
      "dynamic": [
        {
          "name": "Has Proof of Humanity",
          "value": false,
          "description": null
        },
        {
          "name": "Interests",
          "value": 0,
          "description": null
        },
        {
          "name": "Comments",
          "value": 12,
          "description": null
        },
        {
          "name": "Posts",
          "value": 44,
          "description": null
        },
        {
          "name": "Publications",
          "value": 58,
          "description": null
        },
        {
          "name": "Upvotes",
          "value": 60127,
          "description": null
        }
      ],
      "usernames": [
        {
          "username": "lens/@vitalik",
          "tags": [
            "Handle"
          ]
        },
        {
          "username": "@vitalik",
          "tags": [
            "Local name"
          ]
        }
      ],
      "followers": 38983,
      "following": 7,
      "wallets": [
        {
          "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
          "tags": [
            "Profile owned by"
          ]
        },
        {
          "address": "0xf12D31b798dB234C55d9b50c3854F99dB6BddAea",
          "tags": [
            "Follow NFT address"
          ]
        },
        {
          "address": "0xDb46d1Dc155634FbC732f92E853b10B288AD5a1d",
          "tags": [
            "Contract linked to"
          ]
        }
      ],
      "transactions": [
        {
          "txn_hash": "0xea49fbc5f55f08fc678b22ac861482c366941a19b87403dff7315f15d4c0ffee"
        }
      ],
      "ens": [
        {
          "ens": "vitalik.eth",
          "tags": [
            "ENS name"
          ]
        }
      ],
      "joined": "2022-11-12T11:05:35.000Z"
    }
  }
}