Skip to content

Latest commit

 

History

History
93 lines (71 loc) · 2.38 KB

File metadata and controls

93 lines (71 loc) · 2.38 KB

I'll help you get information about the dev.to APIs. Let me fetch the documentation for you.

Called MCP tool

resolve-library-id Let me try a different approach and search for dev.to API information online or provide you with what I know about the dev.to API endpoints.

Based on my knowledge, here are the main dev.to API endpoints and their parameters:

Articles API GET /api/articles

page - Pagination page (default: 1) per_page - Number of items per page (default: 30, max: 1000) tag - Filter by tag name tags - Filter by comma-separated tag names tags_exclude - Exclude articles with these tags username - Filter by author username state - Filter by state (fresh, rising, all) top - Number for top articles (7, 30, 365, infinity) collection_id - Filter by collection ID GET /api/articles/{id}

No parameters, returns specific article by ID GET /api/articles/me

page - Pagination page per_page - Items per page Requires authentication POST /api/articles

Request body with article data (title, body_markdown, published, etc.) Requires authentication PUT /api/articles/{id}

Request body with updated article data Requires authentication Users API GET /api/users/{id}

No parameters, returns user by ID GET /api/users/by_username

url - Username parameter GET /api/users/me

Requires authentication Comments API GET /api/comments

a_id - Article ID to get comments for p_id - Podcast episode ID GET /api/comments/{id}

No parameters, returns specific comment Tags API GET /api/tags

page - Pagination page per_page - Items per page Podcast Episodes API GET /api/podcast_episodes

page - Pagination page per_page - Items per page username - Filter by podcast username Followers API GET /api/followers/users

page - Pagination page per_page - Items per page sort - Sort order (created_at, -created_at) Requires authentication Organizations API GET /api/organizations/{username}

No parameters, returns organization by username GET /api/organizations/{username}/users

page - Pagination page per_page - Items per page Authentication Most write operations and personal data endpoints require an API key passed in the header:

Authorization: Bearer YOUR_API_KEY Rate Limits Generally 300 requests per 5 minutes for authenticated requests Lower limits for unauthenticated requests Base URL All endpoints use: https://dev.to/api/

Would you like me to elaborate on any specific endpoint or help you implement calls to particular APIs?