API Overview

Tips:

The Polygon network for Lens dApps

The Optimistic network for Farcaster dApps

Based on the contracts deployed on Polygon Mainnet & Optimistic Mainnet

https://api.tako.so

Based on the contracts deployed on Mumbai Testnet

https://testapi.tako.so

2. How To Use

For GET Method API

Assume you will use the API GetLensCuratorAccepted. Its route is "/v2/lens/curator/accepted".

The first step you should compose the base link with the API route:

https://api.tako.so/v2/lens/curator/accepted?profileId=36113&cursor=0

Please refer to the API documentation for specific parameters and requirements.

Now, you can request the full link using JavaScript, Python, cURL, etc. Then, you will receive a response from the Tako server.

For POST method API

Like the GET method, you must pass the parameters in the request body as application/json.

3. Rate Limit

The cumulative number of API accesses from the same IP address should not exceed 60 times per minute.

4. Request Format

  • GET method: All parameters are included in the URL.

  • POST method: All parameters are formatted as JSON data and put in the request body.

5. Response Format

The response is JSON format. There are four parameters at the top level:

  • status

  • data

  • error_code

  • error_message

6. Response Example

When API access is successful

{
    "status": "success",
    "data": {
        Object
    }
}

When API access fails

{
  "status": "error",
  "error_code": 600,
  "error_msg": "The reason for error."
}

7. Error Code

Last updated