<p>Feed Me could do this, yes.</p>
<p>Feed Me can accept the following formats:</p>
<ul>
<li>JSON</li>
<li>CSV</li>
<li>XML</li>
<li>Google Sheet</li>
</ul>
<p>Your best bet is to use JSON and have it created via an <a href="https://plugins.craftcms.com/element-api" rel="nofollow noreferrer">Element API</a>, which is a first-party plugin.</p>
<p>You can follow the documentation to get a basic endpoint up and running without too much effort. It does require some familiarity with PHP but for basic usage, you can probably get away with using the <a href="https://github.com/craftcms/element-api#setup" rel="nofollow noreferrer">example code provided in the documentation - scroll down in the docs to see example usages</a>.</p>
<p>With the Element API, you will expose the elements as JSON. They will be available at a URL you specify via the endpoint (e.g. <code>yoursite.com/api/news.json</code>). This is the URL you input into Feed Me, map the fields, etc. If everything is set up correctly, Feed Me will parse the JSON and import it.</p>

CC BY-SA 4.0
2021-12-13T17:18:58.550Z
2021-12-13T17:18:58.550Z
CraftQuest
<p>I have a site in staging and production env, they have the same data structure. I want to sync an entry from staging to production. Is it something that Feed Me plugin can do? and how to generate the feed from staging, then import into production?</p>

<craft3><plugin-feedme><feed>
How to generate feed for Feed Me plugin
# How to generate feed for Feed Me plugin

(Asked by: username_0 on 2021-12-13)

I have a site in staging and production env, they have the same data structure. I want to sync an entry from staging to production. Is it something that Feed Me plugin can do? and how to generate the feed from staging, then import into production?

**Tags:** craft3, plugin-feedme, feed

---

## 1 answers

### Answer by username_1 on 2021-12-13. Score: 2 | Accepted answer

Feed Me could do this, yes.

Feed Me can accept the following formats:

* JSON
* CSV
* XML
* Google Sheet

Your best bet is to use JSON and have it created via an [Element API](https://plugins.craftcms.com/element-api), which is a first-party plugin.

You can follow the documentation to get a basic endpoint up and running without too much effort. It does require some familiarity with PHP but for basic usage, you can probably get away with using the [example code provided in the documentation - scroll down in the docs to see example usages](https://github.com/craftcms/element-api#setup).

With the Element API, you will expose the elements as JSON. They will be available at a URL you specify via the endpoint (e.g. `yoursite.com/api/news.json`). This is the URL you input into Feed Me, map the fields, etc. If everything is set up correctly, Feed Me will parse the JSON and import it.


---

