[Tools-discuss] Re: Datatracker API
Marc Petit-Huguenin <marc@petit-huguenin.org> Sat, 27 July 2024 14:43 UTC
Return-Path: <marc@petit-huguenin.org>
X-Original-To: tools-discuss@ietfa.amsl.com
Delivered-To: tools-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6600FC180B7C for <tools-discuss@ietfa.amsl.com>; Sat, 27 Jul 2024 07:43:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.906
X-Spam-Level:
X-Spam-Status: No, score=-1.906 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_FAIL=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vCmtmeurOmfQ for <tools-discuss@ietfa.amsl.com>; Sat, 27 Jul 2024 07:43:16 -0700 (PDT)
Received: from implementers.org (implementers.org [92.243.22.217]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2A4CFC169401 for <tools-discuss@ietf.org>; Sat, 27 Jul 2024 07:43:15 -0700 (PDT)
Received: from [IPV6:2601:204:e37e:6938:d250:99ff:fedf:93cf] (unknown [IPv6:2601:204:e37e:6938:d250:99ff:fedf:93cf]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "petithug", Issuer "implementers.org" (verified OK)) by implementers.org (Postfix) with ESMTPS id 9BED6AE233 for <tools-discuss@ietf.org>; Sat, 27 Jul 2024 16:43:12 +0200 (CEST)
Message-ID: <28ad9824-a449-4508-a155-d5d04df3fcc6@petit-huguenin.org>
Date: Sat, 27 Jul 2024 07:43:09 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
From: Marc Petit-Huguenin <marc@petit-huguenin.org>
To: tools-discuss <tools-discuss@ietf.org>
References: <d06f5676-04ad-47fd-93d2-55c4e166377e@petit-huguenin.org>
Autocrypt: addr=marc@petit-huguenin.org; keydata= xsFNBE6Mh9wBEADrUEDZChteJbQtsHwZITZExr7TAqT7pniNwhBX3nFgd+FrV3lsLKJ1rym2 52MAYpubXEJZGzMp6uCCAnROWbtmQbOm8z/jHnjxHhPqfuYCYPpAQqu8K/Sc194Rp37krMwB jz32yr7+gvWLzRgQGKIh9d2mzy8QLMETVWWQWGb6fEfpOxXo0wumN1rc/275kZwOu44JIPGg zbgwZdnEqYOUUa18K9MXeRDoWbwDISP30CvKuZDwD14lbBE3o7tBQrU9uoMhE7eFlTjbsCox qoubI2tZSuOTF8mRXjPmNrRGtf9mYkQnOB7y6qy/QxmOVMq4IRtHzOYIm/EZ6NTodcpZQHOM 2v6B6YK9uKrYrapSpJzn4f9oU7alT31Y3o2hOlxAWDQ16+Dd1MOPYsKQXOwY1/ihm4PTjiJ8 ud8yPzy7c+BSVs5wkBU6QuLNIgZHrrxdn+KxM+F/oAVtfzO7XzVoeOcXyWi3/CHL5pgoBruY enIF/RrRuplpy09pvZjmFPNfqKBYJGnqpQuqsQwO7LsFqDqfY2EuHg+KsGN1XuN+jxXc48/1 gCnKw7ALSPWEb7g25wD6KfiZTAcyRTG8LePNFQKhw61LbIWmkw9EaVLyXvwPTc1iCSc0dDT/ pcT/z+8xrWOyWGZNZAjR584NlDpKollbItcxYtFcYZkvTCmOVwARAQABzS1NYXJjIFBldGl0 LUh1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9 cuHvkkjML7cIfuvbScDYRmGzia3V9+LVzQCm+q/6xUY1SZvrDz7OaJOy3Xb1d+aPhYaNC0TQ 7IqA1dx8rZYQ
In-Reply-To: <d06f5676-04ad-47fd-93d2-55c4e166377e@petit-huguenin.org>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="------------dW7iTZUBCyVYuZeBevKbx4zn"
Message-ID-Hash: LNZL55RWG6T6Z66WFWO453RRIGCZOZAR
X-Message-ID-Hash: LNZL55RWG6T6Z66WFWO453RRIGCZOZAR
X-MailFrom: marc@petit-huguenin.org
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tools-discuss.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [Tools-discuss] Re: Datatracker API
List-Id: IETF Tools Discussion <tools-discuss.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/GGCrCPK2FNOs0Az5ETtevxNEyqM>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tools-discuss>
List-Help: <mailto:tools-discuss-request@ietf.org?subject=help>
List-Owner: <mailto:tools-discuss-owner@ietf.org>
List-Post: <mailto:tools-discuss@ietf.org>
List-Subscribe: <mailto:tools-discuss-join@ietf.org>
List-Unsubscribe: <mailto:tools-discuss-leave@ietf.org>
On 7/26/24 9:09 AM, Marc Petit-Huguenin wrote: > Hi, > > I could not find much documentation for the Datatracker HTTP API (short of https://datatracker.ietf.org/api/) and experimenting with the various APIs at https://datatracker.ietf.org/api/v1/doc got me nowhere. Is there more documentation (or more examples) that I missed (short of reading the code)? > > What I am trying to do is: > > 1. Get the list of all referenced-by documents for a specific I-D or RFC (similar to what the button of that name returns). > 2. Get the list of external resources for a specific I-D or RFC. (I found https://datatracker.ietf.org/api/v1/doc/docextresource/, but could not figure how to select a specific document) Never mind, I found what I needed. For the record: "https://datatracker.ietf.org/api/v1/doc/<document name>" get the id of the document. "https://datatracker.ietf.org/api/v1/doc/relateddocument/?target=<id>" lists all the documents that references that document "https://datatracker.ietf.org/api/v1/doc/docextresource/?doc=<id>" lists all the external resources for that document. -- Marc Petit-Huguenin Email: marc@petit-huguenin.org Blog: https://marc.petit-huguenin.org Profile: https://www.linkedin.com/in/petithug
- [Tools-discuss] Datatracker API Marc Petit-Huguenin
- [Tools-discuss] Re: Datatracker API Marc Petit-Huguenin
- [Tools-discuss] Re: Datatracker API Andrew G. Malis
- [Tools-discuss] Re: Datatracker API Marc Petit-Huguenin
- [Tools-discuss] Re: Datatracker API Tim Wicinski
- [Tools-discuss] Re: Datatracker API Robert Sparks