# Shopware API (6.4) - Produkte importieren

**URL:** https://forum.shopware.com/t/shopware-api-6-4-produkte-importieren/100452
**Category:** Shopware Playground - API first Sandbox
**Created:** [10. Juli 2023 um 09:50 UTC](https://forum.shopware.com/t/shopware-api-6-4-produkte-importieren/100452 "2023-07-10T09:50:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![knidb](https://avatars.discourse-cdn.com/v4/letter/k/ebca7d/32.png) [@knidb](https://forum.shopware.com/u/knidb)
#### Post date: [10. Juli 2023 um 09:50 UTC](https://forum.shopware.com/t/shopware-api-6-4-produkte-importieren/100452/1 "2023-07-10T09:50:06Z")

</div>

Guten Tag,

ich versuche mich gerade darin, bei einem Shopware 6.4 Shop einen Import der Produkte umzusetzen.  
Zuvor habe ich bei Shopware 5 die Produkte direkt via SQL und FTP Zugriff importiert. Bei Shopware 6.4 würde ich gerne den eleganteren Weg gehen, doch hier finde ich weder die passenden API Beschreibungen oder Funktionen und wäre über Hilfe sehr dankbar.

Mein bisher Quellcode sieht wie folgt aus.

```auto
            Dim sEnginePath As String = PHP_LTRIM(sShopURL, "/") + "/store-api/product"
            Dim client As New RestClient(sEnginePath)
            Dim request As New RestRequest()

            request.AddHeader("sw-access-key", "XXXX")
            request.AddParameter("application/json", "{" & vbLf & " ""name"": ""Produktbezeichnung""," & vbLf & " ""productNumber"": ""0000011""," & vbLf & " ""stock"": 10," & vbLf & " ""taxId"": ""a5da76b447db4d0aba62e6512dadf45b""," & vbLf & " ""price"": [" & vbLf & " {" & vbLf & " ""currencyId"": ""b7d2554b0ce847cd82f3ac9bd1c0dfca""," & vbLf & " ""gross"": 15," & vbLf & " ""net"": 10," & vbLf & " ""linked"": false" & vbLf & " }" & vbLf & "]" & vbLf & "}", ParameterType.RequestBody)

            Dim req As RestResponse = client.Execute(request, Method.Post)

```

Aber offensichtlich scheint es sich hierbei nur um die Produktsuche zu handeln? Korrigiert mich bitte, wenn ich falsch liege. Vor Shopware 6.4 schien es hier noch andere Wege und Informationen gegeben zu haben. Doch stand jetzt sehe ich den Wald vor lauter Bäumen nicht.

Über jegliche Hilfe oder Richtungsweisungen wäre ich sehr dankbar.

---

<div class="post-metadata">

### Author: ![knidb](https://avatars.discourse-cdn.com/v4/letter/k/ebca7d/32.png) [@knidb](https://forum.shopware.com/u/knidb)
#### Post date: [12. Juli 2023 um 07:47 UTC](https://forum.shopware.com/t/shopware-api-6-4-produkte-importieren/100452/2 "2023-07-12T07:47:31Z")

</div>

Keiner hier, der Produkte über die Api importiert und die richtige Richtung weisen kann?

---

<div class="post-metadata">

### Author: ![nvdennis](https://avatars.discourse-cdn.com/v4/letter/n/439d5e/32.png) [@nvdennis](https://forum.shopware.com/u/nvdennis)
#### Post date: [13. Juli 2023 um 10:45 UTC](https://forum.shopware.com/t/shopware-api-6-4-produkte-importieren/100452/3 "2023-07-13T10:45:27Z")

</div>

Du bist da wohl in der falschen API unterwegs. Die store-api ist für das Frontend und du brauchst aber die admin-api.

Eine Doku findest du hier :

> **[Create a new Product resources | Admin API](https://shopware.stoplight.io/docs/admin-api/1c10c832ff905-create-a-new-product-resources)**
>
> Available since: 6.0.0.0 Powered by Stoplight.

Wie du dafür Integration Keys für die Authentifizierung anlegst ist hier beschrieben:

> **[Shopware 6 - Settings - Integrations](https://docs.shopware.com/en/shopware-6-en/settings/system/integrationen?category=shopware-6-en%2Fsettings%2Fsystem)**
>
> Using the integrations you can create permissions to access APIs in order to connect to third party systems. Under Settings \> System \> Integrations, you can create a separate API access for each of your own applications that you want to connect to...

Fang aber am besten erstmal mit einfachen Requests für Produkte über Tools wie Insomnia, Postman etc. an, damit du siehst wie die API überhaupt funktioniert. Damit du auch ein Ergebnis von Requests abgesehen von GET Requests siehst, musst du übrigens den Parameter `?_response=1` an die URL hinten anfügen.
