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.
The use of the Editorial Metadata API is discouraged for public content where on-page metadata should be used.
Query Parameters
Section titled “Query Parameters”| secret | The authentication secret provided by your account manager. |
| metadata | Within 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 object
Section titled “The metadata object”The metadata parameter should be a JSON object with the following schema:
| canonical_url | Canonical url of the article |
| urls | In case you want to group multiple URLs under the main canonical, you can add those URLs here. |
| page_type | post |
| title | Page title. |
| image_url | Article’s main image url |
| pub_date_tmsp | Publication date, formatted as an ISO 8601 UTC timezone string. |
| section | Section of the page, you can add multiple sections as an array |
| authors | Author of the page, you can add multiple authors as an array |
| tags | The list of tags associated with the article. Use the : notation for tag groups |
CURL Example 1
Section titled “CURL Example 1”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" }}'CURL Example 2
Section titled “CURL Example 2”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" }}'Technical details
Section titled “Technical details”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.