# Can't import Swagger Docs from an URL

**URL:** <https://community.postman.com/t/cant-import-swagger-docs-from-an-url/68107>\
**Category:** Help Hub\
**Tags:** collections\
**Created:** [September 6, 2024, 9:19am UTC](https://community.postman.com/t/cant-import-swagger-docs-from-an-url/68107 "2024-09-06T09:19:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![orbital-module-oper5](https://avatars.discourse-cdn.com/v4/letter/o/a3d4f5/32.png) [@orbital-module-oper5](https://community.postman.com/u/orbital-module-oper5)\
**Post date:** [September 6, 2024, 9:19am UTC](https://community.postman.com/t/cant-import-swagger-docs-from-an-url/68107/1 "2024-09-06T09:19:10Z")

</div>

I want to import OpenAPI 3.0 Specs from my Swagger.

But it shows “Error while fetching data from link”, although any web browser and CURL can access the data accordingly.

I run an REST-API built with NestJS, and the Swagger Docs as JSON can be fetched via the URL:

[http://localhost:3000/swagger/json](http://localhost:3000/swagger/json)

But when I click on “import” and paste this URL, it shows the error message mentioned above.

Is there any other way to import a Swagger API?

---

<div class="post-metadata">

**Author:** ![gbadebo-bello](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/gbadebo-bello/32/12175_2.png) [@gbadebo-bello](https://community.postman.com/u/gbadebo-bello)\
**Post date:** [September 23, 2024, 10:00am UTC](https://community.postman.com/t/cant-import-swagger-docs-from-an-url/68107/2 "2024-09-23T10:00:55Z")

</div>

Hi @orbital-module-oper5. Could you share a screenshot of where you are trying to make this import on the UI? It appears to me that you may be trying to import an OpenAPI definition using the collection importer which will not work. OpenAPI or any other API definition(RAML, GraphQL Schema, etc) can be imported using the API Builder. I may be wrong about what you’re doing here, but a screenshot would be helpful.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [October 23, 2024, 10:01am UTC](https://community.postman.com/t/cant-import-swagger-docs-from-an-url/68107/3 "2024-10-23T10:01:02Z")

</div>

Closed on October 23, 2024, 10:01am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
