Skip to content
Login Contact

Editorial Metadata API endpoint for paywalled content

The Editorial Metadata API lets publishers send article metadata directly to Marfeel when crawlers cannot access content behind paywalls, registration walls, or sensitivity restrictions. Invoke the endpoint every time a new article is published or updated so Marfeel always has fresh metadata.

When possible, it is easier and more convenient to whitelist the Marfeel Crawlers, allowing them to crawl private content instead.

To use this API you should contact your account manager to get the proper credentials.

The use of the Editorial Metadata API is discouraged for public content where on-page metadata should be used.

secretThe authentication secret provided by your account manager.
metadataWithin the metadata object, you will find the data that needs to be added or updated in your article. Be sure to include the canonical URL of the article you wish to alter.

The metadata parameter should be a JSON object with the following schema:

canonical_urlCanonical url of the article
urlsIn case you want to group multiple URLs under the main canonical, you can add those URLs here.
page_typepost
titlePage title.
image_urlArticle’s main image url
pub_date_tmspPublication date, formatted as an ISO 8601 UTC timezone string.
sectionSection of the page, you can add multiple sections as an array
authorsAuthor of the page, you can add multiple authors as an array
tagsThe list of tags associated with the article. Use the : notation for tag groups

Submit the metadata for the article https://www.yourdomain.com/your-canonical-url/

curl --location 'https://metadata.newsroom.bi/metadata/posts' \
--header 'Content-Type: application/json' \
--data '{
"apikey": "YourAPIKey",
"secret": "YourSecret",
"metadata": {
"pub_date_tmsp": "2024-05-30T07:58:00+02:00",
"title": "The title that you want",
"tags": [
"TagGroup1:theTag"
],
"authors": [
"Author one"
],
"canonical_url": "https://www.yourdomain.com/your-canonical-url/",
"urls": [
],
"page_type": "post",
"section": "The section"
}
}'

When you do not have the canonical URL to track in your Native SDKs, you can submit the alternate URL to guarantee proper canonicalization of the article.

Assume you want to track a page view hit on distribution.platform.com/path/article with a publisher.com/a/different/path/to/article canonical.

When distribution.platform.com/path/article is published, invoke the Editorial Metadata API endpoint providing both the canonical and the platform-specific alternative URL. After this, when non-canonical URLs are tracked from Native SDKs they will be immediately canonicalized.

curl --location 'https://metadata.newsroom.bi/metadata/posts' \
--header 'Content-Type: application/json' \
--data '{
"apikey": "YourAPIKey",
"secret": "YourSecret",
"metadata": {
"canonical_url": "https://www.nacion.com/el-pais/salud/empresa-que-opera-con-dos-empleados-y-desde-una/LKASIXEVIZBVRBBP6CX4QZFAQU/story/",
"urls": [
"https://lanaciondecostarica.pressreader.com/article/6880039408856498"
],
"page_type": "post"
}
}'

Metadata informed via the Editorial Metadata API takes precedence over crawled metadata. API-informed fields override crawled fields.

If the Marfeel crawler re-crawls the page after an API submission, the API-informed fields still override newly crawled metadata.

When a metadata field has been informed via the Editorial Metadata API, the crawler inspector will show it. You can also use the metadata detection debugger to verify which fields are being read from the API versus the crawler.

When should I use the Editorial Metadata API instead of the crawler?

Use the Editorial Metadata API when Marfeel crawlers cannot access your content due to paywalls, registration requirements, or sensitivity concerns. For public content, on-page metadata with the standard editorial crawler is the recommended approach.

Does API metadata override crawled metadata?

Yes. Metadata submitted through the Editorial Metadata API takes precedence over crawled metadata. Fields informed via the API override crawled fields, even if the crawler re-crawls the page afterward.

How do I get credentials for the Editorial Metadata API?

Contact your account manager to receive the API key and secret required to authenticate requests to the Editorial Metadata API endpoint.