Forem API V1
Access Forem articles, users and other resources via API. For a real-world example of Forem in action, check out . All endpoints can be accessed with the 'api-key' header and a accept header, but some of them are accessible publicly without authentication.
- Homepage
- https://api.apis.guru/v2/specs/dev.to/1.0.0.json
- Provider
- dev.to
- OpenAPI version
- 3.0.3
- Spec (JSON)
- https://api.apis.guru/v2/specs/dev.to/1.0.0/openapi.json
- Spec (YAML)
- https://api.apis.guru/v2/specs/dev.to/1.0.0/openapi.yaml
Tools (42)
Extracted live via the executor SDK.
-
articles.createArticleThis endpoint allows the client to create a new article.
"Articles" are all the posts that users create on DEV that typically show up in the feed. They can be a blog post, a discussion question, a help thread etc. but is referred to as article within the code.
-
articles.getArticleByIdThis endpoint allows the client to retrieve a single published article given its
id. -
articles.getArticleByPathThis endpoint allows the client to retrieve a single published article given its
path. -
articles.getArticlesThis endpoint allows the client to retrieve a list of articles.
"Articles" are all the posts that users create on DEV that typically show up in the feed. They can be a blog post, a discussion question, a help thread etc. but is referred to as article within the code.
By default it will return featured, published articles ordered by descending popularity.
It supports pagination, each page will contain
30articles by default. -
articles.getLatestArticlesThis endpoint allows the client to retrieve a list of articles. ordered by descending publish date.
It supports pagination, each page will contain 30 articles by default.
-
articles.getUserAllArticlesThis endpoint allows the client to retrieve a list of all articles on behalf of an authenticated user.
"Articles" are all the posts that users create on DEV that typically show up in the feed. They can be a blog post, a discussion question, a help thread etc. but is referred to as article within the code.
It will return both published and unpublished articles with pagination.
Unpublished articles will be at the top of the list in reverse chronological creation order. Published articles will follow in reverse chronological publication order.
By default a page will contain 30 articles.
-
articles.getUserArticlesThis endpoint allows the client to retrieve a list of published articles on behalf of an authenticated user.
"Articles" are all the posts that users create on DEV that typically show up in the feed. They can be a blog post, a discussion question, a help thread etc. but is referred to as article within the code.
Published articles will be in reverse chronological publication order.
It will return published articles with pagination. By default a page will contain 30 articles.
-
articles.getUserPublishedArticlesThis endpoint allows the client to retrieve a list of published articles on behalf of an authenticated user.
"Articles" are all the posts that users create on DEV that typically show up in the feed. They can be a blog post, a discussion question, a help thread etc. but is referred to as article within the code.
Published articles will be in reverse chronological publication order.
It will return published articles with pagination. By default a page will contain 30 articles.
-
articles.getUserUnpublishedArticlesThis endpoint allows the client to retrieve a list of unpublished articles on behalf of an authenticated user.
"Articles" are all the posts that users create on DEV that typically show up in the feed. They can be a blog post, a discussion question, a help thread etc. but is referred to as article within the code.
Unpublished articles will be in reverse chronological creation order.
It will return unpublished articles with pagination. By default a page will contain 30 articles.
-
articles.unpublishArticleThis endpoint allows the client to unpublish an article.
The user associated with the API key must have any 'admin' or 'moderator' role.
The article will be unpublished and will no longer be visible to the public. It will remain in the database and will set back to draft status on the author's posts dashboard. Any notifications associated with the article will be deleted. Any comments on the article will remain.
-
articles.updateArticleThis endpoint allows the client to update an existing article.
"Articles" are all the posts that users create on DEV that typically show up in the feed. They can be a blog post, a discussion question, a help thread etc. but is referred to as article within the code.
-
comments.getCommentByIdThis endpoint allows the client to retrieve a comment as well as his descendants comments.
It will return the required comment (the root) with its nested descendants as a thread.
See the format specification for further details.
-
comments.getCommentsByArticleIdThis endpoint allows the client to retrieve all comments belonging to an article or podcast episode as threaded conversations.
It will return the all top level comments with their nested comments as threads. See the format specification for further details.
-
displayAds.getApiDisplayAdsThis endpoint allows the client to retrieve a list of all display ads.
-
displayAds.getApiDisplayAdsIdThis endpoint allows the client to retrieve a single display ad, via its id.
-
displayAds.postApiDisplayAdsThis endpoint allows the client to create a new display ad.
-
displayAds.putApiDisplayAdsIdThis endpoint allows the client to update the attributes of a single display ad, via its id.
-
displayAds.putApiDisplayAdsIdUnpublishThis endpoint allows the client to remove a display ad from rotation by un-publishing it.
-
followedTags.getFollowedTagsThis endpoint allows the client to retrieve a list of the tags they follow.
-
followers.getFollowersThis endpoint allows the client to retrieve a list of the followers they have. "Followers" are users that are following other users on the website. It supports pagination, each page will contain 80 followers by default.
-
organizations.getOrganizationThis endpoint allows the client to retrieve a single organization by their username
-
organizations.getOrgArticlesThis endpoint allows the client to retrieve a list of Articles belonging to the organization
It supports pagination, each page will contain
30users by default. -
organizations.getOrgUsersThis endpoint allows the client to retrieve a list of users belonging to the organization
It supports pagination, each page will contain
30users by default. -
pages.deleteApiPagesIdThis endpoint allows the client to delete a single Page object, specified by ID.
-
pages.getApiPagesThis endpoint allows the client to retrieve details for all Page objects.
-
pages.getApiPagesIdThis endpoint allows the client to retrieve details for a single Page object, specified by ID.
-
pages.postApiPagesThis endpoint allows the client to create a new page.
-
pages.putApiPagesIdThis endpoint allows the client to retrieve details for a single Page object, specified by ID.
-
podcastEpisodes.getPodcastEpisodesThis endpoint allows the client to retrieve a list of podcast episodes. "Podcast episodes" are episodes belonging to podcasts. It will only return active (reachable) podcast episodes that belong to published podcasts available on the platform, ordered by descending publication date. It supports pagination, each page will contain 30 articles by default.
-
profileImages.getProfileImageThis endpoint allows the client to retrieve a user or organization profile image information by its corresponding username.
-
reactions.postApiReactionsThis endpoint allows the client to create a reaction to a specified reactable (eg, Article, Comment, or User). For examples: * "Like"ing an Article will create a new "like" Reaction from the user for that Articles * "Like"ing that Article a second time will return the previous "like"
-
reactions.postApiReactionsToggleThis endpoint allows the client to toggle the user's reaction to a specified reactable (eg, Article, Comment, or User). For examples: * "Like"ing an Article will create a new "like" Reaction from the user for that Articles * "Like"ing that Article a second time will remove the "like" from the user
-
readinglist.getReadinglistThis endpoint allows the client to retrieve a list of articles that were saved to a Users readinglist. It supports pagination, each page will contain
30articles by default -
tags.getTagsThis endpoint allows the client to retrieve a list of tags that can be used to tag articles.
It will return tags ordered by popularity.
It supports pagination, each page will contain 10 tags by default.
-
users.getUserThis endpoint allows the client to retrieve a single user, either by id or by the user's username.
For complete documentation, see the v0 API docs:
-
users.getUserMeThis endpoint allows the client to retrieve information about the authenticated user
-
users.postAdminUsersCreateThis endpoint allows the client to trigger an invitation to the provided email address.
-
users.suspendUserThis endpoint allows the client to suspend a user.
The user associated with the API key must have any 'admin' or 'moderator' role.
This specified user will be assigned the 'suspended' role. Suspending a user will stop the user from posting new posts and comments. It doesn't delete any of the user's content, just prevents them from creating new content while suspended. Users are not notified of their suspension in the UI, so if you want them to know about this, you must notify them.
-
users.unpublishUserThis endpoint allows the client to unpublish all of the articles and comments created by a user.
The user associated with the API key must have any 'admin' or 'moderator' role.
This specified user's articles and comments will be unpublished and will no longer be visible to the public. They will remain in the database and will set back to draft status on the specified user's dashboard. Any notifications associated with the specified user's articles and comments will be deleted.
Note this endpoint unpublishes articles and comments asychronously: it will return a 204 NO CONTENT status code immediately, but the articles and comments will not be unpublished until the request is completed on the server.
-
videos.getOperationThis endpoint allows the client to retrieve a list of articles that are uploaded with a video.
It will only return published video articles ordered by descending popularity.
It supports pagination, each page will contain 24 articles by default.
-
openapi.previewSpecPreview an OpenAPI document before adding it as a source
-
openapi.addSourceAdd an OpenAPI source and register its operations as tools