froyo
Sign in Start a directory
All help pages

Connect an API

Pull listings from a web service that returns JSON.

Connect an API when your listings come from a web service that answers with JSON. froyo asks the service for the list each update and matches what comes back to your fields.

Add an API

  1. Open Sources in your directory.
  2. Select Add source, then choose API.
  3. Enter the link in API address. It must be a link that answers with JSON.
  4. Enter Path to the list, such as data.items. Leave it empty when the answer is the list itself.
  5. Select Connect.
  6. Match each column to a field. Choose Not used to leave one out.
  7. Check the name in Name this source.
  8. Select Save source.

Send headers

Some services want extra headers with each request.

  1. Select Add header.
  2. Fill in Header name and Header value.
  3. Repeat for each header. You can add up to 10.

Use a key

If the service needs a key, enter where it goes and the key itself.

  1. Enter Key header name. Authorization is the usual one.
  2. Enter Key.
  3. Select Connect again.

The key is stored encrypted and is never shown again. When you edit the source later, leave Key empty to keep the saved key, or select Remove to delete it.

Check that it works

Select Test on a saved source to read it again. If the service stops answering, the source shows Failing with a note that says why.

Related