Black Friday Sale 50% off+ your first site built for you
h
m
s
See the offer

For developers

Every FreshStore site has its own API.

The Site API is a JSON API over HTTPS. Read and change a site's products, offers, categories, articles, pages and settings, and read its visits and clicks. You make the keys and choose what each one can reach. It is on every plan.

What the API covers

The reference lists every endpoint with its fields and answers.

  • Products and offers

    List, create, edit and delete products. Add offers from Amazon, eBay, Etsy, Walmart, AliExpress or any shop, import Amazon links or a CSV file, and set images, categories and Product Tags.

    In the reference
  • Categories and brands

    Read the category tree, create and edit categories, and fill them with products. Edit brands and set their logos. Switch Auto Populators on or off.

    In the reference
  • Articles and pages

    Write, schedule and edit articles, with their images. Edit pages, and show, hide or move their sections.

    In the reference
  • Settings and design

    Read and change settings by group. Switch the template, and change its colors, fonts and texts. Add redirects, up to 500 in one call.

    In the reference
  • Product feeds

    Connect a feed from Awin, Impact, CJ, Rakuten Advertising, Tradedoubler or AvantLink, or a CSV file. Preview it, then import it now or on a schedule.

    In the reference
  • Analytics

    Visits, pages, countries, devices and sources. Affiliate clicks by merchant, and the products with the most clicks.

    In the reference

Keys, limits and answers

Address Each site has its own API at https://your-site.com/api. Its keys and its limit belong to that site only.
Keys A site admin makes keys in the site's admin: Settings, then API Keys, then Create API Key. The key shows once. Keys cannot be made through the API.
Sign in Send the key as a bearer token on every request: Authorization: Bearer YOUR_API_KEY. A missing or wrong key gets 403.
Permissions Tick read or write for each part of the site, or give the key full access. A key made from one of the two AI assistant presets expires after 90 days.
Limit 60 requests a minute for each key on each site. The X-RateLimit-Remaining header shows what is left. Over the limit, the answer is 429.
Answers JSON. Most wrap the result in data. Lists take page and per_page, up to 100 a page.
User agent Calls to /api pass the CDN with any user agent. Send one of your own anyway, such as MyScript/1.0. The public status check refuses a library default when no key is sent.
AI endpoints A few endpoints ask the built-in AI to write. They use the AI Chips your plan includes, and answer 402 when none are left.

A first request

The three products with the most page views:

curl "https://your-site.com/api/products?per_page=3&sort_by=analytics_visits" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "User-Agent: MyScript/1.0"

Let an AI assistant use it

Claude, ChatGPT, Codex, Cursor and other AI agents can use the same keys. Give the assistant your site address, a key and the API reference, and say what you want done. Start with a read-only key.

Claude, ChatGPT, Codex and Cursor are trademarks of their owners. FreshStore is not affiliated with them.

Build the site first, then build on it with the API.

Start from a niche we researched and watch the site get built. 7 days free, nothing charged today.

Free for 7 days, nothing charged today. Then 30-day money back.

4.7/5 on Trustpilot, 83 reviews. Since 2010.