Dev.to API’s which can be used to view posts on your web page / portfolio

Steps:

Create a API key from your dev.to account, here

Save your API key, in postman or .env file of your project.

Used this API in my portfolio, which works great. Do check it out.

API:

Your Published Article


This content originally appeared on DEV Community and was authored by Senthil Pitchappan V

Steps:

  1. Create a API key from your dev.to account, here
  2. Save your API key, in postman or .env file of your project.

Used this API in my portfolio, which works great. Do check it out.

API:

Your Published Article
curl --location --request GET 'https://dev.to/api/articles/me/published' \
--header 'api-key: API_KEY'
Your Unpublished Article
curl --location --request GET 'https://dev.to/api/articles/me/unpublished' \
--header 'api-key: API_KEY'
Update an Article
curl --location --request PUT 'https://dev.to/api/articles/{id}' \
-d '{
      "article": {
              "title": "Hello, World!",
              "published": true,
              "body_markdown": "Hello DEV, this is my first 
                   post",
              "tags": [
                  "discuss",
                  "help"
              ],
              "series": "Hello series"
              }
    }' \
--header 'api-key: API_KEY'
Create a new post
curl --location --request POST 
'https://dev.to/api/articles' \
-d '{
           "article": {
              "title": "Hello, World!",
              "published": true,
              "body_markdown": "Hello DEV, this is my first 
                    post",
              "tags": [
                  "discuss",
                  "help"
               ],
               "series": "Hello series"
              }
    }' \
--header 'api-key: API_KEY'
List of followers
curl --location --request GET 'https://dev.to/api/followers/users' \
--header 'api-key: API_KEY'
List of tags you follow
curl --location --request GET 'https://dev.to/api/follows/tags' \
--header 'api-key: API_KEY'
Get your Profile Photo
curl --location --request GET 'https://dev.to/api/profile_images/{user_name}' \
--header 'api-key: API_KEY'


This content originally appeared on DEV Community and was authored by Senthil Pitchappan V


Print Share Comment Cite Upload Translate Updates
APA

Senthil Pitchappan V | Sciencx (2021-08-06T05:35:51+00:00) Dev.to API’s which can be used to view posts on your web page / portfolio. Retrieved from https://www.scien.cx/2021/08/06/dev-to-apis-which-can-be-used-to-view-posts-on-your-web-page-portfolio/

MLA
" » Dev.to API’s which can be used to view posts on your web page / portfolio." Senthil Pitchappan V | Sciencx - Friday August 6, 2021, https://www.scien.cx/2021/08/06/dev-to-apis-which-can-be-used-to-view-posts-on-your-web-page-portfolio/
HARVARD
Senthil Pitchappan V | Sciencx Friday August 6, 2021 » Dev.to API’s which can be used to view posts on your web page / portfolio., viewed ,<https://www.scien.cx/2021/08/06/dev-to-apis-which-can-be-used-to-view-posts-on-your-web-page-portfolio/>
VANCOUVER
Senthil Pitchappan V | Sciencx - » Dev.to API’s which can be used to view posts on your web page / portfolio. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/08/06/dev-to-apis-which-can-be-used-to-view-posts-on-your-web-page-portfolio/
CHICAGO
" » Dev.to API’s which can be used to view posts on your web page / portfolio." Senthil Pitchappan V | Sciencx - Accessed . https://www.scien.cx/2021/08/06/dev-to-apis-which-can-be-used-to-view-posts-on-your-web-page-portfolio/
IEEE
" » Dev.to API’s which can be used to view posts on your web page / portfolio." Senthil Pitchappan V | Sciencx [Online]. Available: https://www.scien.cx/2021/08/06/dev-to-apis-which-can-be-used-to-view-posts-on-your-web-page-portfolio/. [Accessed: ]
rf:citation
» Dev.to API’s which can be used to view posts on your web page / portfolio | Senthil Pitchappan V | Sciencx | https://www.scien.cx/2021/08/06/dev-to-apis-which-can-be-used-to-view-posts-on-your-web-page-portfolio/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.