# providers.json

Naming

Do not confuse the providers.json and extraction providers with Widget Providers or Ad server providers.

Marfeel uses the same term for those two different concepts.

All the providers needed during the extraction process are defined in the providers.json file, located in the root folder of each site code repository.

For example, the providers.json of a Tenant using Spot.IM would look like:

Click to see the JSON
{
    "cssMappings": {
      "excerptDetails":".articleTop .bajada",
      "subTitle":".bajada",
      "dateDetails": ".date",
      "date": ".date",
      "author": ".autor",
      "authorDetails": ".autor",
      "tags":".tag-list li"
    },
    "iframes": [
      "example.com/player/v2/embed/"
    ],
    "genericIframes": {
      "stats.example.com/" : "mrf-originalHeightIframe",
      "sport.example.com/" : "mrf-originalHeightIframe"
    },
    "sectionNameStrategy": {
      "type": "byUrl"
    },
    "metadataProviders": {
      "details": {
        "www.example.com/providers/metadataProviders/details/OnTheDetailsMetadataDetector.js": [],
        "marfeel/providers/metadataProviders/details/defaultGACustomDimension.js": []
      },
      "mosaic": {
        "../marfeel/providers/metadataProviders/mosaic/OnTheMosaicMetadataDetector.js": []
      }
    }
}

# Types of providers

# Inheritance

providers.json follows Marfeel's inheritance rules.