Share producer lists between the UI and API

Producer lists can be shared between Meta Content Library and Content Library API. Researchers can see their producer lists in the Producer lists tab in Content Library. You can only share producer lists with users who have the same account type as yours.

Note: This feature is only available from version 4.0 onwards.

To create an API list ID to share a producer list between the UI and API:

  • Select Producers lists from the left navigation bar.

  • Click View in the card for the producer list you want to share.

  • Click the down arrow button next to the Share button. The dropdown menu displays.

  • Select Create API list ID to get an API Producer list ID.

  • You’ll see a dialog with the ID which you can use to access the producer list in the API with the path received through the user interface.

The syntax of the snapshot of the producer list that can be accessed on the API is:

/lists/producers/<api_producer_list_id>

Request

NameTypeDescription

api_producer_list_id

String

Unique ID created in Meta Content Library representing a snapshot of the producer list

See Data dictionary for information on data included in responses.

Sample queries

library(reticulate)
client <- import("metacontentlibraryapi")$MetaContentLibraryAPIClient

# set default version to latest
client$set_default_version(client$LATEST_VERSION)

# Get the response by using the API ID received by UI
response <- client$get(path="lists/producers/<api_producer_list_id>")

# Display the json response
jsonlite::fromJSON(response$text, flatten=TRUE)
from metacontentlibraryapi import MetaContentLibraryAPIClient as client

# set default version to latest
client.set_default_version(client.LATEST_VERSION)

# Get the response by using the API ID received by UI
response = client.get(
                      path="lists/producers/<api_producer_list_id>")

# Display the json response
display(response.json())