ARTICLE AD BOX
I am trying to use the DeviantArt API to check if a deviation has a "created using AI tools" disclaimer. (Example). I wrote Python code that authorizes and retrieves a deviation's extended metadata, but the response doesn't include the AI notice disclaimer.
Code:
import requests import os # Authorize url = "https://www.deviantart.com/oauth2/token"; params = { 'grant_type': 'client_credentials', 'client_id': os.environ['client_id'], 'client_secret': os.environ['client_secret'], } response = requests.get(url, params=params) access_token = response.json().get("access_token") # Get deviation metadata url = 'https://www.deviantart.com/api/v1/oauth2/deviation/metadata' params = { 'access_token': access_token, 'deviationids': {'EBA58C48-2D63-D8D4-8FE1-214FDCD39A65'}, 'ext_submission': 'yes', } response = requests.get(url, params=params) print(response.text)Response:
{"metadata":[{"deviationid":"EBA58C48-2D63-D8D4-8FE1-214FDCD39A65","printid":null,"author":{"userid":"EF857E1E-E23F-8F8C-E41A-BAD53080D05E","username":"lizschnabel","usericon":"https:\/\/a.deviantart.net\/avatars\/l\/i\/lizschnabel.jpg?4","type":"premium"},"is_watching":false,"title":"Recon Squad and old SSR Intruder Pods","description":"","license":"No License","allows_comments":true,"tags":[{"tag_name":"ai","sponsored":false,"sponsor":""},{"tag_name":"sciencefiction","sponsored":false,"sponsor":""},{"tag_name":"futurewarfare","sponsored":false,"sponsor":""}],"is_favourited":false,"is_mature":false,"submission":{"creation_time":"2023-11-25T08:07:44-0800","category":"","file_size":"5.6 MB","resolution":"3600x2152","submitted_with":{"app":"DeviantArt","url":"https:\/\/www.deviantart.com"}},"can_post_comment":false}]}Is there a different API endpoint to check if a deviation has the "created using AI tools" disclaimer?
