# Python Connect with API

**URL:** <https://forum.networklessons.com/t/python-connect-with-api/10772>\
**Category:** Lessons Discussion\
**Created:** [April 16, 2020, 2:56pm UTC](https://forum.networklessons.com/t/python-connect-with-api/10772 "2020-04-16T14:56:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [April 16, 2020, 2:56pm UTC](https://forum.networklessons.com/t/python-connect-with-api/10772/1 "2020-04-16T14:56:36Z")

</div>

This topic is to discuss the following lesson:

> **[Python Connect with API](https://networklessons.com/python/python-connect-with-api)**
>
> This lesson explains how to connect with APIs from Python using no authentication, query parameters, and authentication. We use the requests library.

---

<div class="post-metadata">

**Author:** ![Giovanni](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/g/7ea924/32.png) [@Giovanni](https://forum.networklessons.com/u/Giovanni)\
**Post date:** [August 21, 2020, 9:25am UTC](https://forum.networklessons.com/t/python-connect-with-api/10772/4 "2020-08-21T09:25:41Z")

</div>

Do you have any experience with opendcim?  
I’m looking to update devices via python using APIs

Can you give me any examples to do this?

Thanks

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [August 24, 2020, 6:26am UTC](https://forum.networklessons.com/t/python-connect-with-api/10772/5 "2020-08-24T06:26:03Z")

</div>

Hello Giovanni

This lesson describes how to connect via Python using APIs:

> **[Python Connect with API](https://networklessons.com/python/python-connect-with-api)**
>
> This lesson explains how to connect with APIs from Python using no authentication, query parameters, and authentication. We use the requests library.

Although it does not use openDCIM, it gives you an idea of the methodology used. If you want to specifically use openDCIM, there’s a lot of documentation out there from the very simple to the complex. A good place to start may be the following [Getting Started info about openDCIM](https://wiki.opendcim.org/wiki/index.php/Main_Page#Getting_started).

If you would like to see openDCIM or any other feature or tool on the site, you can always make a suggestion at the Member Ideas page below:

> **[Lesson Ideas - NetworkLessons.com](https://networklessons.com/lesson-ideas)**
>
> This page allows networklessons members to share what content they would like to see in the future.

I hope this has been helpful!

Laz

---

<div class="post-metadata">

**Author:** ![mariosku799](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/m/8baadc/32.png) [@mariosku799](https://forum.networklessons.com/u/mariosku799)\
**Post date:** [February 5, 2022, 1:53pm UTC](https://forum.networklessons.com/t/python-connect-with-api/10772/6 "2022-02-05T13:53:47Z")

</div>

Hello,  
I am a bit confused. Are these APIs in the lesson considered as REST? For example, in the “API without Authentication” example, it is said “The API returns the requested data in JSON format.”  
Isn’t this the Representational part of a REST API?  
Thanks.

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [February 8, 2022, 6:29pm UTC](https://forum.networklessons.com/t/python-connect-with-api/10772/7 "2022-02-08T18:29:59Z")

</div>

Hello Marios

These are not REST APIs, but I understand that the title of this particular thread is Python Connect with REST API. This is a typo. The lesson itself is called **Python Connect with API**. For REST APIs, take a look at this lesson:

> **[Introduction to REST API](https://networklessons.com/cisco/ccna-200-301/introduction-to-rest-api)**
>
> The REST API is an API that meets 6 constraints as decribed by Roy T. Fielding describes. This lesson demonstrates the REST API on a Cisco CSR1000v.

REST APIs typically use HTTP methods to retrieve or send information between applications. REST APIs in the context of the above lesson are APIs to Cisco network devices for the purpose of controlling and managing them.

I will let Rene know to make the appropriate modifications to the thread title.

Thanks for pointing this out!

Laz
