Relation Graph API
Relation ProtocolRelation ONE APIRelation Graph API
English
English
  • Overview
    • Relation Graph
  • QUICK START
    • Quick Start
    • Rate Limits
    • Use Lit Protocol to Decrypt
  • API
    • Relation One Profile
    • NFT List
    • SBT List
    • User Tag
    • Relationship Graph
    • Multi-dimensional Recommendation
    • Secure Cross-Platform Identity Linking
    • Mutual Friend
    • Mutual Contract Interaction
    • Unified Identity Verification
Powered by GitBook
On this page
  • Endpoint URLs
  • Demo ApiKey
  • Query
  1. QUICK START

Quick Start

Comprehensive reference for integrating with Relation Graph API endpoints

Endpoint URLs

  • https://api.relationlabs.ai

Demo ApiKey

  • ApiKey: 581c6c4fa0b54912b00088aa563342a4

  • private key: 89a1a8c7d5f6ab952e02c5c6a71f48d60fbe06c21ec021374907d93d644b1236

Query

This service follows the REST API standards and can be conveniently accessed using any http client.

  • Example:

curl --location 'https://api.relationlabs.ai/api/v1/mutualFriend?address=0x0001%2C0x000002&limit=10&offset=0' \
--header 'ApiKey: <ApiKey>' 
const axios = require('axios');

let config = {
  method: 'get',
  maxBodyLength: Infinity,
  url: 'https://api.relationlabs.ai/api/v1/mutualFriend?address=0x0001%2C0x000002&limit=10&offset=0',
  headers: {
      'ApiKey': '<ApiKey>'
  }
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.relationlabs.ai/api/v1/mutualFriend?address=0x0001%2C0x000002&limit=10&offset=0"
  method := "GET"

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, nil)

  if err != nil {
    fmt.Println(err)
    return
  }
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
PreviousRelation GraphNextRate Limits

Last updated 1 year ago