diff --git a/cookbook/views/api.py b/cookbook/views/api.py
index 9d15f3e85f..45c05ffaa9 100644
--- a/cookbook/views/api.py
+++ b/cookbook/views/api.py
@@ -1308,8 +1308,12 @@ def recipe_from_source(request):
}, status=status.HTTP_400_BAD_REQUEST)
else:
try:
- json.loads(data)
- data = ""
+ data_json = json.loads(data)
+ if '@context' not in data_json:
+ data_json['@context'] = 'https://schema.org'
+ if '@type' not in data_json:
+ data_json['@type'] = 'Recipe'
+ data = ""
except JSONDecodeError:
pass
scrape = text_scraper(text=data, url=url)