获取NFT合同地址的Twitter处理

发布于 2025-02-08 22:29:07 字数 262 浏览 3 评论 0原文

我希望通过编程方式从操作系统验证的项目中获取官方的Twitter处理。

我已经尝试调用“ Collections” OS API,但是Twitter_username字段似乎很少被填充,即使对于经过验证的项目,除了“ null”之外。

我尝试用获取手动刮擦数据,但由于Cloudflare保护措施,我可能会出现1020个错误。

是否有人使用Moralis nft或其他一些GraphHQ(例如Service)来获取给定NFT项目的Twitter句柄(从合同地址开始)?

I'm looking to get the official Twitter handle from an OS Verified project, programmatically.

I've tried calling the "collections" OS API, but the twitter_username field seems to rarely be populated with anything but "null" even for verified projects.

I've tried scraping the data manually with fetch but I got 1020 errors likely due to cloudflare protections.

Has anyone else used Moralis NFT or some other GraphHQ like service to obtain the Twitter handle of a given NFT project (starting out with a contract address)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

或十年 2025-02-15 22:29:07

您可以尝试

https://ubiquity.api.blockdaemon.com/v1/nft/ethereum/mainnet/collection?contract_address=0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D

这将为您提供以下答复

{
"collection": {
    "id": "4203aedd-7964-5fe1-b932-eb8c4fda7822",
    "name": "Bored Ape Yacht Club",
    "description": "The Bored Ape Yacht Club is a collection of 10,000 unique Bored Ape NFTs— unique digital collectibles living on the Ethereum blockchain. Your Bored Ape doubles as your Yacht Club membership card, and grants access to members-only benefits, the first of which is access to THE BATHROOM, a collaborative graffiti board. Future areas and perks can be unlocked by the community through roadmap activation. Visit www.BoredApeYachtClub.com for more details.",
    "logo": "https://ubiquity.api.blockdaemon.com/v1/nft/media/ethereum/mainnet/collection/4203aedd-7964-5fe1-b932-eb8c4fda7822/logo.png",
    "banner": "https://ubiquity.api.blockdaemon.com/v1/nft/media/ethereum/mainnet/collection/4203aedd-7964-5fe1-b932-eb8c4fda7822/banner.jpeg",
    "verified": true,
    "contracts": [
        {
            "address": "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D",
            "name": "BoredApeYachtClub",
            "symbol": "BAYC",
            "description": "",
            "image_url": "https://ubiquity.api.blockdaemon.com/v1/nft/media/ethereum/mainnet/",
            "type": "ERC721"
        }
    ],
    "meta": {
        "discord_url": "https://discord.gg/3P5K3dzgdB",
        "external_url": "http://www.boredapeyachtclub.com/",
        "twitter_username": "BoredApeYC"
    },
    "sub_collection": []
}

You can try Ubiquity API. They have an endpoint for collection metadata which also includes the Twitter account name

https://ubiquity.api.blockdaemon.com/v1/nft/ethereum/mainnet/collection?contract_address=0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D

This will give you the following response

{
"collection": {
    "id": "4203aedd-7964-5fe1-b932-eb8c4fda7822",
    "name": "Bored Ape Yacht Club",
    "description": "The Bored Ape Yacht Club is a collection of 10,000 unique Bored Ape NFTs— unique digital collectibles living on the Ethereum blockchain. Your Bored Ape doubles as your Yacht Club membership card, and grants access to members-only benefits, the first of which is access to THE BATHROOM, a collaborative graffiti board. Future areas and perks can be unlocked by the community through roadmap activation. Visit www.BoredApeYachtClub.com for more details.",
    "logo": "https://ubiquity.api.blockdaemon.com/v1/nft/media/ethereum/mainnet/collection/4203aedd-7964-5fe1-b932-eb8c4fda7822/logo.png",
    "banner": "https://ubiquity.api.blockdaemon.com/v1/nft/media/ethereum/mainnet/collection/4203aedd-7964-5fe1-b932-eb8c4fda7822/banner.jpeg",
    "verified": true,
    "contracts": [
        {
            "address": "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D",
            "name": "BoredApeYachtClub",
            "symbol": "BAYC",
            "description": "",
            "image_url": "https://ubiquity.api.blockdaemon.com/v1/nft/media/ethereum/mainnet/",
            "type": "ERC721"
        }
    ],
    "meta": {
        "discord_url": "https://discord.gg/3P5K3dzgdB",
        "external_url": "http://www.boredapeyachtclub.com/",
        "twitter_username": "BoredApeYC"
    },
    "sub_collection": []
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文