Skip to main content
ArcBlock Community

Request for API Information to Fetch Blog Metadata

Twelve
Developers
discuss-kitfeaturequalifiedresolvedrewarded

Hi Team,

I’m currently working on a feature that requires dynamically fetching blog post metadata (title, description, and image) to display in a card layout on the front-end. I would like to request some information regarding any available APIs or endpoints that can provide this data based on the blog URLs.

Specifically, I’m looking for:

  • API endpoints that return blog post metadata (title, image, description) when given a blog URL.
  • Any documentation on how to authenticate or access this API.
  • Example requests/responses for fetching blog metadata.

If we don't have an API available for this, do we have another mechanism (like OpenGraph data extraction) or a way to expose blog metadata in a structured format?

Any guidance or suggestions would be greatly appreciated!

Thanks in advance for your help.

Best, 12

5 replies

wangshijun23 months ago

We have API support for your use case in Discuss Kit, but it has not been documented yet.

Twelve23 months ago

thank you. I’m essentially trying to replicate the discuss lit blog component.

ive kind of got it already, but it’s not automated enough.

wangshijun23 months ago

Hi, can you checkout following official component to display blog list:

DiscussKit Components

Twelve23 months ago

I'm running this right now in my app. However it seems easy enough to make myself a custom one using the API.

wangqi23 months ago(edited)

We've just released new APIs for fetching post metadata in the latest version (v2.1.18) of DiscussKit:

  • GET /api/v1/sdk/posts: Fetch a list of posts
  • GET /api/v1/sdk/posts/{id}: Fetch metadata for a specific post by ID

To explore and test these APIs, we recommend installing the Swagger UI Blocklet, which is available in the test/dev store. This will provide you with interactive documentation and a testing interface.

Feel free to reach out to us if you encounter any issues. Thanks!

image.png

image.png

Reply